Split bootstrap of 9 slaves into two stages

Bootstrapping 9 slaves at one time reqires a lot of CPU power
(>=10 real CPU cores), so it is better to bootstrap nodes in
two stages to avoid timeouts and libvirt network failures.

Change-Id: I7b3a3ceba4859b6ce4a3af95dbbeba040abd8fff
Closes-Bug:#1455539
This commit is contained in:
Dennis Dmitriev 2015-05-20 15:51:23 +03:00
parent 520dc5c830
commit 78d09b20eb
1 changed files with 4 additions and 1 deletions

View File

@ -179,6 +179,9 @@ class SetupEnvironment(TestBasic):
"""
self.check_run("ready_with_9_slaves")
self.env.revert_snapshot("ready", skip_timesync=True)
self.env.bootstrap_nodes(self.env.d_env.nodes().slaves[:9],
# Bootstrap 9 slaves in two stages to get lower load on the host
self.env.bootstrap_nodes(self.env.d_env.nodes().slaves[:5],
skip_timesync=True)
self.env.bootstrap_nodes(self.env.d_env.nodes().slaves[5:9],
skip_timesync=True)
self.env.make_snapshot("ready_with_9_slaves", is_make=True)