[wp-trac] [WordPress Trac] #25833: Background Updates should be spread over the hour

WordPress Trac noreply at wordpress.org
Tue Nov 5 09:42:02 UTC 2013


#25833: Background Updates should be spread over the hour
-----------------------------+-------------------------
 Reporter:  dd32             |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  3.7.2
Component:  Upgrade/Install  |    Version:  3.7
 Severity:  normal           |   Keywords:  needs-patch
-----------------------------+-------------------------
 In 3.7 the background updates are scheduled for exactly 7am/7pm local-
 time, this causes many hundreds of thousands of sites to attempt
 performing updates on-the-hour.

 This also means that we now have millions of sites running their update
 checks in 12 timeslots (or as close to it as they can get) rather than
 spread over all the minutes in the hour (12 * 60).

 We should make Background Updates occur at a random minute of the hour
 instead to spread the load out, not only for WordPress.org, but for shared
 hosts whose disks suddenly receive a higher than normal amount of file
 writes.

 Initially my thought is that we do 7am/7pm+ rand(0,59).
 We could also do 6.30 + rand(0,59) to spread it from 6.30 -> 7.30 if we
 want to keep it around the 7 o'clock slot.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25833>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list