jiay 发表于 2018-10-26 06:15:58

mongodb中的副本集搭建实践

{"set" : "application",  
    "date" : ISODate("2013-01-26T13:34:35Z"),
  
    "myState" : 1,"members" : [
  
          {
  
          "_id" : 0,
  
          "name" : "localhost:9927",
  
          "health" : 1,
  
          "state" : 1,
  
          "stateStr" : "PRIMARY",
  
          "uptime" : 140,
  
          "optime" : Timestamp(1359207200000, 1),
  
          "optimeDate" : ISODate("2013-01-26T13:33:20Z"),
  
          "self" : true
  
          },
  
          {
  
          "_id" : 1,
  
          "name" : "localhost:9928",
  
          "health" : 1,
  
          "state" : 2,
  
          "stateStr" : "SECONDARY",
  
          "uptime" : 63,
  
          "optime" : Timestamp(1359207200000, 1),
  
          "optimeDate" : ISODate("2013-01-26T13:33:20Z"),
  
          "lastHeartbeat" : ISODate("2013-01-26T13:34:34Z"),
  
          "pingMs" : 0
  
          },
  
          {
  
          "_id" : 2,
  
          "name" : "localhost:9929",
  
          "health" : 1,
  
          "state" : 7,
  
          "stateStr" : "ARBITER",
  
          "uptime" : 63,
  
          "lastHeartbeat" : ISODate("2013-01-26T13:34:34Z"),
  
          "pingMs" : 0
  
          }
  
      ],
  
      "ok" : 1
  
}


页: [1]
查看完整版本: mongodb中的副本集搭建实践