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

Change frequency of periodic replicated writes while idle from 10 sec to 500ms

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Replication
    • None
    • Replication

    Description

      If a replica set is idle for several seconds or longer, clients' staleness estimate of secondaries can be very inaccurate. Clients must make an honest staleness estimate to enforce the maxStalenessMS read preference.

      achille.brighton's analysis shows the current idle write frequency of 10 seconds (SERVER-23892) allows inaccuracies large enough that a client can think a secondary is too stale to read from, even though the secondary is fresh enough. To ensure we always read from a fresh-enough secondary in an idle replica set, the idle write period should equal the client's minHeartbeatFrequencyMS, defined in the Server Discovery and Monitoring Spec as 500ms.

      Attachments

        Activity

          People

            backlog-server-repl Backlog - Replication Team
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: