Load balancer returns 504 Gateway Timeout error
Issues are observed with a [standard-type](../../../../networks/balancing/concepts/about#balancing-load-balancer-types) load balancer. The load balancer returns the `504 Gateway Timeout` error.
The issue occurs with poor connectivity, when timeouts are triggered on the load balancer. The response delay causing the error is approximately 60 seconds.
Increase the load balancer timeouts:
-
Make sure the OpenStack client is installed and authenticate in the project.
-
Get the list of the load balancer listeners:
openstack loadbalancer listener list --loadbalancer <BALANCER_ID> -
For each load balancer listener, set new timeouts:
openstack loadbalancer listener set --timeout-member-data <TIMEOUT_1> --timeout-member-connect <TIMEOUT_2> --timeout-client-data <TIMEOUT_3> --timeout-tcp-inspect <TIMEOUT_4> <LISTENER_ID>Here:
<LISTENER_ID>— the ID of the load balancer listener.<TIMEOUT_1>— the server inactivity timeout. The default value is50000.<TIMEOUT_2>— the server connection timeout. The default value is5000.<TIMEOUT_3>— the frontend inactivity timeout. The default value is50000.<TIMEOUT_4>— the wait time for additional TCP packets for content inspection. The default value is0.
Was this article helpful?