On Mon, 2010-01-04 at 15:33 +0000, Ahmad Hassan wrote:
> Yeah you are absolutely rite. Do you know any means to record the CPU
> consumption and IO consumption of DomU's on Dom0?
Doing that is as simple as:
1 - Using the Xen API
2 - Using libxc (if you know a little C)
3 - Scraping the output of `xm'
I wrote a tool that exported this in various ways: php, perl, xml, csv,
plain text and others, found here:
http://sharesource.org/project/xguests
I have not updated that, or even used it in some time. If its rusty let
me know.
That (should) give you the output you want so that other scripts can
easily get at the info.
NB: Again, I have given that little attention beyond making it work. It
uses libxenstat which has received very little love over the years,
beyond fixing sysfs breakage.
Run it, redirect it to a file and parse away in whatever format you
need.
Again, its useless for SLA. Clients usually prefer third party
monitoring, which is impossible for some kind of credit scheduler
guarantee.
Cheers,
--Tim
>
> Thanks for the help.
>
> Best Regards, Hassan
> http://cern.ch/ahmadh/portfolio
>
> Erasmus Student
> The University of Reading, UK
> Aristotle University of Thessaloniki, Greece
> The University Of Carlos III, Madrid Spain
>
>
>
> 2010/1/4 Tim Post <echo@xxxxxxxxxxxx>
> On Mon, 2010-01-04 at 15:11 +0000, Ahmad Hassan wrote:
> > Thanks for the replies. So I can use either use SNMP
> monitoring using
> > CACTI or http://www.pmacct.net for Network traffic
> monitoring of
> > DomU's.
> >
> > What about CPU availability guarantees for DomU's?
> >
> > By SLA guarantees, I mean to say that Whether I can proof
> and show to
> > the owner of DomU's that you are getting the exact bandwidth
> and CPU
> > you asked for.
>
>
> To do that, give them root access to dom-0 and let them see
> their
> running configuration.
>
> Beyond that, there is no proof that can't be tainted. Welcome
> to
> hosting :)
>
> How would you give someone proof that they are one of only
> five accounts
> on a shared server?
>
> You might want to encourage clients to monitor iowait while
> doing brief
> disk operations (i.e. dd) if they are morbidly curious,
> provided that
> the backing storage is fast enough to keep up with the vcpus
> that xen is
> presenting.
>
> BTW, removing xen-devel from the CC list, this is strictly a
> question
> for xen-users.
>
> Cheers,
> --Tim
>
>
>
> _______________________________________________
> 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
|