Auto pausing and restarting a cluster on a schedule

To reduce costs on our development and test mongo clusters, I’d like to pause them automatically on a schedule in the evening and restart them in the morning. What’s the best way to achieve this? If scripted would appreciate sharing of scripts / tools to help with this as it doesn’t seem to be a feature which is native (surprisingly, without manual intervention!)

Maany thanks in advance

1 Like

Hi @Nicholas_Davies,

Welcome to MongoDB community!

I believe you refer to Atlas clusters.

Here you go a blog discussing this ability using schedule triggers

Atlas Cluster Automation Using Scheduled Triggers | MongoDB Blog

Hope that helps!

Best
Pavel

1 Like

Another thing that might interest you is the Atlas API. See

and

I presume that the above API and a cron job would do the trick if triggers do not accomplish what you want.

This is the link for the new API
https://www.mongodb.com/docs/atlas/reference/api-resources-spec/#operation/updateConfigurationOfOneCluster

1 Like

Hi Pavel Duchovny,
This link is giving 404 response.
https://www.mongodb.com/blog/post/atlas-cluster-automation-using-scheduled-triggers.
Thanks & Regards,
Bhavya Bhatt

@Bhavya_Bhatt

Thank you for pointing this ! It was moved to the developer center:

@Bhavya_Bhatt could you share whether you were able to schedule start/stop.
I am also getting issue on opening the site. Kindly let me know. Thx!

best regards,
Arjun
+919952473003