<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>your time seems pretty fast.<br><br>Thanks<div>from Peter</div><br><br><div><hr id="stopSpelling">Date: Thu, 25 Jul 2013 18:14:11 +0700<br>Subject: Re: [Openstack] Call to API very slow [Grizzly]<br>From: chu.ducminh@gmail.com<br>To: mcheung63@hotmail.com<br>CC: openstack@lists.launchpad.net; openstack@lists.openstack.org<br><br><div dir="ltr"><div><div>Check some more API (I run these command below from Controller node):<br># time quantum subnet-list<br>(...have 4 subnet)<br>real    0m0.676s<br>user    0m0.196s<br>sys     0m0.020s<br><br># time quantum router-list<br>
</div>(...have 1 router)<br>real    0m0.496s<br>user    0m0.164s<br>sys     0m0.052s<br><br># time nova list --all_tenants=1<br></div>(...have 5 instances)<br><div>real    0m1.290s<br>user    0m0.308s<br>sys     0m0.040s<br>
<br></div><div>Compare with my old OpenStack deployment on weaker servers, it took 1/3 in times.<br></div><div><br></div></div><div class="ecxgmail_extra"><br><br><div class="ecxgmail_quote">On Thu, Jul 25, 2013 at 5:43 PM, Peter Cheung <span dir="ltr"><<a href="mailto:mcheung63@hotmail.com" target="_blank">mcheung63@hotmail.com</a>></span> wrote:<br>
<blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;">


<div><div dir="ltr">I am having a problem about calling API speed is up and down, something need 0.1s, something it needs 3s<br><br>Thanks<div>from Peter</div><br><br><div><hr>Date: Thu, 25 Jul 2013 17:41:11 +0700<br>From: <a href="mailto:chu.ducminh@gmail.com" target="_blank">chu.ducminh@gmail.com</a><br>
To: <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a>; <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>Subject: [Openstack] Call to API very slow [Grizzly]<div>
<div class="h5"><br><br><div dir="ltr"><div><div><div><div><div><div><div><div>All operations in my Openstack dashboard very slow (compare to my old Openstack deployment)<br></div>Then i do some check on an instance:<br><br>
$ time curl <a href="http://169.254.169.254/openstack" target="_blank">http://169.254.169.254/openstack</a><br>
2012-08-10<br>2013-04-04<br>latest<br>real    0m<b>5.605s</b><br>user    0m0.004s<br>sys    0m0.004s<br><br></div>5 seconds for a simple API query !??<br><br><br></div>in quantum-ns-metadata-proxyxxxx.log, i saw:<br>2013-07-25 <b>17:17:09  </b>  DEBUG [quantum.agent.metadata.namespace_proxy] Request: GET /openstack HTTP/1.0<br>

Accept: */*<br>Content-Type: text/plain<br>Host: 169.254.169.254<br>User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/<a href="http://1.2.3.4" target="_blank">1.2.3.4</a> libidn/1.23 librtmp/2.3<br>
2013-07-25 <b>17:17:14</b>    DEBUG [quantum.agent.metadata.namespace_proxy] {'date': 'Thu, 25 Jul 2013 10:17:14 GMT', 'status': '200', 'content-length': '28', 'content-type': 'text/html; charset=UTF-8', 'content-location': u'<a href="http://169.254.169.254/openstack" target="_blank">http://169.254.169.254/openstack</a>'}<br>

2013-07-25 17:17:14    DEBUG [quantum.agent.metadata.namespace_proxy] 2012-08-10<br>2013-04-04<br>latest<br><br></div>I take a look at metadata-agent.log, and saw almost request/response finished @<b>17:17:09<br></b></div>

But the last finished <b>@</b><b>17:17:14<br></b>2013-07-25 <b>17:17:14</b>    DEBUG [quantum.agent.metadata.agent] {'date': 'Thu, 25 Jul 2013 10:17:14 GMT', 'status': '200', 'content-length': '28', 'content-type': 'text/html; charset=UTF-8', 'content-location': u'<a href="http://172.30.1.14:8775/openstack" target="_blank">http://172.30.1.14:8775/openstack</a>'}<br>

<b><br></b></div>I enabled slow query log on MySql, but can't find any slow query.<br><br></div>Do you know possible problems in this situation?<br></div>Thank you very much!<br><div><div><div><div><div><div><div><div>

<div><br></div></div></div></div></div></div></div></div></div></div>
<br></div></div>_______________________________________________
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a>
Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a></div>                                           </div></div>
</blockquote></div><br></div></div>                                         </div></body>
</html>