Configuring Frontend Idle Timeout for Gorouter and HAProxy
This topic describes how to configure the Frontend Idle Timeout for Gorouter and HAProxy field in the Pivotal Application Service (PAS) Networking pane.
You can optionally use the Frontend Idle Timeout for Gorouter and HAProxy field to help prevent connections from your load balancer to Gorouter or HAProxy from being closed prematurely. The value you enter sets the duration, in seconds, that Gorouter or HAProxy maintains an idle open connection from a load balancer that supports keep-alive.
In general, set the value higher than your load balancer’s backend idle timeout to avoid the race condition where the load balancer sends a request before it discovers that Gorouter or HAProxy has closed the connection.
See the following table for specific guidance and exceptions to this rule:
|AWS||AWS ELB has a default timeout of 60 seconds, so Pivotal recommends a value greater than
|Azure||By default, Azure load balancer times out at 240 seconds without sending a TCP RST to clients, so as an exception, Pivotal recommends a value lower than
|GCP||GCP has a default timeout of 600 seconds. For GCP HTTP load balancers, Pivotal recommends a value greater than
|Other||Set the timeout value to be greater than that of the load balancer’s backend idle timeout.|