From 2d446c462fe3065093d8c52df3a1f1ea2be3a08a Mon Sep 17 00:00:00 2001 From: Mathias Ewald Date: Thu, 13 Oct 2016 19:37:22 +0200 Subject: [PATCH] Set memcache connection limit to 5000 Change-Id: I5599389f26a8ce54bbd0dfc480879d62c7a5ad1d Closes-Bug: #1633169 --- ansible/roles/memcached/defaults/main.yml | 5 +++++ ansible/roles/memcached/templates/memcached.json.j2 | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ansible/roles/memcached/defaults/main.yml b/ansible/roles/memcached/defaults/main.yml index 9c219d4fbc..8377b77d47 100644 --- a/ansible/roles/memcached/defaults/main.yml +++ b/ansible/roles/memcached/defaults/main.yml @@ -7,3 +7,8 @@ project_name: "memcached" memcached_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ kolla_install_type }}-memcached" memcached_tag: "{{ openstack_release }}" memcached_image_full: "{{ memcached_image }}:{{ memcached_tag }}" + +#################### +# Memcached options +#################### +memcached_connection_limit: "5000" diff --git a/ansible/roles/memcached/templates/memcached.json.j2 b/ansible/roles/memcached/templates/memcached.json.j2 index 2e471c0c8b..dcad615a64 100644 --- a/ansible/roles/memcached/templates/memcached.json.j2 +++ b/ansible/roles/memcached/templates/memcached.json.j2 @@ -1,3 +1,4 @@ { - "command": "/usr/bin/memcached -vv -l {{ api_interface_address }} -p {{ memcached_port }}" + "command": "/usr/bin/memcached -vv -l {{ api_interface_address }} -p {{ memcached_port }} -c {{ memcached_connection_limit }}", + "config_files": [] }