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.
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!
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.
Click below to sign up and get $200 of credit to try our products over 60 days!
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.
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.
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.
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.
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: