[lxc-users] Linux containers network bandwidth

Fajar A. Nugraha list at fajar.net
Fri Jul 4 12:23:15 UTC 2014


On Fri, Jul 4, 2014 at 5:05 PM, Divya Vyas <dvyas at mvista.com> wrote:
> Hi All,
>
> I am running multiple containers and I want to limit the network bandwidth.
> But I am not getting the desired output. Here is my method:
>
>
> 1) echo 0x1001 > /sys/fs/cgroup/lxc/<containerA>/net_cls.classid
>
>
>
> 2) tc qdisc add dev br0 root handle 10: htb


wondershaper should be easier to use: http://lartc.org/wondershaper/

It use tc underneath, and wrap it in an easy-to-use script. Use it on
the container's veth from the host side, and the result should be
close to what you want.

-- 
Fajar


More information about the lxc-users mailing list