Created
May 20, 2015 19:17
-
-
Save vquaiato/c93156778d591e09e65a to your computer and use it in GitHub Desktop.
mongodb replicaset configured
This file contains 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
jarvis:PRIMARY> rs.status() | |
{ | |
"set" : "jarvis", | |
"date" : ISODate("2015-05-20T19:15:31Z"), | |
"myState" : 1, | |
"members" : [ | |
{ | |
"_id" : 0, | |
"name" : "[SERVER1]:27017", | |
"health" : 1, | |
"state" : 1, | |
"stateStr" : "PRIMARY", | |
"uptime" : 150, | |
"optime" : Timestamp(1432149305, 1), | |
"optimeDate" : ISODate("2015-05-20T19:15:05Z"), | |
"electionTime" : Timestamp(1432149282, 1), | |
"electionDate" : ISODate("2015-05-20T19:14:42Z"), | |
"self" : true | |
}, | |
{ | |
"_id" : 1, | |
"name" : "[SERVER2]:27017", | |
"health" : 1, | |
"state" : 2, | |
"stateStr" : "SECONDARY", | |
"uptime" : 26, | |
"optime" : Timestamp(1432149305, 1), | |
"optimeDate" : ISODate("2015-05-20T19:15:05Z"), | |
"lastHeartbeat" : ISODate("2015-05-20T19:15:30Z"), | |
"lastHeartbeatRecv" : ISODate("2015-05-20T19:15:31Z"), | |
"pingMs" : 72, | |
"syncingTo" : "[SERVER1]:27017" | |
} | |
], | |
"ok" : 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment