Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-88000

Implement real exponential backoff and jitter in write conflict retry

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Storage Execution

      Our current backoff strategy for write conflicts is very rudimentary and susceptible to several problems:

      • It retries too many times without any backoff. We should consider only doing this once or twice before starting to sleep
      • It doesn't ramp up the expontential backoff fast enough. We would need to reach 310 retry attempts before backing off to 100ms, which is likely way too impactful.
      • It does not have jitter, which would randomizes retry attempts by concurrent operations
      • The maximum sleep of 100ms could still be too fast for some workloads

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: