Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(458)

Issue 10826194: sync: raise initial backoff interval from 1 second to 5 minutes. (Closed)

Created:
8 years, 4 months ago by tim (not reviewing)
Modified:
8 years, 4 months ago
Reviewers:
rlarocque
CC:
chromium-reviews, raz_google.com
Visibility:
Public.

Description

sync: raise initial backoff interval from 1 second to 5 minutes. Long term, we'd like to drop this further (i.e. 1 minute) and trust THROTTLED responses in the event of widespread backend outages. We'd like to run some stress tests of that infrastructure (at scale / under load), but in the meantime we want to address the problem for beta channel users / M22. We chose 5 minutes, which is a little more aggressive than the recommended value, but we believe is safe -- happy to discuss offline. This patch is very low risk (stability wise). although 5 minutes is a long time to wait for users who hit this due to transient failures. Current data suggests 500s occur around 0.02% of the time, and although backoff isn't limited to 500s it's unlikely to get hit frequently, and the user experience doesn't break down significantly. Effectiveness wise, We can run an experiment once it hits dev channel by returning 500s and watching for expected drops in QPS. BUG=139733, 142029 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=151216

Patch Set 1 #

Total comments: 2

Patch Set 2 : changes to make test pass #

Patch Set 3 : fix typo #

Total comments: 10

Patch Set 4 : review + rebase #

Patch Set 5 : fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -3 lines) Patch
M chrome/browser/sync/test/integration/sync_test.cc View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M sync/engine/sync_scheduler_impl.h View 1 2 3 3 chunks +11 lines, -0 lines 0 comments Download
M sync/engine/sync_scheduler_impl.cc View 1 2 3 3 chunks +46 lines, -1 line 0 comments Download
M sync/engine/sync_scheduler_unittest.cc View 1 2 3 4 2 chunks +33 lines, -1 line 0 comments Download
M sync/internal_api/public/engine/polling_constants.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M sync/internal_api/public/engine/polling_constants.cc View 1 2 3 1 chunk +9 lines, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
tim (not reviewing)
8 years, 4 months ago (2012-08-08 00:28:12 UTC) #1
rlarocque
Reluctant LGTM. I think this is a bit too conservative, but have no way of ...
8 years, 4 months ago (2012-08-08 01:58:23 UTC) #2
tim (not reviewing)
http://codereview.chromium.org/10826194/diff/1/sync/engine/sync_scheduler_impl.cc File sync/engine/sync_scheduler_impl.cc (right): http://codereview.chromium.org/10826194/diff/1/sync/engine/sync_scheduler_impl.cc#newcode910 sync/engine/sync_scheduler_impl.cc:910: IsBackingOff() ? wait_interval_->length : TimeDelta::FromMinutes(5)); On 2012/08/08 01:58:23, rlarocque ...
8 years, 4 months ago (2012-08-08 05:57:04 UTC) #3
tim (not reviewing)
Two changes. 1 - treat MIGRATION_DONE specially (keep 1s retry). 2 - Added egregious temporarily ...
8 years, 4 months ago (2012-08-10 23:11:23 UTC) #4
rlarocque
https://chromiumcodereview.appspot.com/10826194/diff/2004/sync/engine/sync_scheduler_impl.cc File sync/engine/sync_scheduler_impl.cc (right): https://chromiumcodereview.appspot.com/10826194/diff/2004/sync/engine/sync_scheduler_impl.cc#newcode38 sync/engine/sync_scheduler_impl.cc:38: static bool g_force_immediate_retry = false; Discussed offline. I'll look ...
8 years, 4 months ago (2012-08-11 00:22:56 UTC) #5
tim (not reviewing)
https://chromiumcodereview.appspot.com/10826194/diff/2004/sync/engine/sync_scheduler_impl.cc File sync/engine/sync_scheduler_impl.cc (right): https://chromiumcodereview.appspot.com/10826194/diff/2004/sync/engine/sync_scheduler_impl.cc#newcode919 sync/engine/sync_scheduler_impl.cc:919: TimeDelta SyncSchedulerImpl::GetInitialBackoffDelay( On 2012/08/11 00:22:56, rlarocque wrote: > Although ...
8 years, 4 months ago (2012-08-11 00:43:58 UTC) #6
rlarocque
LGTM. https://chromiumcodereview.appspot.com/10826194/diff/2004/sync/engine/sync_scheduler_impl.cc File sync/engine/sync_scheduler_impl.cc (right): https://chromiumcodereview.appspot.com/10826194/diff/2004/sync/engine/sync_scheduler_impl.cc#newcode919 sync/engine/sync_scheduler_impl.cc:919: TimeDelta SyncSchedulerImpl::GetInitialBackoffDelay( On 2012/08/11 00:43:58, timsteele wrote: > ...
8 years, 4 months ago (2012-08-11 00:58:33 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/10826194/5003
8 years, 4 months ago (2012-08-11 01:13:45 UTC) #8
commit-bot: I haz the power
Try job failure for 10826194-5003 (retry) on mac for step "compile" (clobber build). It's a ...
8 years, 4 months ago (2012-08-11 01:34:58 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/10826194/13002
8 years, 4 months ago (2012-08-12 23:38:46 UTC) #10
commit-bot: I haz the power
8 years, 4 months ago (2012-08-13 01:07:46 UTC) #11
Change committed as 151216

Powered by Google App Engine
This is Rietveld 408576698