Проверяю и получаю:
rs0:PRIMARY> rs.status()
{
"set" : "rs0",
"date" : ISODate("2013-11-15T08:47:30Z"),
"myState" : 1,
"members" : [
{
"_id" : 0,
"name" : "IP:27017",
"health" : 1,
"state" : 1,
"stateStr" : "PRIMARY",
"uptime" : 186686,
"optime" : Timestamp(1384505195, 1),
"optimeDate" : ISODate("2013-11-15T08:46:35Z"),
"self" : true
},
{
"_id" : 1,
"name" : "IP:27017",
"health" : 1,
"state" : 1,
"stateStr" : "PRIMARY",
"uptime" : 822,
"optime" : Timestamp(1384322313, 1),
"optimeDate" : ISODate("2013-11-13T05:58:33Z"),
"lastHeartbeat" : ISODate("2013-11-15T08:47:29Z"),
"lastHeartbeatRecv" : ISODate("1970-01-01T00:00:00Z"),
"pingMs" : 0
},
{
"_id" : 2,
"name" : "IP:27017",
"health" : 1,
"state" : 1,
"stateStr" : "PRIMARY",
"uptime" : 822,
"optime" : Timestamp(1384322411, 1),
"optimeDate" : ISODate("2013-11-13T06:00:11Z"),
"lastHeartbeat" : ISODate("2013-11-15T08:47:28Z"),
"lastHeartbeatRecv" : ISODate("1970-01-01T00:00:00Z"),
"pingMs" : 0
}
],
"ok" : 1
}
Почему все члены реплики PRIMARY, как сделать одного главного и два ведомых?