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: [Xen-API] lowlevel access to xapi database

To: Jonathan Ludlam <Jonathan.Ludlam@xxxxxxxxxxxxx>
Subject: RE: [Xen-API] lowlevel access to xapi database
From: George Shuklin <george.shuklin@xxxxxxxxx>
Date: Fri, 18 Feb 2011 20:56:21 +0300
Cc: "xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 18 Feb 2011 09:56:32 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:from:to:cc:in-reply-to:references :content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=fFC8it9gV1G8dlGF5Kya3dV6116LTwFohj0Uke9yjUU=; b=cZ6JfjxlPnZ4gPnwf0ujuEzRUJLv78Npvu9hHb17D8Y+2Y1TVTukCeFSwSli8tGzL8 WNTWTo+5LeqQ1KalaYCYIq8JL48DpYKe7Uz/SbaN0zxIWh6WKfgZKqX/1cYsvIOQh0gl ccjER/iaqD2yGkT+kU6vl2Az/pkE99GTXMOmw=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=gLSTQnPagqRix1X79Dl15x1Tuk7bV2dN47/UwFM9wwV0nuWQYP1rjZ3uTA2hXWuV+z YaPhZh18tASTG0TvAxyII51yeU63IzidVmdQnI1ay5HexNrfixbRCWqMegn6T153Om4Q nJmwkRwIC0xDAsikaJ3gY6GXpCOBKhhm74wU4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <B45B24330584FB4AAE78E08B8F5E5B5E9030CDC324@xxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <1297360543.5691.15.camel@mabase> <4AAA3C3D-E9C8-40D7-90E6-B429E8FA2266@xxxxxxxxxxxxx> <4D5DB5C7.7010602@xxxxxxxxx> <B45B24330584FB4AAE78E08B8F5E5B5E9030CDC324@xxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
We running separate database of virtual machines for our purposes and
around 1000-1500 VM's syncing starts to be too long and slow.

I thought we can use some non-RPC based mechanism to access database
(even if this will cost us compability with other versions of xapi).

/json actually is RPC too, so it take too much time to use in very
'lively' environment.

We need last_boot to know about shutdown reason - it pretty important
information.

В Пт., 18/02/2011 в 10:17 +0000, Jonathan Ludlam пишет:
> Hi George,
> 
> What do you mean by 'fast sync'? Are you using the event.next api? And were 
> you aware of the /json hack that's used for some web gui type things?
> 
> What's the concern with other_config? That's not abnormal XMLRPC encoding as 
> far as I know. I agree that Last_boot_record stands out as being slightly 
> odd, but it's really only intended for internal use.
> 
> Jon
> 
> -----Original Message-----
> From: George Shuklin [mailto:george.shuklin@xxxxxxxxx] 
> Sent: 17 February 2011 23:57
> To: Jonathan Ludlam
> Cc: xen-api@xxxxxxxxxxxxxxxxxxx
> Subject: Re: [Xen-API] lowlevel access to xapi database
> 
> Thank you.
> 
> We actually wish to have fast sync and XML-RPC seems be to bloated and 
> have very strange issues with inner objects conversions (f.e. last_boot, 
> other config and many others strings with format 'parse it yourself').
> 
> And we feel it can be really interesting to change some values of object 
> unchangable via XenAPI, for example set every PV VM marked as 
> 'pv-drivers-up-to-date' (is this field have any meaning for PV guest?), 
> change their limits without shutdown (they will take place at near 
> reboot time) and many others.
> 
> On 17.02.2011 12:40, Jonathan Ludlam wrote:
> > Not yet, it's internal only. Is there anything you need at the database 
> > level that's not available in the API?
> >
> > Jon
> >
> > On 10 Feb 2011, at 17:55, George Shuklin wrote:
> >
> >    
> >> Good day.
> >>
> >> I wonder if there is way to access xapi data lower than XenAPI... I
> >> means any other way to access them form host where xapi master
> >> resides...
> >>
> >> I look to sources and found some DB interface. It it available outside
> >> xapi binary?
> >>
> >> And I saw some json-related functions. Is any way to get access to data
> >> in json format?
> >>
> >> Thanks.
> >>
> >>
> >> _______________________________________________
> >> 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