Menu

Upgrade from MongoDB 8.0 to 9.0 Without Surprises: A Realistic Walkthrough with Docker
πŸ“°

Upgrade from MongoDB 8.0 to 9.0 Without Surprises: A Realistic Walkthrough with Docker

DEV Community: dockerΒ·Nic RaboyΒ·9 days ago
#wUtf6APz
#devtodocker#devto#dev#docker#exit
Reading 0:00
15s threshold

A new major version of your database is exciting right up until you have to run it in production. The release notes are long, the upgrade procedure has more than one step, and the question that actually matters is hard to answer from a document: what happens to my application when I do this?

MongoDB 9.0 is generally available, and it brings performance gains over 8.0, including up to 35% faster find-one queries and up to 30% faster update-one queries. Those figures are "up to" numbers that depend on hardware, workload, and data, so the best way to find out what 9.0 does for you is to try it on your own workload, and the first step to doing that is a safe upgrade path.

In this tutorial, we'll walk through a realistic upgrade of a three-member replica set from MongoDB 8.0 to 9.0 using Docker. We'll check the health of the deployment, take a backup and verify it restores, make a go/no-go decision, perform a rolling upgrade one member at a time, and then raise the feature compatibility version.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.