Amazon Digital Services LLC, 2016. — 112 p. — ASIN: B01DKOUZO8This book is an exploration of MongoDB. It begins with a brief overview of MongoDB so as to give the reader an insight into what MongoDB is. The next part is a guide to the user on how to work with replica sets in MongoDB. You will be guided on how to deploy a replica set in MongoDB. Uses of a replica set are explored in detail, and you will learn how to add and then remove them from a replica set. A member of a replica set can also be replaced with another member. This book helps you to know how to do this. The priority of the members of a replica set influences the member who emerges as the leader after an election. You will also know how to change the size of the oplog. The common database commands in MongoDB, and especially the ones which can be executed on the mongo shell, are explored. Data recovery in MongoDB is also discussed. You will be guided on how you can analyze the performance of your database operations, as well as how to rotate your log files.
The following chapters are discussed in this book:
An overview of MongoDB
Deploying a Replica Set
Adding members to a Replica Set
Removal of a Member from a Replica Set
Replacing a Replica Set Member
Setting the Priority for a Member
Changing the Oplog Size
Common Database Commands
Data Recovery
Analyzing the Performance of Database Operations
Rotating Log Files
Backup and Restore