-
Type:
Bug
-
Resolution: Done
-
Priority:
Minor - P4
-
None
-
Affects Version/s: 3.1.7
-
Component/s: Diagnostics
-
None
-
None
-
None
-
None
-
None
-
None
-
None
The isMaster command returns a document describing the mongod instance. When the mongod is configsvr which is part of a replica set (CSRS) the output looks like:
{
"hosts" : [
"Jonathans-MacBook-Pro.local:29017",
"Jonathans-MacBook-Pro.local:29018",
"Jonathans-MacBook-Pro.local:29019"
],
"setName" : "configServers",
"setVersion" : 1,
"ismaster" : false,
"secondary" : true,
"me" : "Jonathans-MacBook-Pro.local:29017",
"configsvr" : 1,
"maxBsonObjectSize" : 16777216,
"maxMessageSizeBytes" : 48000000,
"maxWriteBatchSize" : 1000,
"localTime" : ISODate("2015-08-13T17:05:16.605Z"),
"maxWireVersion" : 4,
"minWireVersion" : 0,
"ok" : 1
}
The property configvr is a numeric. What does this value represent? When specifying the command replSetGetStatus for the replica set, the property configsvr is a boolean:
{
"set" : "configServers",
"date" : ISODate("2015-08-13T17:01:20.208Z"),
"myState" : 1,
"term" : NumberLong(0),
"configsvr" : true,
"heartbeatIntervalMillis" : NumberLong(2000),
...