0

如题,查看复制集状态时,发现一个实例没有心跳信息,多出一个配置参数“self”,请教此为何物?

rs.status()
{
“set” : “reptest”,
“date” : ISODate(“2016-05-04T00:57:23.949Z”),
“myState” : 2,
“term” : NumberLong(10),
“syncingTo” : “192.168.2.110:27017”,
“heartbeatIntervalMillis” : NumberLong(2000),
“members” : [
{
“_id” : 1,
“name” : “192.168.2.110:27017”,
“health” : 1,
“state” : 1,
“stateStr” : “PRIMARY”,
“uptime” : 41408,
“optime” : {
“ts” : Timestamp(1462285082, 2),
“t” : NumberLong(10)
},
“optimeDate” : ISODate(“2016-05-03T14:18:02Z”),
“lastHeartbeat” : ISODate(“2016-05-04T00:57:23.280Z”),
“lastHeartbeatRecv” : ISODate(“2016-05-04T00:57:22.712Z”),
“pingMs” : NumberLong(0),
“electionTime” : Timestamp(1462285082, 1),
“electionDate” : ISODate(“2016-05-03T14:18:02Z”),
“configVersion” : 2
},
{
“_id” : 2,
“name” : “192.168.2.110:27018”,
“health” : 1,
“state” : 2,
“stateStr” : “SECONDARY”,
“uptime” : 39058,
“optime” : {
“ts” : Timestamp(1462285082, 2),
“t” : NumberLong(10)
},
“optimeDate” : ISODate(“2016-05-03T14:18:02Z”),
“lastHeartbeat” : ISODate(“2016-05-04T00:57:22.332Z”),
“lastHeartbeatRecv” : ISODate(“2016-05-04T00:57:22.825Z”),
“pingMs” : NumberLong(0),
“syncingTo” : “192.168.2.110:27017”,
“configVersion” : 2
},
{
“_id” : 3,
“name” : “192.168.2.110:27019”,
“health” : 1,
“state” : 2,
“stateStr” : “SECONDARY”,
“uptime” : 41409,
“optime” : {
“ts” : Timestamp(1462285082, 2),
“t” : NumberLong(10)
},
“optimeDate” : ISODate(“2016-05-03T14:18:02Z”),
“syncingTo” : “192.168.2.110:27017”,
“configVersion” : 2,

<strong>"self" : true</strong>

}
],
“ok” : 1
}