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