Enable the admin level of the haproxy socket. Add the local peer to the stick tables.
This commit is contained in:
parent
b0127aa065
commit
32a5f67c92
|
@ -8,7 +8,7 @@ global
|
|||
maxconn {{ haproxy_maxconns }}
|
||||
user haproxy
|
||||
group haproxy
|
||||
stats socket /var/lib/haproxy/stats expose-fd listeners
|
||||
stats socket {{ haproxy_admin_socket }} expose-fd listeners level admin
|
||||
master-worker
|
||||
ca-base /etc/ssl/certs
|
||||
crt-base /etc/ssl/private
|
||||
|
@ -181,7 +181,7 @@ backend {{ srv.acl_name }}_bck
|
|||
cookie {{ srv.stick_cookie }} dynamic
|
||||
{% else %}
|
||||
stick on src
|
||||
stick-table {{ srv.stick_table }}
|
||||
stick-table {{ srv.stick_table }} peers mypeers
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
server-template {{ srv.service_name }}- {{ srv.service_replica_num }} {{ srv.stack_name }}_{{ srv.service_name }}:{{ srv.service_port }} {{ srv.backend_options | default('') }} {% if srv.http_check_enabled is defined and srv.http_check_enabled %}check {{ srv.check_options | default('') }}{% endif %} resolvers docker init-addr libc,none
|
||||
|
|
Loading…
Reference in New Issue