Database Reference
In-Depth Information
Note
Network issues or hardware failure on the member's machine also has the same result as
stopping the MongoDB service.
For the next test, we will halt the primary node's service. After stopping the service in the
primary
node, the replica set uses an election process to choose the next
primary
node from
secondary
nodes.
In the following diagram, you can see the
rs.status()
output after stopping the
primary
node (the hostname is
mongod1.replicaset.com
):