[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Traffic accounting in xen.



I've had nice success using a utility like vnstat and naming each
dom-u's vif. Vnstat stores each if's data in a separate db, so its easy
for a dom-u's bandwidth consumption to follow it around as it migrates. 

I haven't gotten it perfected yet, but I did have some major headaches
trying to use iptables to account.. un-orderly (and unexpected)
shutdowns via re-set or apc reboot can really cause problems. 

If you don't tinker much and don't often lose dom-0 , should be fine. 

http://humdi.net/vnstat/

to get a copy of vnstat. it's apt-get-able as 'vnstat' if you're using
Debian & friends. 

I've been tinkering with the idea of one small shared gfs system to go
in-between dom-0 hosts just for centralizing vnstat and other things
that need to roam with dom-u's. Any sanity obtained from it is entirely
up to your naming convention, however :)

hth
-Tim

On Sun, 2006-08-20 at 06:13 +0000, Paul M. wrote:
> If dom0 is Linux based then IPTables can be used. You can create a
> rule that matches the incoming or outgoing interface to that of one of
> the domUs. The rule doesn't need an action. IPTables keeps track of
> the number of packets and bytes of packets matching a rule. There are
> two things that you need to keep in mind:
> 1) The values will roll-over at some point. I would recommend saving
> and then resetting the values every week or so.
> 2) Your distribution might not save the current chains and packet
> counts at shutdown/restart. You would need to modify your start up
> scripts as needed.
> -Paul
> 
> On 8/19/06, Ligesh <myself@xxxxxxxxxx> wrote:
> >
> >  Hello folks,
> >
> >   How do I do traffic accounting in Xen? How do I find out how much data is 
> > being used by each of the domUs. Since the only identification for the domU 
> > is the mac address, I can't find any method for doing it unless xen 
> > supports it.
> >
> >   Any help would be greatly appreciated.
> >
> >   Thanks.
> >
> >
> > --
> > :: Ligesh :: http://ligesh.com
> >
> >
> >
> > _______________________________________________
> > Xen-users mailing list
> > Xen-users@xxxxxxxxxxxxxxxxxxx
> > http://lists.xensource.com/xen-users
> >
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
> 
> 


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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.