From 0c9a7a497a3a1fc1d767ad2a39a06c56c4a24e08 Mon Sep 17 00:00:00 2001 From: iwysiu Date: Fri, 15 Jul 2016 13:10:05 -0400 Subject: [PATCH] SERVER-24729 stagger the launching of resmoke jobs --- buildscripts/resmokelib/testing/executor.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/buildscripts/resmokelib/testing/executor.py b/buildscripts/resmokelib/testing/executor.py index 5d79abd6ac6..3628fa06053 100644 --- a/buildscripts/resmokelib/testing/executor.py +++ b/buildscripts/resmokelib/testing/executor.py @@ -5,6 +5,7 @@ Driver of the test execution framework. from __future__ import absolute_import import threading +import time from . import fixtures from . import hooks as _hooks @@ -148,6 +149,10 @@ class TestGroupExecutor(object): t.daemon = True t.start() threads.append(t) + # SERVER-24729 Need to stagger when jobs start to reduce I/O load if there + # are many of them. Both the 5 and the 10 are arbitrary. + if len(threads) >= 5: + time.sleep(10) joined = False while not joined: