From 3c462e4bfdd1cb5ffc21b8c08cc697740b784856 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 (cherry picked from commit 465ad6f3197b8591a401a9f0db2fabf6c70fdfce) --- 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 1de5caa01b8..c9329795a07 100644 --- a/neutron/tests/fullstack/resources/config.py +++ b/neutron/tests/fullstack/resources/config.py @@ -81,6 +81,7 @@ class NeutronConfigFixture(ConfigFixture): 'password': rabbitmq_environment.password, 'host': rabbitmq_environment.host, 'vhost': rabbitmq_environment.vhost}, + 'api_workers': 2, }, 'database': { 'connection': connection,