Closed Bug 694149 Opened 13 years ago Closed 13 years ago

Tweak sync intervals to reduce server load

Categories

(Firefox :: Sync, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla10
Tracking Status
firefox8 --- fixed
firefox9 --- fixed
firefox10 --- fixed

People

(Reporter: philikon, Assigned: philikon)

References

Details

(Keywords: verified-aurora, verified-beta, Whiteboard: [verified in services])

Attachments

(1 file, 1 obsolete file)

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.
Attached patch v1 (obsolete) — Splinter Review
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?
Blocks: 678588
Attachment #566638 - Flags: review?(rnewman) → review+
Attachment #566638 - Flags: feedback?(rsoderberg) → feedback+
Attached patch v1.1Splinter Review
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?
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]
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/mozilla-central/rev/9a34387605ea
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla8
Target Milestone: mozilla8 → mozilla10
verified across channels
Status: RESOLVED → VERIFIED
Component: Firefox Sync: Backend → Sync
Product: Cloud Services → Firefox
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: