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

Re: [Xen-users] Running scripts on domU create/shutdown?



On Mon, 2007-03-05 at 21:45 +0000, Steve Kemp wrote:

>   So two questions:
> 
>     1.  Is there a simple method to get the domain name
>        from the ID, short of parsing "xm list N"?

Someone else suggested xenstore, you can also get this from libxenstat..
however xenstore would be your best bet if done in scripts. 

> 
>     2.  Would this kind of startup/shutdown hook be useful
>        to others, and if so would a patch be applied?  (I'm
>        happy to submit my code.)
> 

Positively. For a couple of reasons :

1 - Ideally any "interconnect" built around Xen is 100% transparent. By
transparent I mean it uses absolutely *no* blocking calls and non
blocking sockets to get its work done. The interconnect should not add
to the time it takes to distribute work in cpu seconds. 

This becomes easier if dom-0 was trained to let a central system know of
every event, so that an interconnect doesn't have to wait around to see
if a call indeed worked. It could, but it doesn't *have* to.

Lack of a reply by dom-0 in xx minutes indicates a problem. So see, in
this case, you really can document and use a negative. 

A good example of this - If you reboot a dom-u or shut one down, you
would have to make your script go into a loop watching xm list or syslog
to see when indeed the dom-u finally exited. Signaling on events fixes
that. Again, in this case a lack of a notification is meaningful.

2 - we have been working on a monitoring system that can handle 100k +
individual dom-0 machines. The only way to effectively do this is to put
some kind of triage in place so the most active servers get polled first
and distribute the monitoring tasks amongst a few guests.

Dom-0 signaling that there is activity helps tune this triage so idle
systems get polled last. 

Any time dom-0 can be made more proactive in the centralization process,
the better, imho. I'd be likely to use the patch even if it was
rejected.

> Steve

Best,
--Tim


_______________________________________________
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®.