<div dir="ltr">+1. The neutron client can only operate on the environmental variables it has access to, it doesn't store any other state. So if all it has is credentials, it has to use those to fetch a token.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 3, 2016 at 12:05 PM, Rick Jones <span dir="ltr"><<a href="mailto:rick.jones2@hpe.com" target="_blank">rick.jones2@hpe.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 02/03/2016 05:32 AM, Vega Cai wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
I did a test about the performance of port query in Tricircle yesterday.<br>
The result is attached.<br>
<br>
Three observations in the test result:<br>
(1) Neutron client costs much more time than curl, the reason may be<br>
neutron client needs to apply for a new token in each run.<br>
</blockquote>
<br></span>
Is "needs" a little strong there?  When I have been doing things with Neutron CLI at least and needed to issue a lot of requests over a somewhat high latency path, I've used the likes of:<br>
<br>
token=$(keystone token-get | awk '$2 == "id" {print$4}')<br>
NEUTRON="neutron --os-token=$token --os-url=<a href="https://mutter" rel="noreferrer" target="_blank">https://mutter</a><br>
<br>
to avoid grabbing a token each time.  Might that be possible with what you are testing?<br>
<br>
rick jones<br>
<br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div>Kevin Benton</div></div>
</div>