[Engine-devel] ovirt-engine-sdk

ÕâÊÇÒ»·â MIME žñÊœµÄ¶à²¿·ÖÓÊŒþ¡£ ------=_NextPart_000_0562_01CE7101.180ACCB0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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. ------=_NextPart_000_0562_01CE7101.180ACCB0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" = xmlns:o=3D"urn:schemas-microsoft-com:office:office" = xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" = xmlns=3D"http://www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Dus-ascii"> <meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:\5B8B\4F53; panose-1:2 1 6 0 3 1 1 1 1 1;} @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:"\@\5B8B\4F53"; panose-1:2 1 6 0 3 1 1 1 1 1;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; text-align:justify; text-justify:inter-ideograph; font-size:10.5pt; font-family:"Calibri","sans-serif";} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} p.MsoAcetate, li.MsoAcetate, div.MsoAcetate {mso-style-priority:99; mso-style-link:"\6279\6CE8\6846\6587\672C Char"; margin:0cm; margin-bottom:.0001pt; text-align:justify; text-justify:inter-ideograph; font-size:9.0pt; font-family:"Calibri","sans-serif";} span.EmailStyle17 {mso-style-type:personal-compose; font-family:"Calibri","sans-serif"; color:windowtext;} span.Char {mso-style-name:"\6279\6CE8\6846\6587\672C Char"; mso-style-priority:99; mso-style-link:\6279\6CE8\6846\6587\672C;} .MsoChpDefault {mso-style-type:export-only;} /* Page Definitions */ @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt;} div.Section1 {page:Section1;} --> </style> <!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body lang=3DZH-CN link=3Dblue vlink=3Dpurple = style=3D'text-justify-trim:punctuation'> <div class=3DSection1> <p class=3DMsoNormal><span lang=3DEN-US>Hi, all:<o:p></o:p></span></p> <p class=3DMsoNormal><span = lang=3DEN-US> I found when I connect to ovirt-engine via ovirt-engine-sdk is = slowly<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US>than connect to engine via = UserPortal, could anyone explain the reason. <o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p> </div> </body> </html> ------=_NextPart_000_0562_01CE7101.180ACCB0--

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@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
-- Michael Pasternak RedHat, ENG-Virtualization R&D

"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. And Userportal is faster than it. -----Original Message----- From: Michael Pasternak [mailto:mpastern@redhat.com] Sent: Monday, June 24, 2013 9:42 PM To: wlbleaboy@126 Cc: engine-devel@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@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
-- Michael Pasternak RedHat, ENG-Virtualization R&D

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@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@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
-- Michael Pasternak RedHat, ENG-Virtualization R&D
participants (2)
-
Michael Pasternak
-
wlbleaboy@126