Try sticky haproxy sessions for pdc to share some of the load.
This commit is contained in:
parent
de0c37b3df
commit
bf6db455d1
1 changed files with 7 additions and 6 deletions
|
@ -275,14 +275,15 @@ listen openqa 0.0.0.0:10044
|
||||||
|
|
||||||
listen pdc 0.0.0.0:10045
|
listen pdc 0.0.0.0:10045
|
||||||
balance hdr(appserver)
|
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" %}
|
{% if env == "staging" %}
|
||||||
server pdc-web01 pdc-web01:80 check inter 10s rise 1 fall 2
|
server pdc-web01 pdc-web01:80 check inter 10s rise 1 fall 2 cookie pdc-web01
|
||||||
{% 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
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
server pdc-web02 pdc-web02:80 check inter 10s rise 1 fall 2 cookie pdc-web02
|
||||||
|
|
||||||
option httpchk GET /rest_api/v1/
|
option httpchk GET /rest_api/v1/
|
||||||
timeout server 3600000
|
timeout server 3600000
|
||||||
timeout connect 3600000
|
timeout connect 3600000
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue