[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RE: [Xen-API] Xen-API: XMLRPC Documentation
is a function undocoument called get_all_records_where
maybe xen-api developers could give us more information
an example from xenapi developer is:
VM.get_all_records_where(session_id, "field \"power_state\"=\"Running\")
On Fri, Aug 27, 2010 at 6:42 PM, George Shuklin
> Ð ÐÑÐ, 27/08/2010 Ð 16:28 +0200, Alberto GonzÃlez RodrÃguez ÐÐÑÐÑ:
>> > ... And this cause problems for any third party applications: they
>> > to use XenAPI calls to host master to get any, may be non-important
>> > information every time. We wants to show customer list of 10 VMs? We
>> > need to do _TEN_ XenAPI call just to get data to display (customer
>> > 'f5' and we sending requests again). As alternative we can get
>> > for all VM, but this unacceptable in case of thousands customers.
>> I think you should use another strategy for it. On xenwebmanager i
>> only do a call for get all data (when user is connected), and i get
>> updates from xapi calling to event.next, then i save it into memory
>> and i only need use this information saved in memory for show data
> Yes, this works fine until you are talking about 100-200-300 VM. But let
> assume a some big cloud with 10000 VMs. Customer see only 10-20-30 of
> them, and he needs to see their status and get updates of their state.
> What is shall do? Requesting state for all VM? Requesting state for each
> vm in list? Both of them are N.G. Simple selection from database will
> helps. Right now we implement a DB as additional level over XCP, wich
> serve requests.
> But isn't it too much levels? xen, libxc, xapi, XenAPI, mongo DB, yet
> another interface to clients.... I'm still in research state, but I hope
> we will find some kind of cute solution (and I can't decide between
> ocaml xapi and python xend... Tune xend may be simpler in term of
> language, but xapi is already have many functions implemented...)
>>>> I don't understand... xapi does support HTTP/1.1 with persistent
> connections-- do you mean something different?
>>>OK, may be I wrong, but how I could do few post requests for XenAPI
>>>via single http connections? It is really possible? If yes, this will
>>>close this nasty question.
>>if you sniff xencenter connections (or openxenmanager/xenwebmanager
>>using xmlrpclib on python) you will see only a connection
>>Here there is some information
> Thank you, I will dig in it and hope it helps.
> wBR, George.
> xen-api mailing list
xen-api mailing list