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

Introduce a maxStalenessMS option when querying secondaries

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 2.6.0-rc0
    • Fix Version/s: None
    • Component/s: Replication
    • Labels:
      None

      Description

      As most app, a lot of my queries (much more than I currently do) could be executed on secondaries if I knew they aren't more than X seconds behind the primary member of their replica set.
      That why it would be really convenient to have a maxSlaveDelay settings or equivalent (the same way that we have a "readPref" setting for example) that would only select secondaries that have less than X seconds lag.

      I believe this value needs to be cached somewhere to be blazing fast to retrieve. This value couldn't be updated in real time, but updated every 30 seconds or so would be more than enough in most cases.

      I'm not sure about the details of the implementation, but you get the whole idea.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jesse A. Jesse Jiryu Davis
              Reporter:
              tubededentifrice Vincent
              Participants:
              Votes:
              3 Vote for this issue
              Watchers:
              12 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: