How to disable sticky sessions in Openshift3

后端 未结 2 538
天涯浪人
天涯浪人 2021-01-03 09:16

If you scale up a Pod in Openshift3, all requests coming from the same client IP address are sent to container which has the session associated.

Is there any config

2条回答
  •  感动是毒
    2021-01-03 09:47

    oc set env dc/router ROUTER_TCP_BALANCE_SCHEME=roundrobin will change the load balancing algorithm haproxy uses for routes it just passes through (default is source). ROUTER_LOAD_BALANCE_ALGORITHM will change it for routes where it terminates TLS (default us leastconn).

    More info on changing the internals of how haproxy works in the OCP 3.5 docs .

提交回复
热议问题