Question

Limiting droplet bandwidth

Can I limit each of my droplets bandwidth? If yes how?

I have multiple droplets and I want to limit each of them (at 1000 GB) so that it doesn’t cost me more for extra bandwidth.


Submit an answer
Answer a question...

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.

alexdo
Site Moderator
Site Moderator badge
December 23, 2022

Hello @mobinshrimp

Droplets include free outbound data transfer, starting at 1,000 GiB/month for the smallest plan. Excess data transfer is billed at $0.01/GiB. For example, the cost of 1,000 GiB of overage is $10. Inbound bandwidth to Droplets is always free.

You can monitor the usage and set an alarm if the usage exceeds 1000GiB so you can be aware of the extra costs that may occur.

These docs will help you to create a monitoring alert. DigitalOcean Monitoring is a free, opt-in service that gathers metrics about Droplet-level resource utilization. It provides additional Droplet graphs and supports configurable metrics alert policies with integrated email Slack notifications to help you track the operational health of your infrastructure.

https://docs.digitalocean.com/products/monitoring/how-to/set-up-alerts/

You can also check our Bandwidth calculator which is a tool to help calculate and explain bandwidth allowances for Droplets on DigitalOcean. For more info, see our bandwidth billing docs.

https://www.digitalocean.com/community/tools/bandwidth

Regards

KFSys
Site Moderator
Site Moderator badge
December 23, 2022

Hey @mobinshrimp,

There isn’t any one tool that can do that for you, however, it’s a great idea.

The best thing to do to get your voice heard regarding this would be to head over to our Product Ideas board and post a new idea, including as much information as possible for what you’d like to see implemented.

https://ideas.digitalocean.com/

As for now, what you can try is to create a script using vnstat, monitor the Droplet’s logs and once it hits 999gb on combined transfer make it trigger the DigitalOcean API to suspend your Droplet.

Additionally, you can use the Monitoring Service to let you know once you have reached the limit:

https://docs.digitalocean.com/products/monitoring/how-to/set-up-alerts/