Let me explain the scenario in the first step.
Case 1: I have a Primary Replica set on localhost:27017 and 2 replications of primary on ports 27018 & 27019. all these are on the same set.
When i shutdown the server on port 27017, one of the two secondary servers on ports 27018 & 27019 will be made Master(from the election).
Case 2: I have a Primary Replica set on localhost:27017 and 2 replications of primary on 27018 & 27019 along with a arbiter on 27020. all these are on the same group.
Now, When i shutdown arbiter(:27020) and the primary(:27017) nodes, I see the below message in log on :27018 & :27019 Message: 2016-04-03T12:26:19.035-0700 I REPL [ReplicationExecutor] Not starting an election, since we are not electable
How do i conf my secondary nodes to host an election by them self(as in the case 1) and choose one of them to be a primary.
Commends used to create these nodes are: **mongod --port 27017 --dbpath F:\mongodb\replication\rs0-0 --replSet rs0 --smallfiles --oplogSize 128 --logpath F:\data\log\devr0.log --logappend
mongod --port 27018 --dbpath F:\mongodb\replication\rs0-1 --replSet rs0 --smallfiles --oplogSize 128 --logpath F:\data\log\devr1.log --logappend
mongod --port 27019 --dbpath F:\mongodb\replication\rs0-2 --replSet rs0 --smallfiles --oplogSize 128 --logpath F:\data\log\devr2.log --logappend
mongod --port 27020 --dbpath F:\mongodb\replication\arbiter --replSet rs0 --smallfiles --oplogSize 128 --logpath F:\data\log\devarb.log --logappend**
can't see a majority of the set, relinquishing primary
– profesor79