wheat 发表于 2018-10-27 06:18:36

【Mongodb】 Sharding Replica Sets 分片集群生产环境安装与介绍!

sharding1:PRIMARY> rs.status()  
{
  
         "set": "sharding1",
  
         "date": ISODate("2014-08-28T08:29:45Z"),
  
         "myState": 1,
  
         "members": [
  
                   {
  
                            "_id": 1,
  
                            "name": "10.1.2.11:27101",
  
                            "health": 1,
  
                            "state": 1,
  
                            "stateStr": "PRIMARY",
  
                            "uptime": 577,
  
                            "optime": Timestamp(1409214151, 1),
  
                            "optimeDate": ISODate("2014-08-28T08:22:31Z"),
  
                            "electionTime": Timestamp(1409214162, 1),
  
                            "electionDate": ISODate("2014-08-28T08:22:42Z"),
  
                            "self": true
  
                   },
  
                   {
  
                            "_id": 2,
  
                            "name": "10.1.2.11:27102",
  
                            "health": 1,
  
                            "state": 2,
  
                            "stateStr": "SECONDARY",
  
                            "uptime": 431,
  
                            "optime": Timestamp(1409214151, 1),
  
                            "optimeDate": ISODate("2014-08-28T08:22:31Z"),
  
                            "lastHeartbeat": ISODate("2014-08-28T08:29:45Z"),
  
                            "lastHeartbeatRecv": ISODate("2014-08-28T08:29:43Z"),
  
                            "pingMs": 0,
  
                            "syncingTo": "10.1.2.11:27101"
  
                   },
  
                   {
  
                            "_id": 3,
  
                            "name": "10.1.2.11:27103",
  
                            "health": 1,
  
                            "state": 2,
  
                            "stateStr": "SECONDARY",
  
                            "uptime": 431,
  
                            "optime": Timestamp(1409214151, 1),
  
                            "optimeDate": ISODate("2014-08-28T08:22:31Z"),
  
                            "lastHeartbeat": ISODate("2014-08-28T08:29:45Z"),
  
                            "lastHeartbeatRecv": ISODate("2014-08-28T08:29:45Z"),
  
                            "pingMs": 12,
  
                            "syncingTo": "10.1.2.11:27101"
  
                   }
  
         ],
  
         "ok": 1
  
}


页: [1]
查看完整版本: 【Mongodb】 Sharding Replica Sets 分片集群生产环境安装与介绍!