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

Need a way to exclude a particular server from being read

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.8.1
    • Component/s: Replication
    • Labels:
      None

      As per recommended best practice, one of our secondary servers is in a different data center. However, when enabling slaveOK for a replication set, this server is sometimes read from, even though it's much slower than the secondaries in the same data center.

      We have already set the priority to 0 so that this server never becomes master, but there does not appear to be a way to make that server unreadable by application code. I believe this is a core server issue since the configuration should be set in the replication set configuration and not in each client we want to use.

            Assignee:
            scotthernandez Scott Hernandez (Inactive)
            Reporter:
            mnorman Michael D. Norman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: