Managed MongoDB vs self-managed -- will my scripts still crash mongod?

Hi there, I’m working on a big data / analytics project, running entirely on a DO droplet (Ubuntu). The DB backend for this project is MongoDB.

So far, I’ve run the project (pre-production) on a MongoDB install on the droplet which I’m maintaining. In the past stages of the project, I’ve had issues where a python script, meant to fill the MongoDB with data, would hit the droplet’s CPU and RAM limits, and end up crashing the mongod process. This would in turn mean that these scripts, all triggered from the crontab wouldn’t run, and data wouldn’t be ingested.

I want a scenario where I needn’t worry about my scripts breaking the MongoDB. In other words, I would like to get a managed DO MongoDB with basic resources, and for me to e.g. get an email if I the CPU/RAM that I’ve provisioned isn’t going to cut it, but for the code still to run and hence fill the database with data. Further, it would be great if this could mean that I could again reduce the resources I have for my droplet.

Thanks in advance for any help with this!

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

I believe that this would really depend on what resources your scripts require.

I could suggest testing this out for your specific case by spinning up a small MongoDB Managed Cluster and running your scripts to see how they perform. You could shutdown the cluster after the test so that you would only be charged for the couple of hours that you’ve used the cluster for.

Regarding the Droplets, in such a case I would personally add a bit more resources to make sure that there are enough.

Regards, Bobby