osapi_compute_workers need to be controlled either by the number of cpus on the node or provide an option in provisioing
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_
osapi_compute_
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_
osapi_compute_
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 |
This setting should be set from inside the compute- server- setup.sh script.