update-status should sleep a random time rather than exactly 5 minutes

Bug #1698139 reported by John A Meinel
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Ian Booth

Bug Description

Currently we are very precise in how much time elapses since the last time we called the update-status hook.

However, that encourages a 'thundering herd' where all of the agents wake up at approximately the same time to go update their status.

We should instead have something like 'every 5 minutes + random sleep of +/- 1 minute'. That would help encourage the units to spread out over time. We could even do 5min + [0-5] or something along those lines if we wanted them to spread out faster.

I don't think this conflicts with bug #1697841. We could make both values configurable (how often, and how much spread).

Revision history for this message
Ian Booth (wallyworld) wrote :
Changed in juju:
assignee: nobody → Ian Booth (wallyworld)
status: Triaged → In Progress
Ian Booth (wallyworld)
Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.