-
Type:
Improvement
-
Resolution: Done
-
Priority:
Minor - P4
-
Affects Version/s: 2.2.3
-
Component/s: Replication
-
None
-
Environment:ubuntu
-
Fully Compatible
-
None
-
0
-
None
-
None
-
None
-
None
-
None
-
None
I set up a replica set with 3 nodes, one acting as arbiter.
after initializing and adding the hosts, I added the third as a arbiter using rs.addArb(host)
rs.conf()
"_id" : "api",
"version" : 7,
"members" : [
,
,
{ "_id" : 2, "host" : "minnow-data-arbiter-1.cloud.appcelerator.com:27017", "arbiterOnly" : true }rs.status()
"set" : "api",
"date" : ISODate("2013-02-06T23:51:40Z"),
"myState" : 2,
"syncingTo" : "minnow-data-2.cloud.appcelerator.com:27017",
"members" : [
,
,
{ "_id" : 2, "name" : "minnow-data-arbiter-1.cloud.appcelerator.com:27017", "health" : 1, "state" : 2, "stateStr" : "SECONDARY", "uptime" : 4882, "lastHeartbeat" : ISODate("2013-02-06T23:51:39Z"), "pingMs" : 12 } ],
"ok" : 1
I would expect the third node to be in state 7 for arbiter.