On 06/25/2013 04:23 AM, wlbleaboy@126 wrote:
"connect to ovirt-engine via ovirt-engine-sdk" is using sdk
like this:
Api = API('https://{ovirt-engine}', 'user@domain', 'password',
None, None,
'ca.crt', filter=True)
this function running more than 10 seconds.
this is very odd,
1. please run GET query with curl against a /api and see how much time it takes to get a
response?
2. what is the machine that you running your sdk code at? the ovirt-engine machine?
3. please check CPU, I/O, memory load on the machine where your sdk code runs
4. please add debug=True to API() initialization and send me the output
And Userportal is faster than it.
sdk is not the same as UserPortal, it runs on a different platform,
uses different technology to communicate with the server, on initialization it creates a
pool
of connections to be used + verifying ca cert + maps python<->xml at runtime, etc.,
but any of these should not be time consuming in a way you describing.
-----Original Message-----
From: Michael Pasternak [mailto:mpastern@redhat.com]
Sent: Monday, June 24, 2013 9:42 PM
To: wlbleaboy@126
Cc: engine-devel(a)ovirt.org
Subject: Re: [Engine-devel] ovirt-engine-sdk
On 06/24/2013 12:34 PM, wlbleaboy@126 wrote:
> Hi, all:
>
> I found when I connect to ovirt-engine via ovirt-engine-sdk is
slowly
>
> than connect to engine via UserPortal, could anyone explain the reason.
- what do you mean by saying "connect to ovirt-engine via ovirt-engine-sdk"?
- you comparing two different things, sdk != userportal
>
>
>
>
>
>
>
> _______________________________________________
> Engine-devel mailing list
> Engine-devel(a)ovirt.org
>
http://lists.ovirt.org/mailman/listinfo/engine-devel
>
--
Michael Pasternak
RedHat, ENG-Virtualization R&D