Skip to content

Instantly share code, notes, and snippets.

@motiooon
Created March 14, 2013 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save motiooon/5162042 to your computer and use it in GitHub Desktop.
Save motiooon/5162042 to your computer and use it in GitHub Desktop.
Replica set
{
set: "rs0",
date: {
$date: "Thu Mar 14 11:00:32 2013"
},
myState: 2,
members: [
{
_id: 0,
name: "127.0.0.1:27017",
health: 0,
state: 8,
stateStr: "(not reachable/healthy)",
uptime: 0,
optime: {
t: 1363272557000,
i: 1
},
optimeDate: {
$date: "Thu Mar 14 10:49:17 2013"
},
lastHeartbeat: {
$date: "Thu Mar 14 10:51:01 2013"
},
pingMs: 0,
errmsg: "socket exception"
},
{
_id: 1,
name: "127.0.0.1:27018",
health: 1,
state: 2,
stateStr: "SECONDARY",
uptime: 675,
optime: {
t: 1363272557000,
i: 1
},
optimeDate: {
$date: "Thu Mar 14 10:49:17 2013"
},
lastHeartbeat: {
$date: "Thu Mar 14 11:00:31 2013"
},
pingMs: 0
},
{
_id: 2,
name: "127.0.0.1:27019",
health: 1,
state: 2,
stateStr: "SECONDARY",
optime: {
t: 1363272557000,
i: 1
},
optimeDate: {
$date: "Thu Mar 14 10:49:17 2013"
},
self: true
},
{
_id: 3,
name: "127.0.0.1:27020",
health: 0,
state: 8,
stateStr: "(not reachable/healthy)",
uptime: 0,
optime: {
t: 0,
i: 0
},
optimeDate: {
$date: 0
},
lastHeartbeat: {
$date: 0
},
pingMs: 0,
errmsg: "socket exception"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment