The default bug view has changed. See this FAQ.

Tweak sync intervals to reduce server load

VERIFIED FIXED in Firefox 8

Status

Cloud Services
Firefox Sync: Backend
VERIFIED FIXED
6 years ago
6 years ago

People

(Reporter: philikon, Assigned: philikon)

Tracking

({verified-aurora, verified-beta})

unspecified
mozilla10
verified-aurora, verified-beta
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox8 fixed, firefox9 fixed, firefox10 fixed)

Details

(Whiteboard: [verified in services])

Attachments

(1 attachment, 1 obsolete attachment)

As discussed, we're going to make the following tweaks to the sync intervals to reduce the server load created by an individual client:

* Increase the singleDeviceInterval from 1 to 24 hours (reverting bug 678588)
* Increase activeInterval from 5 to 10 minutes.
* Increase immediateInterval from 60 to 90 seconds.

Flagging for tracking-firefox9 and firefox8 as a heads up to release-drivers. The risk of these changes is very small as they only involve tweaking default pref values.
Created attachment 566638 [details] [diff] [review]
v1

Patch tweaking the default pref values as discussed in comment 0.

Requesting approval for Aurora and Beta so that this mitigation takes effect as soon as possible. As mentioned in comment 0, the risk is minimal as we're simply tweaking default pref values.
Attachment #566638 - Flags: review?(rnewman)
Attachment #566638 - Flags: feedback?(rsoderberg)
Attachment #566638 - Flags: approval-mozilla-beta?
Attachment #566638 - Flags: approval-mozilla-aurora?
(Assignee)

Updated

6 years ago
Blocks: 678588
Attachment #566638 - Flags: review?(rnewman) → review+
Attachment #566638 - Flags: feedback?(rsoderberg) → feedback+
Created attachment 566710 [details] [diff] [review]
v1.1

Of course tweaking the interval values made some SyncScheduler tests fail because they used some hardcoded dummy values for backoff. Fixed!

Please see comment 1 for Aurora/Beta approval justification. Thanks!
Attachment #566638 - Attachment is obsolete: true
Attachment #566638 - Flags: approval-mozilla-beta?
Attachment #566638 - Flags: approval-mozilla-aurora?
Attachment #566710 - Flags: approval-mozilla-beta?
Attachment #566710 - Flags: approval-mozilla-aurora?
(Assignee)

Updated

6 years ago
Status: NEW → ASSIGNED
https://hg.mozilla.org/services/services-central/rev/9a34387605ea

STRs for QA:

* Single device users should sync once every 24 hours instead of once per hour. With bug 692249 having landed alongside this bug, this should also carry over browser restarts.

* Multi-device users should sync every 10 minutes (instead of 5 minutes before) when their machine is under active use. When they're using two or more machines at the same time (two or machines are uploading records), the interval now drops to 90 seconds (instead of 60 before). The interval for idle machiens (1 hour) is unchanged.
Whiteboard: [fixed in services]
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0a1) Gecko/20111017 Firefox/10.0a1
Mozilla/5.0 (Android; Linux armv7l; rv:10.0a1) Gecko/20111017 Firefox/10.0a1 Fennec/10.0a1
Mozilla/5.0 (Windows NT 6.1; rv:10.0a1) Gecko/20111017 Firefox/10.0a1
Mozilla/5.0 (X11; Linux i686; rv:10.0a1) Gecko/20111017 Firefox/10.0a1

Verified on all OSs.
Single device per account users sync every 24 hours
Prerequisites:
1. Sync is set up on device
2. History items are available on device

STR:
1. Start Browser and make sure last sync was successfull
2. Close browser
3. Change device time to more than 1 hour since last sync
4. Start the browser and wait 1-2 minutes
   Result: Sync is not performed
5. Close browser
6. Change device time to 1-2 minutes before 24 hours since last sync
7. Wait for the time to pass until 24 hours since last sync
Result: Sync is performed after 24 hours since last sync

Multiple device per account users sync every 10 minutes (or 90 seconds if the last sync downloaded new item(s) from the server)
Prerequisites:
1. Sync is set up on device
2. History items are available on device

STR:
1. Start Browser and make sure last sync was successfull
2. Close browser
3. Change device time to less than 10 minutes since last sync
4. Wait for the time to pass until 10 minutes since last sync
Result: Sync is performed after 10 minutes since last sync

Note: On Mac, sync is performed after every 90 seconds, even if no items were retrieved at last sync. Is this expected?
sync intervals are correctly well at new defaults seen on latest s-c builds.
Whiteboard: [fixed in services] → [verified in services]

Updated

6 years ago
Attachment #566710 - Flags: approval-mozilla-beta?
Attachment #566710 - Flags: approval-mozilla-beta+
Attachment #566710 - Flags: approval-mozilla-aurora?
Attachment #566710 - Flags: approval-mozilla-aurora+
https://hg.mozilla.org/releases/mozilla-aurora/rev/ef5f3c44d034
status-firefox10: affected → fixed
status-firefox9: affected → fixed
https://hg.mozilla.org/releases/mozilla-beta/rev/ab251d661e5b
status-firefox8: affected → fixed
tracking-firefox8: ? → ---
tracking-firefox9: ? → ---
https://hg.mozilla.org/mozilla-central/rev/9a34387605ea
Status: ASSIGNED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla8
(Assignee)

Updated

6 years ago
Target Milestone: mozilla8 → mozilla10
verified across channels
Status: RESOLVED → VERIFIED
Keywords: verified-aurora, verified-beta
You need to log in before you can comment on or make changes to this bug.