Backup schedule should be spread over the day
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Déjà Dup |
Fix Released
|
Undecided
|
Unassigned | ||
deja-dup (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Precise |
Fix Released
|
Undecided
|
Unassigned | ||
Quantal |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
[Impact]
On the Ubuntu One File Storage API we see a big spike in the number of API requests at 00:00Z, daily. Pretty much all of the requests at that time come from Deja Dup/Duplicity.
This makes it more likely that users will see errors from Ubuntu One being overloaded, like in bug 882699.
[Fix]
Due to a bug, we always were backing up at midnight UTC, rather than midnight local time. While fixing that, I also put in code to randomly choose a time between 2 and 4 AM (local time), rather than midnight.
[Test Case]
* Enable daily automatic backups
* Change your time zone so that it is 2AM
* Wait two hours. Deja Dup should start backing up within those two hours.
[Regression Potential]
* The only code changed was the automatic scheduler. So any regressions would be there.
Related branches
- Robert Bruce Park (community): Approve
-
Diff: 70 lines (+47/-0)1 file modifiedcommon/CommonUtils.vala (+47/-0)
tags: | added: canonical-webops-u1 |
Changed in deja-dup: | |
status: | New → Fix Released |
I suggest some random + exponential backoff, like in CSMA/CD or CSMA/CA:
http:// en.wikipedia. org/wiki/ Exponential_ backoff