Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-596

In case of replica set members which are located in different data center, are reads from the java driver will be data center aware?

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: 2.0
    • Component/s: Connection Management
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      One of our projects using replica sets which will be deployed across 2 data centers. Our plan is to use slaves in both data centers to serve reads. We are ok to write across datacenter but reads need to be served locally.
      When we connect to mongo db from the App server which is in data center1 we expect the read request should go to the mongod which is running in the same data center. How we can ensure it happens, how java driver reroute the read request to available member of the replica set?

      We have set slveOk = true in our application.

            Assignee:
            Unassigned Unassigned
            Reporter:
            vineetsaini Vineet Saini
            None
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None