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

Allow majority read concern for replication for backup node use-case

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Replication
    • Repl 2019-02-25

      One common configuration is to have a non-voting, hidden backup node. One would then take e.g. hourly filesystem or EBS snapshots of the node. One potential issue with this approach is that it's possible that a backup snapshot might wind up with data that is rolled back, e.g. if the primary fails at the same time a s apshot is taken. One approach to address this is to use delayed replication of e.g. 5 min, and hope that is sufficient to avoid observing the rollback (I'm not sure of the oplog is fixed up during a rollback or not, so perhaps this isn't actually sufficient). Instead, a more robust solution would be to allow the backup node's replication thread/query to use read concern majority. Presumably this would require that you set the node to priority 0/hidden, the same restrictions on delayed replication.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            bartle David Bartley
            Votes:
            0 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated: