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


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.

DO’s business is that you exceed the bandwidth to collect this excess, in fact there is no way to know which droplet is consuming the exceeded bandwidth. this is not transparent.

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/

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel