diff options
| author | Patrick Uiterwijk <puiterwijk@redhat.com> | 2017-02-08 23:25:44 +0000 |
|---|---|---|
| committer | Patrick Uiterwijk <puiterwijk@redhat.com> | 2017-02-08 23:25:44 +0000 |
| commit | 833f251ed709f2aa1b4e258cf0567ee249a837ba (patch) | |
| tree | cc1d2e6a0912acd4292b45c9a20badc7bc45ae76 /roles/haproxy | |
| parent | 445ad6aaff06e59e597e8e68b9ba7199571268ea (diff) | |
Check local mirrorlist stuff very often
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Diffstat (limited to 'roles/haproxy')
| -rw-r--r-- | roles/haproxy/templates/haproxy.cfg | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index 3cfa76584..288cf6399 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -46,14 +46,14 @@ listen mirror-lists 0.0.0.0:10002 balance hdr(appserver) timeout connect 30s {% if env == "staging" %} - server mirrorlist-local1 localhost:18081 check inter 5s rise 2 fall 3 weight 100 - server mirrorlist-local2 localhost:18082 check inter 5s rise 2 fall 3 weight 100 + server mirrorlist-local1 localhost:18081 check inter 1s rise 2 fall 3 weight 100 + server mirrorlist-local2 localhost:18082 check inter 1s rise 2 fall 3 weight 100 server mirrorlist-phx2 mirrorlist-phx2:80 check inter 5s rise 2 fall 3 backup {% endif %} {% if env == "production" %} {% if inventory_hostname_short == 'proxy02' %} - server mirrorlist-local1 localhost:18081 check inter 5s rise 2 fall 3 weight 100 - server mirrorlist-local2 localhost:18082 check inter 5s rise 2 fall 3 weight 100 + server mirrorlist-local1 localhost:18081 check inter 1s rise 2 fall 3 weight 100 + server mirrorlist-local2 localhost:18082 check inter 1s rise 2 fall 3 weight 100 server mirrorlist-phx2 mirrorlist-phx2:80 check inter 5s rise 2 fall 3 backup server mirrorlist-dedicatedsolutions mirrorlist-dedicatedsolutions:80 check inter 5s rise 2 fall 3 backup server mirrorlist-host1plus mirrorlist-host1plus:80 check inter 5s rise 2 fall 3 backup |
