Database Reference
In-Depth Information
As you can see, we have a replica set with three members, one primary and two secondar-
ies. The
stateStr
property in the
rs.status()
output shows the status of each
member in the replica set, that is, for
mongod2.replicaset.com
and the secondary
member,
mongod3.replicset.com
.
Also, you can simply run the
rs.status()
command in the secondary
mongo
shell to
check the status of the replica set.