When is an Atlas Flex cluster the wrong choice against a dedicated cluster, and what happened to the retired M2, M5 and Serverless shapes?
answer
- capability first, ceilings second
- what a security review asks for
- restoring to a chosen moment
- the old shapes did not all land alike
- M10 is not the sharding floor
basics
~20 sAn Atlas Flex cluster is the wrong choice once a workload needs private networking, point-in-time restore, sharding, isolated nodes or configurable scaling. M2 and M5 were migrated to Flex; Serverless instances went to Free, Flex or dedicated by usage.
solid answer
~50 sFlex is the wrong choice as soon as a requirement lands that it cannot meet: private endpoints or network peering, continuous backup with point-in-time restore, sharding, multi-region or multi-cloud placement, dedicated analytics or search nodes, auditing, or a scaling behaviour you define. For private endpoints and point-in-time restore the docs tell you to use dedicated clusters. Its ceilings matter too: 5 GB of data and 500 operations per second. Flex fits learning, development and small or sparse workloads. As for older guides, the Atlas notice says new `M2`, `M5` and Serverless instances stopped in February 2025 and support ended on January 22, 2026. All `M2` and `M5` clusters were migrated to Flex, and Serverless instances went to Free, Flex or dedicated according to usage. When you move up, note that `M10` and `M20` are replica set only.
go deeper
Recall that M2, M5 and Serverless instances are gone from Atlas, and that Flex and dedicated are what a team chooses between now. Name private endpoints and point-in-time restore as the two needs the docs send to dedicated.
Walk through the capability test: networking, restore precision, sharding, node isolation and scaling control, then the numeric ceilings. Predict the outcome of a requirement rather than reciting a list, and say that M10 and M20 cannot shard.
Plan the move before a review forces it: confirm what a retired instance became in the All Clusters page, update infrastructure code that still names old shapes, and choose the dedicated tier from the requirement rather than from habit.
Decide which environments may run on Flex at all and write the rule down, since a capability gap found during an audit costs more than an early move. Revisit it as Atlas changes what Flex supports.
## The old guide meets today's console Picture a team following an older guide: start on `M2`, then move to a serverless instance when traffic turns bursty. They open **MongoDB Atlas**, MongoDB's managed cloud service, and find neither shape on offer. A security review next month will ask for private networking. Two questions follow: what replaced those shapes, and does the replacement pass the review? A **Flex cluster** replaced them for small work, and it does not pass that review. ## What happened to M2, M5 and Serverless The Atlas migration notice gives this sequence: 1. As of February 2025 you could create Flex clusters and could no longer create `M2`, `M5` or Serverless instances. 2. As of January 22, 2026 Atlas no longer supports `M2`, `M5` and Serverless instances. 3. Existing instances were migrated. Every `M2` and `M5` cluster went to Flex. Serverless instances went to a Free, Flex or dedicated cluster according to usage, and the All Clusters page in the Atlas UI shows which. The Serverless date is not settled across pages. The notice says January 22, 2026, while the API section of the Flex migration page says March 2025. The safe statement is that they are gone and were migrated, so do not build an argument on the end date. General Terraform and Atlas CLI support for these retired shapes ended on January 22, 2026 too, so old infrastructure code needs updating as well as old habits. ## The capability test This comparison decides most cases. It describes dedicated clusters on Atlas Core, as the docs' own feature tables do. | Requirement | Flex cluster | Dedicated cluster | |---|---|---| | Private endpoints | Not supported | Supported | | Network peering | Not supported | Supported | | Continuous backup, point-in-time restore | Not supported | Supported | | Sharded deployment | Not supported | `M30+` only | | Multi-region or multi-cloud nodes | Not supported | Supported | | Dedicated analytics or search nodes | Not supported | `M10+` | | Database auditing, your own encryption keys | Not supported | Supported | | Scaling behaviour you define | Memory and storage not configurable | Supported | A team should care for these reasons: - **Private networking:** if a review forbids traffic over public addresses, the IP access list that Flex does support will not satisfy it. The docs say workloads needing private endpoints should use dedicated clusters. - **Restore precision:** **point-in-time restore** returns data to a chosen moment. Flex offers one daily snapshot with no custom policy and no on-demand option, so losing up to a day of writes is the risk you accept. - **Sharding:** splitting data across replica sets is unavailable on Flex and on `M10` and `M20`. - **Node isolation:** without analytics nodes, reporting queries share the cluster with the application's traffic. - **Diagnostics:** Flex has no Performance Advisor and no Real-Time Performance Panel, so a slow query is harder to chase. ## Ceilings and the auto-scaling trap Even with no compliance need, Flex has fixed limits: 5 GB of data, 500 connections, 500 operations per second, 50 aggregation stages, no `allowDiskUse`, and a 32 MB in-memory sort limit. The docs carry a wording trap. The deployment-types page lists "scale automatically and dynamically to meet your workload" among the reasons to choose Flex. The Flex limits page says you can't configure memory or storage and that Flex does not provide automatically scaling storage. Read together, do not expect the cluster tier and storage ranges that dedicated clusters let you configure. ## When Flex is right, and which dedicated tier follows Flex fits learning, development and testing, small proof-of-concept applications, and infrequent or sparse workloads. It also runs a fixed MongoDB version that Atlas upgrades for you, which suits a team that does not want to manage versions and rules out one that must choose its own. When you leave, the tier matters: - `M10` and `M20` support development and low-traffic production, are replica set only, and use burstable infrastructure, so heavy load can be throttled. - `M30+` is what the docs recommend for production, and adds sharded deployments. - Atlas Infinite, in public preview, has its own gaps, including no sharded clusters. Decide in this order: 1. List the hard requirements from security, recovery and data placement. 2. Check each against the Flex limits page, which MongoDB says will change over time. 3. If any fails, pick the lowest dedicated tier that meets all of them, then size for load.
- A team leaving an Atlas Flex cluster because it needs sharding picks M10. Does that solve it?No. `M10` and `M20` support replica set deployments only, so the team gets private networking, configurable storage and dedicated node options but no sharding. Sharded deployments start at `M30`, which is also where the docs start recommending clusters for production.
- A team's Terraform configuration still declares an Atlas M2 cluster. What should change?General Terraform support for `M2`, `M5` and Serverless instances ended on January 22, 2026, and the docs say to update configurations to operate on Flex clusters. Check first what the running cluster became: existing `M2` and `M5` clusters were already migrated to Flex, so the code should match that.
- A deployment-types page says an Atlas Flex cluster scales automatically. Does that remove the need to plan for growth?No. The Flex limits page still caps data storage at 5 GB and operations at 500 per second, says memory and storage can't be configured, and says Flex has no automatically scaling storage. Plan a move to a dedicated cluster before reaching those limits.
- Today a team can start on M2 and move to a Serverless instance when traffic turns bursty.
- Serverless instances all became Flex clusters, exactly as M2 and M5 did.
- The only reason to leave a Flex cluster is reaching its 5 GB storage limit.
- Network peering is the fallback when a Flex cluster lacks private endpoints.
- Flex auto-scales tier and storage ranges just as a dedicated cluster does.
- Moving from Flex to M10 is enough to get a sharded deployment.