Last active
June 15, 2018 06:03
-
-
Save sarjarapu/9eff91b17e544fd0d4a31d6895fe1910 to your computer and use it in GitHub Desktop.
A JavaScript function call showing the replica set configuration settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rs.config() | |
/* | |
{ | |
"_id": "rs0", | |
"version": 1, | |
"protocolVersion": NumberLong(1), | |
"members": [{ | |
"_id": 0, | |
"host": "mon01:27000", | |
"arbiterOnly": false, | |
"buildIndexes": true, | |
"hidden": false, | |
"priority": 1, | |
"tags": { | |
}, | |
"slaveDelay": NumberLong(0), | |
"votes": 1 | |
}, | |
{ | |
"_id": 1, | |
"host": "mon02:27000", | |
"arbiterOnly": false, | |
"buildIndexes": true, | |
"hidden": false, | |
"priority": 1, | |
"tags": { | |
}, | |
"slaveDelay": NumberLong(0), | |
"votes": 1 | |
}, | |
{ | |
"_id": 2, | |
"host": "mon03:27000", | |
"arbiterOnly": false, | |
"buildIndexes": true, | |
"hidden": false, | |
"priority": 1, | |
"tags": { | |
}, | |
"slaveDelay": NumberLong(0), | |
"votes": 1 | |
} | |
], | |
"settings": { | |
"chainingAllowed": true, | |
"heartbeatIntervalMillis": 2000, | |
"heartbeatTimeoutSecs": 10, | |
"electionTimeoutMillis": 10000, | |
"catchUpTimeoutMillis": -1, | |
"catchUpTakeoverDelayMillis": 30000, | |
"getLastErrorModes": { | |
}, | |
"getLastErrorDefaults": { | |
"w": 1, | |
"wtimeout": 0 | |
}, | |
"replicaSetId": ObjectId("5b23096362ac76fdc504e6e1") | |
} | |
} | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment