OpenVZ Forum


Home » General » Support » tc htb question regarding sharing bandwidth (How do I limit each connection while using the total uplink?)
icon5.gif  tc htb question regarding sharing bandwidth [message #47874] Mon, 17 September 2012 19:28 Go to previous message
KuJoe is currently offline  KuJoe
Messages: 11
Registered: November 2011
Junior Member
Here's the issue I am facing:

I have a 1Gbps port on my host node and would like to limit each container to 100Mbps. The problem is, I cannot find a way to cap each connection at 100Mbps while utilizing the 1Gbps "pool" (i.e. 10 100Mbps connections, 20 50Mbps connections, etc...). I have it setup so with a rate limit of 100Mbps, but when 2 downloads are running it will take the 100Mbps and divide it by 2. I would like each of the connections to be able to download at 100Mbps. I'm out of ideas.

tc qdisc del dev venet0 root
tc qdisc add dev venet0 root handle 1: htb default 10
tc class add dev venet0 parent 1: classid 1:1 htb rate 1000mbit burst 15k
tc class add dev venet0 parent 1:1 classid 1:10 htb rate 100mbit burst 15k
tc qdisc add dev venet0 parent 1:10 handle 10: sfq perturb 10
 
Read Message icon5.gif
Read Message
Read Message
Read Message
Previous Topic: Vzdump exclude path
Next Topic: SERVER CRASH WITH RHEL6 2.6.32-042stab061.2
Goto Forum:
  


Current Time: Tue Oct 15 19:21:23 GMT 2024

Total time taken to generate the page: 0.05117 seconds