Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying MongoDB High Availability
  • Table Of Contents Toc
MongoDB High Availability

MongoDB High Availability

By : Mehrabani
1 (1)
close
close
MongoDB High Availability

MongoDB High Availability

1 (1)
By: Mehrabani

Overview of this book

This book has a perfect balance of concepts and their practical implementation along with solutions to make a highly available MongoDB server with clear instructions and guidance. If you are using MongoDB in a production environment and need a solution to make a highly available MongoDB server, this book is ideal for you. Familiarity with MongoDB is expected so that you understand the content of this book.
Table of Contents (12 chapters)
close
close
11
Index

Migrating a replica set in action


For the first part of the migration, we are going to migrate a replica set. In this section, we will learn how to add a new node to the replica set and wait for the synchronization process. Then, we remove the old node and make sure that the migration has been completed successfully.

Explaining the migration process

In this scenario, we have a replica set with one primary, one secondary, and one arbiter node. The following diagram shows the replica set and its members:

Then, we will add a new node to the existing replica set and remove the current primary node.

In this part, a new secondary node synchronizes its oplog with the primary node in a background process. After completing synchronization, you can safely remove the primary node and wait for the replica set to choose the new primary node. This is the election phase.

The following diagram shows the election procedure:

The current replica set has three members. These include one primary node, one secondary...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
MongoDB High Availability
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon