diff --git a/ansible/group_vars/all.yml b/ansible/group_vars/all.yml index e8a84fa9ba..130a3ffb4c 100644 --- a/ansible/group_vars/all.yml +++ b/ansible/group_vars/all.yml @@ -376,6 +376,12 @@ enable_nova: "yes" enable_rabbitmq: "{{ 'yes' if om_rpc_transport == 'rabbit' or om_notify_transport == 'rabbit' else 'no' }}" enable_outward_rabbitmq: "{{ enable_murano | bool }}" +# Most memcache clients handle load-balancing via client side +# hashing (consistent or not) logic, so going under the covers and messing +# with things that the clients are not aware of is general wrong (but this +# keeps the default as is...) +enable_haproxy_memcached: "yes" + # Additional optional OpenStack features and services are specified here enable_aodh: "no" enable_barbican: "no" diff --git a/ansible/roles/haproxy/templates/haproxy.cfg.j2 b/ansible/roles/haproxy/templates/haproxy.cfg.j2 index fd65f93db5..e3354c6b32 100644 --- a/ansible/roles/haproxy/templates/haproxy.cfg.j2 +++ b/ansible/roles/haproxy/templates/haproxy.cfg.j2 @@ -922,7 +922,7 @@ listen mariadb {% endfor %} {% endif %} -{% if enable_memcached | bool %} +{% if enable_memcached | bool and enable_haproxy_memcached | bool %} listen memcached mode tcp timeout client 3600s