diff options
author | liyuenan <liyuenan@huawei.com> | 2017-01-20 13:15:00 +0800 |
---|---|---|
committer | liyuenan <liyuenan@huawei.com> | 2017-01-20 13:29:56 +0800 |
commit | e5d3ebef36c73a8bcbad3d0236bdb663809033ea (patch) | |
tree | c3c1590789ef509828128e065f9f936111414699 /deploy/adapters/ansible/openstack | |
parent | e479c2ffb9d0375092bb1c4ee9930867140b871e (diff) |
FIX access database failed
JIRA: COMPASS-521
Number of separate API worker processes for service. The default is calculated by
the number of CPUs available for best performance. But some pods have many CPUs,
so that some service API worker processes is too many to access database.
For example, huawei-pod2 has 47 CPUs, nova-api has 98 processes, cinder-api has
50 processes and heat-api has 33 processes, when aodh want to initialize the database,
mysql can not deal with this processes.
Change-Id: I00513883ff55cc28cd676c3085615aaac36eb744
Signed-off-by: liyuenan <liyuenan@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/openstack')
-rw-r--r-- | deploy/adapters/ansible/openstack/templates/nova.conf | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/openstack/templates/nova.conf b/deploy/adapters/ansible/openstack/templates/nova.conf index 4a7bb0a2..99071d78 100644 --- a/deploy/adapters/ansible/openstack/templates/nova.conf +++ b/deploy/adapters/ansible/openstack/templates/nova.conf @@ -39,6 +39,10 @@ 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 +{% endif %} + [database] # The SQLAlchemy connection string used to connect to the database connection = mysql://nova:{{ NOVA_DBPASS }}@{{ db_host }}/nova |