diff options
author | Ralph Bean <rbean@redhat.com> | 2017-08-01 17:27:07 +0000 |
---|---|---|
committer | Ralph Bean <rbean@redhat.com> | 2017-08-01 17:27:12 +0000 |
commit | bf6db455d1febfc07b16ce065a0a2af769924e8e (patch) | |
tree | 20f2763d5917a604e87b1b43c8672b270bf92147 | |
parent | de0c37b3df32f7f927f2180f5659d785e07e5a35 (diff) | |
download | ansible-bf6db455d1febfc07b16ce065a0a2af769924e8e.tar.gz ansible-bf6db455d1febfc07b16ce065a0a2af769924e8e.tar.xz ansible-bf6db455d1febfc07b16ce065a0a2af769924e8e.zip |
Try sticky haproxy sessions for pdc to share some of the load.
-rw-r--r-- | roles/haproxy/templates/haproxy.cfg | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index 1cd2032b6..7a5df1229 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -275,14 +275,15 @@ listen openqa 0.0.0.0:10044 listen pdc 0.0.0.0:10045 balance hdr(appserver) + # Set session persistence with a cookie. + # https://jdennis.fedorapeople.org/doc/rhsso-tripleo-federation/html/rhsso-tripleo-federation.html#step-18-use-proxy-persistence-for-keystone-on-each-controller + cookie SERVERID insert indirect nocache + {% if env == "staging" %} - server pdc-web01 pdc-web01:80 check inter 10s rise 1 fall 2 -{% else %} -## pdc-web01 is absent because we don't currently know how to configure -## mod_auth_mellon to work when distributed across more than one app node. It -## expects to be able to share some state between requests in-process. Boo. - server pdc-web02 pdc-web02:80 check inter 10s rise 1 fall 2 + server pdc-web01 pdc-web01:80 check inter 10s rise 1 fall 2 cookie pdc-web01 {% endif %} + server pdc-web02 pdc-web02:80 check inter 10s rise 1 fall 2 cookie pdc-web02 + option httpchk GET /rest_api/v1/ timeout server 3600000 timeout connect 3600000 |