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

isMaster command output for a configsvr

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Works as Designed
    • Affects Version/s: 3.1.7
    • Fix Version/s: None
    • Component/s: Diagnostics
    • Labels:

      Description

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

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: