Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-19937

isMaster command output for a configsvr

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 3.1.7
    • Component/s: Diagnostics

      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),
      ...
      

            Assignee:
            spencer@mongodb.com Spencer Brody (Inactive)
            Reporter:
            jonathan.abrahams Jonathan Abrahams
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: