summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorSlawek Kaplonski <skaplons@redhat.com>2020-12-01 09:18:41 +0100
committerSlawek Kaplonski <skaplons@redhat.com>2020-12-10 10:10:01 +0000
commitf63dc09206a41c85edc92117c3e9cf3a3d49b820 (patch)
treedb3e8759fc67ac324c445b86811322994eff43a0 /tox.ini
parent8d6c301301e33697fd4eb4d6de53f680b909a04d (diff)
downloadneutron-f63dc09206a41c85edc92117c3e9cf3a3d49b820.tar.gz
Limit usage of resources in the fullstack tests job
To limit usage of resources (mostly memory) in the fullstack job and to avoid oom killer to kill e.g. mysqld service, this patch: * Makes number of API workers changeable by tests, as a parameter to EnvironmentDescription and defaults its value to 1. As neutron server is spawned separately for each test and is used only to process just few API requests during that single test so this should be still enough there, and where more API workers are needed (like some dhcp HA tests: TestDhcpAgentHARaceCondition) it can be changed, * reduces number of test run workers from 4 to 3 - job will run slower but hopefully more stable, * in the functional and fullstack tests job definition disable etcd3 service - this will not save us a lot of memory but still it's not needed at all so why to run it there. Change-Id: If19803ab6db144e2d17d6805d379c1c76d8fa343 Closes-Bug: #1906366
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini2
1 files changed, 1 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 576bd69e27..f8f9f81e99 100644
--- a/tox.ini
+++ b/tox.ini
@@ -76,7 +76,7 @@ deps =
commands =
{toxinidir}/tools/generate_dhclient_script_for_fullstack.sh {envdir}
{toxinidir}/tools/deploy_rootwrap.sh {toxinidir} {envdir}/etc {envdir}/bin
- stestr run --concurrency 4 {posargs}
+ stestr run --concurrency 3 {posargs}
[testenv:dsvm-fullstack-gate]
setenv = {[testenv:dsvm-fullstack]setenv}