Hi Cyril.

Am 28-10-2016 19:21, schrieb Cyril Bonté:
Hi Aleksandar,

Le 28/10/2016 à 18:19, Aleksandar Lazic a écrit :
Wrong lines in github link below

[...]

I have seen that when I use a browser, which accepts cookies, I always
reach the same endpoint.
https://caddy-template-usage-1-caddy-teplate.playground.itandtel.at/templates/print-hostname.tmpl


I'm quite sure this works as designed ;-)

It is useless which of the algo I use the cookie stickiness is always
the winner right?

https://github.com/openshift/origin/blob/master/images/router/haproxy/conf/haproxy-config.template#L339-L345


Right lines
https://github.com/openshift/origin/blob/master/images/router/haproxy/conf/haproxy-config.template#L260-L266

The cookie takes priority, but it doesn't make the balancing algorithm
useless. For example, when one of your server becomes DOWN, haproxy
will rebalance the connections to another server, applying
roundrobin/leastconn or any other algo you've configured.

Thank you for clarification.

BR Aleks

Reply via email to