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/571666 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=3c462e4bfdd 1cb5ffc21b8c08c c697740b784856
Committed: https:/
Submitter: Zuul
Branch: stable/ocata
commit 3c462e4bfdd1cb5 ffc21b8c08cc697 740b784856
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