<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><br><br><br><br>I am trying to use lxc in product environment£¬ but i can not limit the guest's network bandwidth. I followed the list instructions, but it does take effect. How do you limit the guest's network bandwidth?<div><br><div><div># tc qdisc add dev virbr0 root handle 10: htb</div><div># tc filter add dev virbr0 parent 10: protocol ip prio 10 handle 1: cgroup</div><div># tc class add dev virbr0 parent 10: classid 10:1 htb rate 24Mbit</div><div># echo 0x100001 > /cgroup/c/net_cls.classid</div><div><br></div><div></div><div id="divNeteaseMailCard"></div><br><pre><br>ÔÚ 2012-10-24 00:38:47£¬"St¨¦phane Graber" <stgraber@ubuntu.com> дµÀ£º
>On 10/23/2012 12:29 AM, Ulli Horlacher wrote:
>> On Mon 2012-10-22 (14:53), St¨¦phane Graber wrote:
>>
>>> All in all, that's somewhere around 300-400 containers I'm managing
>>
>> How do you handle a host (hardware) failure?
>
>Everything that runs in the container is in a configuration management
>system, so any container can be redeployed from scratch in just a couple
>of minutes without needing the actual rootfs.
>
>On top of that, all the containers are backed up centrally using data
>deduplication, so if I really need it, I can extract a .tar.gz of the
>rootfs of any container in minutes and then just dump that on another
>machine.
>
>Though technically all the critical services are already redundant, so
>in case of a host failure, all I'd see is an increase of load on the
>other servers while I fix the host and get the rest back online.
>
>--
>St¨¦phane Graber
>Ubuntu developer
>http://www.ubuntu.com
>
</pre></div></div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>