summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/openstack
diff options
context:
space:
mode:
authorliyuenan <liyuenan@huawei.com>2017-02-10 09:37:26 +0800
committerJustin chi <chigang@huawei.com>2017-02-13 08:19:21 +0000
commit00791156cb2b98f7126a466dc28cf89a4a2a9eef (patch)
tree88ed86f27c2aa4ce8aeac7928f4b957bd0f7e7d5 /deploy/adapters/ansible/openstack
parentd4a90ad0ff4930f4853dc47dd11619a92a1fb1dd (diff)
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 <liyuenan@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/openstack')
-rw-r--r--deploy/adapters/ansible/openstack/templates/nova.conf5
1 files changed, 3 insertions, 2 deletions
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]