Book Image

MongoDB High Availability

By : Afshin Mehrabani
Book Image

MongoDB High Availability

By: Afshin Mehrabani

Overview of this book

Table of Contents (17 chapters)
MongoDB High Availability
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 9. Migrating Instances and Reducing Downtime

Migrating a MongoDB instance to another machine is a common situation that you might face. This migration could be used to upgrade the server or move the instance to another data center. In the production environment, it's important to avoid downtime while moving the database to another machine.

The common method to move the instance is installing the database engine on the new server, copying the database path from an existing server, pasting it into the new server, and then starting a new instance. This method has some problems, as you should disable writing while moving database logs to the new server. In this chapter, we will introduce a way to move the entire database from an existing server to another server with no downtime.