All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Limit outgoing/incoming bandwidth - ideas?
Dear Users!
I was really looking for a way to limit incoming and outgoing bandwidth of a webserver. In nginx you can actually limit the number of connections. What i would like to achieve is to limit the overall incoming and outgoing bandwidth speed, like file upload sites doing so.
(I would like to build a site where users can upload and download big files. It will be a small site with friends with zipped images /5-600 mb/, and similar personal content. The problem is: once something is uploaded /like videos from a concert/ everyone starts to download like hell. I can take care of the number of connections so the server won't overload, but even with one connection with a fast internet, they can use a lot of speed /and vps hosts don't like that/, so i would like to, for example, limit to 1000 kb/s the overall outgoing bandwidth)
Is there any way (maybe a simple one with nginx or iptables?) to do so? What is the best solution for this and where can i read about it?
Thank you for every idea!
p.s. Don't come with: buy dedicated port, or: you need a dedi for that. I want to do it by myself, and on a vps.
Comments
Traffic Shaping is what you desire.
Dont know if this works on OpenVZ but it works on KVM/XEN.
http://www.iplocation.net/tools/traffic-control.php
Reminds me of a friends who host a fansub page on a vps i got... it gets heavy connections
Lighttpd with:
Check out the traffic shaping utility "tc".
I used it for awhile, and got it working with a script similar to the one found here:
http://forums.debian.net/viewtopic.php?f=10&t=46587
Google shown this to me: click