Add periodic_fuzzy_delay option.

Fixes bug 962665

This random delay is intended to reduce the stampeding behavior
associated with periodic tasks when compute workers are restarted in
unison across a cluster.

Change-Id: Ie3771d94af29049061c129b8ea562ee447a61771
This commit is contained in:
Rick Harris
2012-03-22 23:50:36 +00:00
parent aee2e2dc51
commit 0063cadfc6

View File

@@ -166,7 +166,7 @@ def stubout_create_vm(stubs):
def stubout_loopingcall_start(stubs):
def fake_start(self, interval, now=True):
def fake_start(self, interval):
self.f(*self.args, **self.kw)
stubs.Set(utils.LoopingCall, 'start', fake_start)