mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-28 07:59:02 +01:00
SERVER-24729 stagger the launching of resmoke jobs
This commit is contained in:
parent
0f21b1baf0
commit
0c9a7a497a
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user