From 465ad6f3197b8591a401a9f0db2fabf6c70fdfce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C5=82awek=20Kap=C5=82o=C5=84ski?= Date: Tue, 20 Feb 2018 09:24:38 +0100 Subject: [PATCH] [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: I1e970e35883d5240f0bd30eaea50313d93900580 Closes-Bug: #1750337 --- neutron/tests/fullstack/resources/config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/neutron/tests/fullstack/resources/config.py b/neutron/tests/fullstack/resources/config.py index 919d68861a5..afc6438dd31 100644 --- a/neutron/tests/fullstack/resources/config.py +++ b/neutron/tests/fullstack/resources/config.py @@ -77,6 +77,7 @@ class NeutronConfigFixture(ConfigFixture): 'password': rabbitmq_environment.password, 'host': rabbitmq_environment.host, 'vhost': rabbitmq_environment.vhost}, + 'api_workers': 2, }, 'database': { 'connection': connection,