MongoDB.live, free & fully virtual. Register Now MongoDB.live, free & fully virtual. Register Now

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

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

https://www.mongodb.com/blog/post/atlas-cluster-automation-using-scheduled-triggers

Hope that helps!

Best
Pavel

1 Like

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

https://docs.atlas.mongodb.com/reference/api/clusters/

and

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