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!
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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.