[SERVER-2354] return host status in isMaster Created: 13/Jan/11  Updated: 29/Feb/12  Resolved: 21/Nov/11

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: 1.6.5
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Jaakko Manninen Assignee: Kristina Chodorow (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 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.



 Comments   
Comment by Kristina Chodorow (Inactive) [ 21/Nov/11 ]

Feel free to comment if you'd like this reopened.

Comment by Kristina Chodorow (Inactive) [ 02/Sep/11 ]

Why do you need health? If the driver can reach the server, health is 1, if not, 0.

Generated at Thu Feb 08 02:59:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.