Hello, I am new to MongoDB concepts, I was trying to set up a 3 node replica set.
1 - PRIMARY
Suppose i exit or stop the PRIMARY node, the election happens between two SECONDARY node.
2 - PRIMARY
3 - SECONDARY
Again i exit or stop the PRIMARY node, the election does not happen as only one node is available in the cluster and the data or CRUD operations does not happen.
Can you please guide me, if we can add node dynamically to the cluster when the cluster node size reduces from 3 nodes to 1 node?
(A java application with MongoDB interaction should not fail when 2 nodes stop in a 3 node cluster)