Details
-
Improvement
-
Resolution: Done
-
Major - P3
-
None
-
1.6.5
-
None
Description
To implement Replica Set failover support in a driver, as specified in http://www.mongodb.org/display/DOCS/Connecting+Drivers+to+Replica+Sets, it would be essential to add the server status to the isMaster command. Currently, db._adminCommand('replSetGetStatus') returns this information correctly, but requires admin access.
Just copying the 'health' field from replSetGetStatus to isMaster call would help. Then, the driver would only have to get the server list once from any seed server, and use that for real connections, periodically re-querying isMaster to facilitate quick failover.