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.
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.
https://cloudize.net/open-source/mongodb/