Database Reference
In-Depth Information
The following example shows the output returned if you run the rs.stepDown() command against the testset
replica set:
> rs.stepDown()
> rs.status()
{
"set" : "testset",
"date" : ISODate("2013-06-04T11:19:01Z"),
"myState" : 2,
"members" : [
{
"_id" : 0,
"name" : "[hostname]:27021",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
"uptime" : 5428,
"optime" : Timestamp(1370340105, 1),
"optimeDate" : ISODate("2013-06-04T10:01:45Z"),
"self" : true
},
{
"_id" : 1,
"name" : "[hostname]:27022",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
"uptime" : 4636,
"optime" : Timestamp(1370340105, 1),
"optimeDate" : ISODate("2013-06-04T10:01:45Z"),
"lastHeartbeat" : ISODate("2013-06-04T11:19:00Z"),
"lastHeartbeatRecv" : ISODate("2013-06-04T11:19:00Z"),
"pingMs" : 0,
"syncingTo" : "[hostname]:27021"
},
{
"_id" : 2,
"name" : "[hostname]:27023",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
"uptime" : 4636,
"optime" : Timestamp(1370340105, 1),
"optimeDate" : ISODate("2013-06-04T10:01:45Z"),
"lastHeartbeat" : ISODate("2013-06-04T11:19:01Z"),
"lastHeartbeatRecv" : ISODate("2013-06-04T11:19:00Z"),
"pingMs" : 0,
Search WWH ::




Custom Search