WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

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
<george.shuklin@xxxxxxxxx> wrote:
> В Птн, 27/08/2010 в 16:28 +0200, Alberto González Rodríguez пишет:
>
>> > ... And this cause problems for any third party applications: they
>> need
>> > 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
>> press
>> > 'f5' and we sending requests again). As alternative we can get
>> status
>> > 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...)
>
>
> (skip)
>
>
>>>> 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
>>http://en.wikipedia.org/wiki/HTTP_persistent_connection
>
> Thank you, I will dig in it and hope it helps.
> ---
> wBR, George.
>
>
>
> _______________________________________________
> xen-api mailing list
> xen-api@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/mailman/listinfo/xen-api
>

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api