How to pause and resume a MongoDB Atlas cluster
On the Clusters page, open the cluster's menu, click Pause Cluster and confirm. You can pause M10 and larger clusters (not NVMe) for up to 30 days; after that Atlas resumes them. While paused you pay only for storage, nobody can read or write, alerts and backups stop, and you must let a resumed cluster run 60 minutes before pausing it again. Free clusters are paused by Atlas after 30 idle days, and Flex clusters can't be paused.
Steps
- Open ClustersIn Atlas, select the project, then click Clusters under Database in the sidebar.
- Pause the clusterClick the cluster's menu button, choose Pause Cluster, and click Pause Cluster again to confirm.
- Resume when neededClick Resume on the paused cluster, or open its menu and choose Resume Cluster. Atlas resumes it on its own after 30 days.
Which clusters you can pause
| Cluster | Pause it yourself? | Notes |
|---|---|---|
| Free (M0) | No | Atlas pauses it automatically after 30 days with no connections, with an email seven days before |
| Flex | No | Atlas doesn't pause inactive Flex clusters either; Flex costs $8 to $30 a month whatever you do |
| M10 and larger | Yes | Not on NVMe storage; up to 30 days, then Atlas resumes it |
Two preconditions trip people up. Atlas only pauses a healthy cluster, and only if its disk usage is below 95%. And after a resume, the cluster must run for at least 60 minutes before you can pause it again, so it can work through maintenance jobs queued while it was paused.
To pause or resume you need the Project Cluster Manager role or higher.
What happens while it's paused
- No reads or writes. Clients can't connect, and you can't change the cluster's configuration.
- Alerts stop. Atlas stops triggering configured alerts for the cluster, so a paused production cluster won't page anyone. Make sure that's what you want.
- Backups stop. Existing snapshots stay until they expire.
- Search is rebuilt. Atlas deletes data on dedicated Search Nodes and rebuilds the search indexes after you resume;
$searchand$vectorSearchqueries won't work until it finishes. - Maintenance waits. Some required maintenance pauses with the cluster and may start right after you resume, which can delay availability.
What a paused cluster costs
Atlas charges paused clusters for storage only; there is no charge for compute or data transfer while paused. If the cluster uses the tier's default disk, that storage portion is what you keep paying. If you increased the disk, you pay for the full disk size you set.
That makes pausing the simplest saving on staging, QA and demo clusters that sit idle nights and weekends. An M30 listed at $0.54 an hour that only runs a 50-hour working week runs for about 30% of the hours in the week. Because of the 30-day automatic resume, though, pausing is not a way to park a cluster for months: for that, take a snapshot or export and terminate it. See Atlas pricing explained for the tier prices.
From the CLI and the API
The Atlas CLI has matching commands:
atlas clusters pause cluster0
atlas clusters start cluster0In the Atlas Administration API, pausing is an update to the cluster: PATCH /api/atlas/v2/groups/{groupId}/clusters/{clusterName} with {"paused": true}, and false to resume. That makes it easy to schedule, but remember the 60-minute rule: a job that resumes at 08:00 and a developer who pauses at 08:30 will get an error.
Questions
How long can an Atlas cluster stay paused?
Up to 30 days. If you don't resume an M10+ cluster within 30 days, Atlas resumes it for you.
Can I pause a free or Flex cluster?
No. You can't pause Free or Flex clusters yourself. Atlas pauses Free clusters after 30 days with no connections; it doesn't pause Flex clusters.
Why can't I pause my cluster again?
A resumed cluster must run for at least 60 minutes before it can be paused again. Atlas also refuses to pause an unhealthy cluster or one with disk usage of 95% or more.
Do I lose data when I pause a cluster?
No. Data stays on disk and is there when you resume. Search indexes on dedicated Search Nodes are rebuilt after the resume.
Sources
- Pause, Resume, or Terminate a Clusterwww.mongodb.com
- Atlas Cluster Configuration Costswww.mongodb.com
- atlas clusters pause (Atlas CLI)www.mongodb.com
Shardherd brings your Atlas clusters to iPhone.