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@lists.xensource.com http://lists.xensource.com/xen-users
I tried this a while ago and could find a way of doing it either... Some light on this would be greatly apreciated. On 10/21/2009 07:13 PM, 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@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Paras pradhan <pradhanparas@gmail.com> writes:> 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?We do it on the Dom0. Here''s something Chris wrote up about it when I had the same problem: http://wiki.xen.prgmr.com/xenophilia/2008/06/traffic-shaping-with-tc-and-xe.html http://wiki.xen.prgmr.com/xenophilia/2008/06/traffic-shaping-yet-again.html This was from back when I was trying to give people ''first month free'' (don''t do that.) so I had some crazy users. But it''s useful ''cause you can limit users who are over their allocation to 128K or something that doesn''t cost you money, and you look like a really nice guy compared to just shutting them off. (I think we cleaned this up and put it in chapt. 7 of the book of xen.) -- Luke S. Crawford http://prgmr.com/xen/ - Hosting for the technically adept http://nostarch.com/xen.htm - We don''t assume you are stupid. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
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@lists.xensource.com > http://lists.xensource.com/xen-usersAre 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 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users