Default number of api workers in Neutron is set to be equal to
number of CPU cores on host. That is fine on production environment
but on fullstack tests, where each test spawns own neutron-server
process it might cause host overload.
This patch limits number of api_workers to 2 which should be enough
for single test case and should make significantly lower load on host.
Change-Id: I1e970e35883d5240f0bd30eaea50313d93900580
Closes-Bug: #1750337
(cherry picked from commit 465ad6f3197b8591a401a9f0db2fabf6c70fdfce)
Reviewed: https:/ /review. openstack. org/571665 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=b160461a975 e10767de59cd3e1 76763f00ec2184
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit b160461a975e107 67de59cd3e17676 3f00ec2184
Author: Sławek Kapłoński <email address hidden>
Date: Tue Feb 20 09:24:38 2018 +0100
[Fullstack] Limit number of Neutron's api workers
Default number of api workers in Neutron is set to be equal to
number of CPU cores on host. That is fine on production environment
but on fullstack tests, where each test spawns own neutron-server
process it might cause host overload.
This patch limits number of api_workers to 2 which should be enough
for single test case and should make significantly lower load on host.
Change-Id: I1e970e35883d52 40f0bd30eaea503 13d93900580 1a401a9f0db2fab f6c70fdfce)
Closes-Bug: #1750337
(cherry picked from commit 465ad6f3197b859