hi,
I recently started using mongodb. I am using mongo php client 1.2.10 and I have 1 primary and 2 secondaries setup for mongodb servers.
Here are my questions,
1. How should I configure distributing reads between primary and secondary. I read about readPreferences and could I find relevant mode where I my reads will get processed in 2:1 (secondary:primary ratio).
I came across these links,
but I am not sure setting it manually (using slaveOkay) is a correct way or that's deprecared.
2. If I select readPreference as "SecondaryPreffered", how one of the secondary server is selected? in round robin way? or?
3. How to find out which one of the 3 mongo servers my request is being read from? I tried to tail mongodb logs but could not figure out.
Any pointers/thoughts will be much appreciated.
Thanks,
-Manasi