Upgrade Requirements for MongoDB Versions
- Upgrade Requirements for MongoDB 3.6
- Upgrade Requirements for MongoDB 3.4
- Upgrade Requirements for MongoDB 3.2
- Upgrade Requirements for MongoDB 3.0
Upgrade Requirements for MongoDB 3.6
If you’re running a version of MongoDB before MongoDB 3.4, you must first upgrade to MongoDB 3.4 before upgrading to MongoDB 3.6.
Once an mLab-hosted deployment is running MongoDB 3.6, downgrading back to MongoDB 3.4 will require approximately 5-10 minutes of downtime. We strongly advise that you refrain from using any features new to version 3.6 until you are confident that your deployment is healthy running on 3.6.
With MongoDB version 3.6, you should be aware of the fact that:
- MongoDB provides a list of 3.6-compatible drivers in their Driver Compatability Reference.
- If as part of preparing to upgrade to MongoDB version 3.6 you need to upgrade your driver version we recommend upgrading to a 4.0-compatible driver instead of just a 3.6-compatible driver.
Before upgrading, you must do the following:
- Review the full list of 3.6 changes that can affect compatibility with older version of MongoDB.
- If you have indexes on array fields:
- Review your deployment for the performance impact of a specific change to multikey indexes (indexes on array fields). See https://docs.mongodb.com/manual/release-notes/3.6-compatibility/#array-sort-behavior for general information and https://jira.mongodb.org/browse/SERVER-19402 for specific information.
Upgrade Requirements for MongoDB 3.4
If you’re running a version of MongoDB before MongoDB 3.2, you must first upgrade to MongoDB 3.2 before upgrading to MongoDB 3.4.
Once an mLab-hosted deployment is running MongoDB 3.4, it cannot be downgraded to an earlier release version without significant downtime. We strongly advise that you refrain from using any features new to 3.4 until you are confident that your deployment is healthy running on version 3.4.x.
With MongoDB version 3.4, you should be aware of the fact that:
- MongoDB provides a list of 3.4-compatible drivers in their Driver Compatability Reference.
Before upgrading, you must do the following:
- Review the full list of 3.4 changes that can affect compatibility with older version of MongoDB.
Upgrade Requirements for MongoDB 3.2
If you’re running a version of MongoDB before MongoDB 3.0, you must first upgrade to MongoDB 3.0 before upgrading to MongoDB 3.2.
With MongoDB version 3.2, you should be aware of the fact that:
- MongoDB provides a list of 3.2-compatible drivers in their Driver Compatability Reference.
- Choosing to upgrade an existing 3.0 MMAPv1 Dedicated Cluster deployment to 3.2 WiredTiger will automatically initiate a rolling node replacement process that will seamlessly change your deployment to the WiredTiger storage engine.
- Only mLab’s Dedicated plans support the WiredTiger storage engine.
Before upgrading, you must do the following:
- Review the full list of 3.2 changes that can affect compatibility with older version of MongoDB.
If your deployment is in EC2-Classic on the Dedicated M1 tier, you will need to migrate to an Environment (EC2-VPC) (no additional charge) before you can migrate to the WiredTiger storage engine.
Upgrade Requirements for MongoDB 3.0
If you’re running a version of MongoDB before MongoDB 2.6, you must first upgrade to MongoDB 2.6 before upgrading to MongoDB 3.0.
Once an mLab-hosted deployment is running MongoDB 3.0, it cannot be downgraded to an earlier release version. Before upgrading, we strongly recommend testing the connectivity of your entire stack on a MongoDB 3.0 deployment with a SCRAM-SHA-1 authSchema, such as an mLab-hosted 3.0 Shared Cluster deployment.
With MongoDB version 3.0, you should be aware of the fact that:
- There are many changes that can affect compatibility with older versions of MongoDB.
- You must use a MongoDB 3.0 and SCRAM-SHA-1-compatible driver to connect to MongoDB 3.0. This release includes changes to the user schema, which requires changes to the way that MongoDB stores users’ credentials. Not only will we upgrade the binaries that are running your mongod processes, we will also complete the authorization user schema upgrade to SCRAM-SHA-1.
- mLab’s support for MongoDB 3.0 does NOT include support for the WiredTiger storage engine. Our support for WiredTiger comes in MongoDB 3.2, when MongoDB supports WiredTiger as its default storage engine.
- Dedicated plan deployments with many databases relative to available RAM (e.g., 10 or more databases on our M1 plan), can experience performance degradation after upgrading due to inefficiencies in namespace file management (see MongoDB SERVER-24631 bug). To avoid this, contact support@mlab.com for assistance before upgrading.
Before upgrading, you must do the following:
- Review the full list of 3.0 changes that can affect compatibility with older version of MongoDB.
- Upgrade all connecting apps to use a MongoDB 3.0 and SCRAM-SHA-1-compatible driver (Moped/Mongoid users, see note below).
Moped (used by Mongoid 4 and below), is not compatible with MongoDB version 3.0 because it does not support SCRAM-SHA-1 authentication. If you’re using Mongoid, you must upgrade to Mongoid 5 before upgrading your mLab-hosted deployment to 3.0.
Click here to view upgrade requirements for older versions previously supported by mLab.