Comment 0 for bug 1522130

Revision history for this message
David Ames (thedac) wrote :

On OpenStack API charms haproxy sets timeout connection to 1 second. This is reasonable only in an ideal scenario. Connections to backends on a busy cloud may take much longer. Even haproxy docs suggest 4 to 5 seconds [1].

defaults
    log global
    mode tcp
    option tcplog
    option dontlognull
    retries 3
    timeout queue 1000
    timeout connect 1000

Set timeout connect (and timeout queue while we are at it) to sane defaults and optionally make this configurable.

[1] https://cbonte.github.io/haproxy-dconv/configuration-1.5.html#4-timeout%20connect