Fix balance algorithm to maintain affinity between a server
and a client.
This commit is contained in:
@@ -28,7 +28,7 @@ listen stats :8888
|
||||
{% if units %}
|
||||
{% for service, ports in service_ports.iteritems() -%}
|
||||
listen {{ service }} 0.0.0.0:{{ ports[0] }}
|
||||
balance roundrobin
|
||||
balance source
|
||||
option tcplog
|
||||
{% for unit, address in units.iteritems() -%}
|
||||
server {{ unit }} {{ address }}:{{ ports[1] }} check
|
||||
|
||||
Reference in New Issue
Block a user