WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Recommendation for traffic shaping

To: Xen Users <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Recommendation for traffic shaping
From: Sam <xen@xxxxxxxxxx>
Date: Fri, 23 Oct 2009 23:05:47 -0500
Delivery-date: Fri, 23 Oct 2009 21:06:42 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <8b711df40910211413t5df1422ai3216545522c7f1a2@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <8b711df40910211413t5df1422ai3216545522c7f1a2@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090707)
Paras pradhan wrote:
I have a centos 5.3 server connected to fibre based SAN with 4Gbps
HBA. Xen domUs are installed in the SAN disks.

This server is connected to my datacenter using 1Gig Ethernet. I will
be having say around 10 domUs in this server and one of them might be
consuming a lot of traffic. So to avoid traffic congestion problem,
where do I shape/cap the bandwidth for this particular domU? Inside
domU or in dom0's bridge interface? which tools are better? tc. cbq ,
htb or any others?

Any recommendation in this issue?

Thanks in adv
Paras.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


Are we talking upload bandwidth or download bandwidth? For very simple stuff you can try one of the many "wondershaper" scripts out there (attached). It will only mess with the upload bandwidth though. I actually have my lan gateway installed in xen like this: http://www.shorewall.net/XenMyWay.html using shorewall. All of my wan traffic then goes through shorewall and I use its traffic shaper ( it is about the same as wondershaper) to control everything. You could look for a centos shorewall package and install it and only configure the traffic control side of it and not any firewall rules:
http://www.shorewall.net/traffic_shaping.htm

Have you ever read up on htb?
http://lartc.org/howto/lartc.qdisc.classful.html
http://luxik.cdi.cz/~devik/qos/htb/manual/userg.htm

Unfortunately I don't know how to cut someone's bandwidth to a low amount after they go over a set traffic limit.

Sam

Attachment: wshaper.sh
Description: Bourne shell script

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>