Nerd For Tech
Published in

Nerd For Tech

Maximizing Uptime with MongoDB Atlas Live Migrations

Photo by Chris Briggs on Unsplash

What exactly is Live Migration?

The process of migrating a MongoDB deployment from one environment to another while the database is still operational is known as live migration. This implies that your application can continue to read and write data to the database during the conversion process, with no downtime or disruption for users.

  1. Migrating between cloud providers: You can use this way to move your MongoDB Atlas deployment from one cloud provider to another, such as AWS, GCP, or Azure.
  2. Moving your MongoDB Atlas deployment from one region to another within the same cloud provider is possible using this strategy.
  3. Moving your MongoDB Atlas deployment from one cluster to another within the same area and cloud provider is possible using this method.

Getting Ready for Live Migration:

There are a few steps you need to take to prepare before starting a live migration with MongoDB Atlas. These are some examples:

  1. Determine the new environment: Determine the location of your MongoDB Atlas deployments, such as a new cloud provider, region, or cluster.
  2. Configure the new environment as follows: Configure the new environment with the infrastructure and resources required to support your MongoDB Atlas deployment. This could entail establishing a new cluster, configuring networking and security, and so forth.
  3. Test the new environment: By evaluating connectivity and performance, ensure that the new environment is properly configured and capable of supporting your MongoDB Atlas deployment.
  4. Backup the current deployment: Create a backup of your current MongoDB Atlas deployment in case something goes wrong during the migration process.

Performing Live Migration:

You can begin the live migration procedure when you have set up the new environment and backed up your current deployment. The stages will differ depending on the approach you choose.

  1. Select the cluster to which you wish to migrate the data and open the menu by clicking on the three dots. Select Migrate Data to this Cluster from the drop-down menu.
drop-down menu
  • Hostname and port of cluster’s primary member
  • Username/password
  • CAFile (if you connect to MongoDB with the — sslCAFile option)
Provide the connection details


MongoDB Atlas’s live migration capability allows you to transfer your deployment to a new environment with no downtime or interruption to your application. You may effectively perform a live migration using MongoDB Atlas while keeping your application operating by following the instructions indicated in this article.



NFT is an Educational Media House. Our mission is to bring the invaluable knowledge and experiences of experts from all over the world to the novice. To know more about us, visit

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Shraddha Paghdar

Javascript Full-stack developer with a passion for building highly scalable and performant apps. ||