Set balance to source for openshift_router endpoints
Currently the haproxy loadbalancer set by TripleO uses balance roundrobin. According to this Openshift HA configuration example[1] it uses balance source for both the API and the router backends. This way we ensure that all traffic from a user’s session goes to the same node(sticky sessions). [1] https://blog.openshift.com/keeping-both-of-your-openshift-container-platforms-highly-available-with-keepalived-and-haproxy/ Change-Id: I0be466f7d30748fc46fc69f098bf5aa7eb980aa2
This commit is contained in:
parent
b6b4201be1
commit
50de0269d0
@ -64,7 +64,7 @@ outputs:
|
|||||||
internal_ip: "%{hiera('openshift_infra_vip')}"
|
internal_ip: "%{hiera('openshift_infra_vip')}"
|
||||||
service_port: 80
|
service_port: 80
|
||||||
listen_options:
|
listen_options:
|
||||||
balance: 'roundrobin'
|
balance: 'source'
|
||||||
member_options: [ 'check', 'inter 2000', 'rise 2', 'fall 5' ]
|
member_options: [ 'check', 'inter 2000', 'rise 2', 'fall 5' ]
|
||||||
haproxy_listen_bind_param: ['transparent']
|
haproxy_listen_bind_param: ['transparent']
|
||||||
openshift-router-https:
|
openshift-router-https:
|
||||||
@ -73,7 +73,7 @@ outputs:
|
|||||||
internal_ip: "%{hiera('openshift_infra_vip')}"
|
internal_ip: "%{hiera('openshift_infra_vip')}"
|
||||||
service_port: 443
|
service_port: 443
|
||||||
listen_options:
|
listen_options:
|
||||||
balance: 'roundrobin'
|
balance: 'source'
|
||||||
member_options: [ 'check', 'inter 2000', 'rise 2', 'fall 5' ]
|
member_options: [ 'check', 'inter 2000', 'rise 2', 'fall 5' ]
|
||||||
haproxy_listen_bind_param: ['transparent']
|
haproxy_listen_bind_param: ['transparent']
|
||||||
upgrade_tasks: []
|
upgrade_tasks: []
|
||||||
|
Loading…
Reference in New Issue
Block a user