Set concurrency to num CPUs / 2

A recent change added a knob for setting the concurrency for tempest
runs.  It started out at 4 and then was reduced to 2.  Both of these
values assumed that all of our test nodes had 4 CPUs.  That's not
actually the case.  We now have some nodes with 8.

Change the default from 2 to the number of CPUs / 2.  This won't
change anything on most of our test nodes, but it will allow us to use
more on some nodes.

Change-Id: I559359b44dcbb717de3eab31cb296f033951f312
This commit is contained in:
Russell Bryant
2014-01-26 20:57:02 -05:00
parent 6cf7a3a128
commit c67c8f98f3

View File

@@ -152,7 +152,11 @@ export DEVSTACK_GATE_SAVANNA=${DEVSTACK_GATE_SAVANNA:-0}
export DEVSTACK_GATE_CONFIGDRIVE=${DEVSTACK_GATE_CONFIGDRIVE:-1}
# Set the number of threads to run tempest with
export TEMPEST_CONCURRENCY=${TEMPEST_CONCURRENCY:-2}
DEFAULT_CONCURRENCY=$(nproc)
if [ ${DEFAULT_CONCURRENCY} > 3 ] ; then
DEFAULT_CONCURRENCY=$[${DEFAULT_CONCURRENCY} / 2]
fi
export TEMPEST_CONCURRENCY=${TEMPEST_CONCURRENCY:-${DEFAULT_CONCURRENCY}}
# The following variables are set for different directions of Grenade updating
# for a stable branch we want to both try to upgrade forward n => n+1 as