concept status in category mongoDB

appears as: status, status
MongoDB in Action, Second Edition: Covers MongoDB version 3.0

This is an excerpt from Manning's book MongoDB in Action, Second Edition: Covers MongoDB version 3.0.

In addition to allowing you to insert and query for data, the shell permits you to run administrative commands. Some examples include viewing the current database operation, checking the status of replication to a secondary node, and configuring a collection for sharding. As you’ll see, the MongoDB shell is indeed a powerful tool that’s worth getting to know well.

Replica set status

You can see the status of a replica set and its members by running the replSetGet-Status command. To invoke this command from the shell, run the rs.status() helper method. The resulting document indicates the members and their respective states, uptime, and oplog times. It’s important to understand replica set member state. You can see a complete list of possible values in table 11.1.