Add support for 'auto' number of API or conductor workers
Bug #1240197 reported by
Russell Bryant
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Wishlist
|
Shantanu Tushar |
Bug Description
Nova has some configuration options that allow you to have some services start multiple worker processes.
[general]
ec2_workers=
osapi_
metadata_
[conductor]
workers=
Swift has a similar "workers" option. In Swift, you can set this option to 'auto', and it will use the number of CPU cores. We should add support for 'auto' to all of the workers options in Nova.
https:/
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → Wishlist |
tags: | added: api conductor low-hanging-fruit |
Changed in nova: | |
assignee: | nobody → Shantanu Tushar (shaan7in) |
To post a comment you must log in.
I was looking for something to implement as my first patch and this sounds interesting. I did some poking around and found that nova uses Oslo.config which doesn't seem to support an `auto'-like feature. However, I do see this line[1] in nova/cmd/all.py -
launcher. launch_ service( server, workers= server. workers or 1)
which essentially starts worker processes. Does it make sense to detect the number of CPUs here and set that instead of 1?
[1] https:/ /github. com/openstack/ nova/blob/ master/ nova/cmd/ all.py# L59