osapi_compute_workers need to be controlled either by the number of cpus on the node or provide an option in provisioing

Bug #1730279 reported by Venkatesh Velpula
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R4.0
Fix Committed
High
Kumar Harsh
R4.1
Fix Released
High
Kumar Harsh
Trunk
Invalid
High
Kumar Harsh

Bug Description

We see the number of workers for OpenStack API service are set to 40 by default,
irrespective of no of cpus on my node and this occupying lot of RAM and slowness in accessing the horizon and webUI and also while performing other operations.

Currently on the node 4 cpus are there and we are expecting the same number of workers.

root@nodec21:~# nproc
4

root@nodec21: ~# cat /etc/nova/nova.conf | grep osapi_compute_worker
osapi_compute_workers=40
root@nodec21: ~#

root@nodec21: ~# free -g
              total used free shared buff/cache available
Mem: 31 26 1 0 3 4
Swap: 31 1 30
root@nodec21: ~#

after reducing the number of workers

root@nodec21: ~# cat /etc/nova/nova.conf | grep osapi_compute_worker
osapi_compute_workers=4
root@nodec21: ~# service nova-api restart

root@nodec21: ~#
root@nodec21: ~# free -g
              total used free shared buff/cache available
Mem: 31 23 4 0 3 7
Swap: 31 0 31

information type: Proprietary → Public
Revision history for this message
Ramprakash R (ramprakash) wrote :

This setting should be set from inside the compute-server-setup.sh script.

Revision history for this message
Hari Prasad Killi (haripk) wrote :

Checked that osapi_compute_worker is set correctly in 5.0 setup. The bug seems to be in R4.* releases.

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.0

Review in progress for https://review.opencontrail.org/40898
Submitter: Hari Prasad Killi (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.1

Review in progress for https://review.opencontrail.org/40900
Submitter: Hari Prasad Killi (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/40898
Committed: http://github.com/Juniper/contrail-provisioning/commit/820a81d5e75dbdf11ad06409d85cea0649bade7b
Submitter: Zuul (<email address hidden>)
Branch: R4.0

commit 820a81d5e75dbdf11ad06409d85cea0649bade7b
Author: Hari Prasad Killi <email address hidden>
Date: Wed Mar 21 13:59:50 2018 +0530

Set osapi_compute_worker in nova.conf to the number of cores

Change-Id: I88400234f39122838fff749e262c740b3b114678
closes-bug: #1730279

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/40900
Committed: http://github.com/Juniper/contrail-provisioning/commit/580e2db1564b02d950f6bb222ba90bd0cc8630d2
Submitter: Zuul (<email address hidden>)
Branch: R4.1

commit 580e2db1564b02d950f6bb222ba90bd0cc8630d2
Author: Hari Prasad Killi <email address hidden>
Date: Wed Mar 21 13:59:50 2018 +0530

Set osapi_compute_worker in nova.conf to the number of cores

Change-Id: I88400234f39122838fff749e262c740b3b114678
closes-bug: #1730279

Revision history for this message
Venkatesh Velpula (vvelpula) wrote :

verified

root@nodec64:~# nproc
4
root@nodec64:~#
root@nodec64:~# cat /etc/nova/nova.conf | grep worker
osapi_compute_workers=4
metadata_workers=4
root@nodec64:~#
'

root@nodec64:~# contrail-version
Package Version Build-ID | Repo | Package Name
-------------------------------------- ------------------------------ ----------------------------------
contrail-fabric-utils 4.1.1.0-97 97
contrail-heat 4.1.1.0-97 97
contrail-nova-networkapi 4.1.1.0-97 97

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.