Hi there!
I'm running a Node app with MongoDB that works in "sessions". It's a web application but it stays idle most of the times. To avoid incurring in higher costs when it isn't required, I'm restarting the app every time a session ends and that takes care of the memory/caching of the node app itself.
However, I haven't found a way to do the same for the MongoDB instance and was wondering if there was a way to restart the service or at least limit the memory usage from my node app, since that DB is mostly used as a cache for data that resides somewhere else.
I understand this is an odd request but I thought it was worth asking!