Reduce HTTP check internal to 1s in Docker tests When testing the reaction of the Gerrit HA setup to unhealthiness, it is important that the incoming calls will be promptly redirected to the healthy node. The old delay of 10s and three consecutive check failures was bringing the whole HA cluster to be unhealthy for 30s, which is quite unpleasant user experience. Change-Id: I9fb91043b3c6a62f66bba36c9119c72aaf273f24
diff --git a/src/test/docker/haproxy/haproxy.cfg b/src/test/docker/haproxy/haproxy.cfg index 259e9f0..a068802 100644 --- a/src/test/docker/haproxy/haproxy.cfg +++ b/src/test/docker/haproxy/haproxy.cfg
@@ -44,14 +44,14 @@ balance source timeout connect 10s timeout server 5m - server gerrit_ssh_01 gerrit-01:29418 check port 8080 inter 10s fall 3 rise 2 - server gerrit-ssh_02 gerrit-02:29418 check port 8080 inter 10s fall 3 rise 2 + server gerrit_ssh_01 gerrit-01:29418 check port 8080 inter 1s fall 3 rise 2 + server gerrit-ssh_02 gerrit-02:29418 check port 8080 inter 1s fall 3 rise 2 backend gerrit_http_nodes mode http balance source option forwardfor - default-server inter 10s fall 3 rise 2 + default-server inter 1s fall 3 rise 2 option httpchk GET /config/server/healthcheck~status HTTP/1.0 http-check expect status 200 server gerrit_01 gerrit-01:8080 check @@ -61,7 +61,7 @@ mode http balance source option forwardfor - default-server inter 10s fall 3 rise 2 + default-server inter 1s fall 3 rise 2 option httpchk GET /config/server/healthcheck~status HTTP/1.0 http-check expect status 200 server gerrit_01 gerrit-01:8080 check