Hello, I''d like to know which solutions exists to : 1- limit the bandwidth available to a guest 2- controls / see the trafic used by a guest 1- I know that for the bandwidth we could use the TC command but when there is a lot of guests it becomes very hard to maintain ! Is there others solutions ? maybe some controls panel does this ? which solution do you use ? 2- But I don''t have any solution to control and see the trafic used by the guests, is there some solutions to do this ? The few (little) existing control panel for xen allows this ? enomalism ? xen-entreprise ? ... ? is there others solutions to managet the trafic used by the guests ? What kind of solutions do you use ? Thanks a ton Pascal _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sat, 2007-06-09 at 11:05 +0200, Pascal wrote:> Hello, > > I''d like to know which solutions exists to : > 1- limit the bandwidth available to a guest > 2- controls / see the trafic used by a guest > > 1- > I know that for the bandwidth we could use the TC command but when > there is a lot of guests it becomes very hard to maintain ! > Is there others solutions ? maybe some controls panel does this ? > which solution do you use ?I do it the ugly way, but its very easy. I just have xendomains source a file named just like the dom-u config with a .sh suffix. All of my extra logging and notifying goes in that file, with the exception of some notification stuff. I applied a patch from Steve Kemp that helps notify me when a VM changes state, and calls that .sh script again. So far this has worked out very well but as you said lots of rules can be problematic.> > 2- > But I don''t have any solution to control and see the trafic used by > the guests, is there some solutions to do this ? > The few (little) existing control panel for xen allows this ? > enomalism ? xen-entreprise ? ... ? > is there others solutions to managet the trafic used by the guests ? > > What kind of solutions do you use ?If you name your vifs so that they are meaningful, its much easier. An example : vif [ ''bridge=br0 vifname=centos.0'' ] I could then type ''ifconfig centos.0'' from dom-0 to get an accounting. Its wise to use something that logs this incrementally because if dom-0 reboots you lost the data. Likewise, iptables logging can suffer a similar fate if dom-0 reboots before you can save the info. If the vifname is meaningful, short and unique this works well. Many /proc based bandwidth loggers dont fscanf() beyond an 8 character name, i.e. ''eth0'' is ok, but ethetheth0 would be cut off as "ethethet". Try to keep them short, or just modify your logger to work with longer names. Hopefully someone else will give you a more elegant solution or point you to something free that does a good job managing everything including bandwidth. I don''t like web based consoles, so I don''t have much experience with what else is available. I have a tool that will XML-ify everything you need for logging on dom-0, if your able to parse it. See http://dev1.netkinetics.net/hg/xmlpulse.hg , this tool is nowhere near as graceful as the new Xen API, but still rather useful. Hope this helps :) --Tim> _______________________________________________ > 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
>> Hello, >> >> I''d like to know which solutions exists to : >> 1- limit the bandwidth available to a guest >> 2- controls / see the trafic used by a guest >> >> 1- >> I know that for the bandwidth we could use the TC command but when >> there is a lot of guests it becomes very hard to maintain ! >> Is there others solutions ? maybe some controls panel does this ? >> which solution do you use ? >> > > I do it the ugly way, but its very easy. > I just have xendomains source a file named just like the dom-u config with a .sh suffix.Heu... My english seems to be not so good here ! Not sure to understand what you mean ;)> All of my extra logging and notifying goes in that file, with the exception of some > notification stuff. > > I applied a patch from Steve Kemp that helps notify me when a VM changes > state, and calls that .sh script again. So far this has worked out very > well but as you said lots of rules can be problematic. >Hmmm, I see the concept but don''t understant the .sh suffix, on what do you set this .sh suffix ?>> 2- >> But I don''t have any solution to control and see the trafic used by >> the guests, is there some solutions to do this ? >> The few (little) existing control panel for xen allows this ? >> enomalism ? xen-entreprise ? ... ? >> is there others solutions to managet the trafic used by the guests ? >> >> What kind of solutions do you use ? >> > > If you name your vifs so that they are meaningful, its much easier. An > example : > > vif [ ''bridge=br0 vifname=centos.0'' ] >Ok it was an example, but you absolutly rigth ;)> I could then type ''ifconfig centos.0'' from dom-0 to get an accounting. > Its wise to use something that logs this incrementally because if dom-0 > reboots you lost the data. Likewise, iptables logging can suffer a > similar fate if dom-0 reboots before you can save the info. > > If the vifname is meaningful, short and unique this works well. > > Many /proc based bandwidth loggers dont fscanf() beyond an 8 character > name, i.e. ''eth0'' is ok, but ethetheth0 would be cut off as "ethethet". > Try to keep them short, or just modify your logger to work with longer > names. >Yep !> Hopefully someone else will give you a more elegant solution or point > you to something free that does a good job managing everything including > bandwidth. I don''t like web based consoles, so I don''t have much > experience with what else is available. >So do I, but sometimes it safes time !> I have a tool that will XML-ify everything you need for logging on > dom-0, if your able to parse it. See > http://dev1.netkinetics.net/hg/xmlpulse.hg , this tool is nowhere near > as graceful as the new Xen API, but still rather useful. >Thanks, I''ll look it> Hope this helps :) >It is !> --Tim > >Thanks tim for your time and answers ! Pascal>> _______________________________________________ >> 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 > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Dominik Klein
2007-Jun-11 07:12 UTC
Re: [Xen-users] Limit the BW and control trafic of a guest
>>> I''d like to know which solutions exists to : >>> 1- limit the bandwidth available to a guestuse vif = [ ''<other vif opts>, rate=10MB/s'' ] to limit vif rate to 10 MByte(!!) per Sec. KB/s limits to KByte/s This worked pretty well in 3.0.3, did not test it again since then. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Nick Craig-Wood
2007-Jun-11 09:13 UTC
Re: [Xen-users] Limit the BW and control trafic of a guest
Dominik Klein <dk@in-telegence.net> wrote:> >>> I''d like to know which solutions exists to : > >>> 1- limit the bandwidth available to a guest > > use > > vif = [ ''<other vif opts>, rate=10MB/s'' ] > > to limit vif rate to 10 MByte(!!) per Sec. > KB/s limits to KByte/s > > This worked pretty well in 3.0.3, did not test it again since then.That is a new one to me! Where is that documented? -- Nick Craig-Wood <nick@craig-wood.com> -- http://www.craig-wood.com/nick _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Dominik Klein
2007-Jun-11 09:33 UTC
Re: [Xen-users] Limit the BW and control trafic of a guest
> That is a new one to me! Where is that documented?I read it in a german book about xen 3.0.3. I never looked it up in the docs. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Dominik Klein
2007-Jun-11 10:26 UTC
Re: [Xen-users] Limit the BW and control trafic of a guest
Dominik Klein schrieb:>> That is a new one to me! Where is that documented? > > I read it in a german book about xen 3.0.3. I never looked it up in the > docs.You should notice that this is OUTGOING traffic only. eg downloads initiated by the domain may use more bandwidth. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Mon, 2007-06-11 at 07:08 +0200, Pascal wrote:> Hmmm, I see the concept but don''t understant the .sh suffix, on what > do you set this .sh suffix ?By saying .sh , I just meant a shell script parsed with whatever /bin/sh happens to be pointing to. I run shell scripts upon startup and shutdown of all guests. This is easly done by modifying xendomains to run a script with a name identical to the dom-u config file, but ending in something like .sh I then use scripts to call XM, which also run the per-guest scripts. My scripts are convenient, but I will be switching over to Xen''s new API soon because its now senseless not to do so. However, just because I use the API doesn''t mean you should. You should find a method that all of your techs are comfortable with. There''s no sense in using the API if nobody on your team understands XML. Likewise, having stuff nobody knows how to fix is bad. Best, --Tim _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ian Tobin
2007-Jun-11 13:23 UTC
RE: [Xen-users] Limit the BW and control trafic of a guest
We use wondershaper, simple and works a treat Ian -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Tim Post Sent: 11 June 2007 14:15 To: Pascal Cc: xen-users@lists.xensource.com Subject: Re: [Xen-users] Limit the BW and control trafic of a guest On Mon, 2007-06-11 at 07:08 +0200, Pascal wrote:> Hmmm, I see the concept but don''t understant the .sh suffix, on what > do you set this .sh suffix ?By saying .sh , I just meant a shell script parsed with whatever /bin/sh happens to be pointing to. I run shell scripts upon startup and shutdown of all guests. This is easly done by modifying xendomains to run a script with a name identical to the dom-u config file, but ending in something like .sh I then use scripts to call XM, which also run the per-guest scripts. My scripts are convenient, but I will be switching over to Xen''s new API soon because its now senseless not to do so. However, just because I use the API doesn''t mean you should. You should find a method that all of your techs are comfortable with. There''s no sense in using the API if nobody on your team understands XML. Likewise, having stuff nobody knows how to fix is bad. Best, --Tim _______________________________________________ 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