Add "scheduled scaling/suspend" option for certain clusters
There should be an option to schedule scale up/down or suspending/resuming at specified time & day.
For example, DEV environments could be auto-suspended at 6pm and resume at 8am on weekdays, and be suspended all weekend.
Production clusters could be scaled down e.g. from M80->M60 every evening and on weekends rather than being suspended completely.
This would help save money but would need to be coordinated with the existing auto-scaling based on load.
This would need to be at the cluster level since sometimes different clusters in a single project could have different workload patterns.
-
Erich commented
I stumbled on this thread and thought I'd add a comment as the link posted by Brian no longer works, and I suspect that with the deprecation of Realm, the approach below will no longer work. My company maintains an open-source project that does exactly what was requested in the original request. The service can scale clusters up and down on a cron, as well as pause and resume clusters if desired. I hope this is of use. Feel free to fork the repo and make it your own.
-
Brian commented
Here's an example of how to use Atlas Triggers to schedule the scaling or suspension: https://www.mongodb.com/blog/post/atlas-cluster-automation-using-scheduled-triggers
-
kyle commented
This would fit my companie's needs to save some money!
-
Brian Jones commented
This would be amazing!!
-
AdminRez (Admin, MongoDB) commented
We are considering building a "scheduler" for Atlas where you can specify which times something can be paused/scaled down/scaled up etc. In the meantime, customers can use Stitch triggers and Atlas API to create their own scheduler.