From 00791156cb2b98f7126a466dc28cf89a4a2a9eef Mon Sep 17 00:00:00 2001 From: liyuenan Date: Fri, 10 Feb 2017 09:37:26 +0800 Subject: FIX access database failed JIRA: COMPASS-521 Nova compute use osapi_compute and metadata api. Both of their worker processes should be limited, otherwise mysql would not deal with those processes. Change-Id: Ib00b4731369c1c677639c9437ab83887550db572 Signed-off-by: liyuenan --- deploy/adapters/ansible/openstack/templates/nova.conf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'deploy/adapters/ansible/openstack') diff --git a/deploy/adapters/ansible/openstack/templates/nova.conf b/deploy/adapters/ansible/openstack/templates/nova.conf index 99071d78..b648b030 100644 --- a/deploy/adapters/ansible/openstack/templates/nova.conf +++ b/deploy/adapters/ansible/openstack/templates/nova.conf @@ -39,8 +39,9 @@ notification_driver = nova.openstack.common.notifier.rpc_notifier notification_driver = ceilometer.compute.nova_notifier memcached_servers = {{ memcached_servers }} -{% if ansible_processor_vcpus > 30 %} -osapi_compute_workers = 30 +{% if ansible_processor_vcpus > 20 %} +osapi_compute_workers = 20 +metadata_workers = 20 {% endif %} [database] -- cgit 1.2.3-korg