-
Type:
Task
-
Resolution: Done
-
Priority:
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.