<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div><br>
</div>
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>
<div>
<div><span style="color: rgb(34, 34, 34); font-family: 'Times New Roman'; widows: 1;">Hi All:</span></div>
</div>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div>
<div style="color: rgb(34, 34, 34); widows: 1;"><font face="Times New Roman"><br>
</font></div>
<span style="widows: 1; background-color: rgb(255, 255, 255);"><font face="Times New Roman"><font color="#222222">Just to inform Steve and all the folks who brought up this talk ;We did some benchmarking using wsgi, apache and nginx for keystone with mysql
 as token backend and we got following results on Juno version. Hence I am just giving you brief highlight about the results we got.</font></font></span>
<div style="color: rgb(34, 34, 34); widows: 1;"><font face="Times New Roman"><br>
</font></div>
<div style="color: rgb(34, 34, 34); widows: 1;"><span style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(245, 245, 245);"><font face="Times New Roman">spawning 100 users per sec for create token, below are the results:</font></span></div>
<div style="color: rgb(34, 34, 34); widows: 1;"><span style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(245, 245, 245);"><font face="Times New Roman"><br>
</font></span></div>
<div style="widows: 1;"><font face="Times New Roman"><span style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(245, 245, 245);"><b>Using nginx with uwsgi: </b></span><br style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(245, 245, 245);">
<span style="background-color: rgb(245, 245, 245);"><font color="#333333"><span style="line-height: 20px;">rps
<b>32</b>    —(reqests/sec)</span></font></span><br style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(245, 245, 245);">
<span style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(245, 245, 245);">median time ~ 3.3 sec </span><br style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(245, 245, 245);">
<span style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(245, 245, 245);">no of processes 20 </span><br style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(245, 245, 245);">
<br style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(245, 245, 245);">
<span style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(245, 245, 245);"><b>using apache </b></span><br style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(245, 245, 245);">
<span style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(245, 245, 245);">rps <b>75</b> </span><br style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(245, 245, 245);">
<span style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(245, 245, 245);">median time ~ 1.3 sec </span><br style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(245, 245, 245);">
<span style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(245, 245, 245);">avg time - 1.5 sec </span><br style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(245, 245, 245);">
<span style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(245, 245, 245);">no of processes 20 </span><br style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(245, 245, 245);">
<br style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(245, 245, 245);">
<span style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(245, 245, 245);"><b>using wsgi </b></span><br style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(245, 245, 245);">
<span style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(245, 245, 245);">rps
<b>28</b> </span><br style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(245, 245, 245);">
<span style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(245, 245, 245);">median time ~ 3.4 </span><br style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(245, 245, 245);">
<span style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(245, 245, 245);">avg 3.5 </span><br style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(245, 245, 245);">
<span style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(245, 245, 245);">no of processes 20 </span><br>
</font></div>
<div style="color: rgb(34, 34, 34); widows: 1;"><span style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(245, 245, 245);"><font face="Times New Roman"><br>
</font></span></div>
<div style="color: rgb(34, 34, 34); widows: 1;"><span style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(245, 245, 245);"><font face="Times New Roman"><br>
</font></span></div>
<div style="color: rgb(34, 34, 34); widows: 1;"><span style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(245, 245, 245);"><font face="Times New Roman">We are planning to switch to apache since we are not seeing good results using nginx
 with uwsgi. May be some more added support is required for nginx performance.</font></span><span style="line-height: 20px; color: rgb(51, 51, 51); font-family: 'Times New Roman'; background-color: rgb(245, 245, 245);">We did not encounter this auto restart
 issue in test yet and hence are open to more inputs.</span></div>
<div style="color: rgb(34, 34, 34); widows: 1;"><span style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(245, 245, 245);"><font face="Times New Roman"><br>
</font></span></div>
<div style="color: rgb(34, 34, 34); widows: 1;"><span style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(245, 245, 245);"><font face="Times New Roman">Any other suggestions are welcome too. Let us know in case of queries.</font></span></div>
</div>
<div style="color: rgb(34, 34, 34); widows: 1;"><span style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(245, 245, 245);"><font face="Times New Roman"><br>
</font></span></div>
<div style="color: rgb(34, 34, 34); widows: 1;"><span style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(242, 242, 242);"><font face="Times New Roman">Regards, </font></span></div>
<div style="color: rgb(34, 34, 34); widows: 1;"><span style="color: rgb(51, 51, 51); line-height: 20px; background-color: rgb(238, 238, 238);"><font face="Times New Roman">Aliasgar</font></span></div>
<span id="OLK_SRC_BODY_SECTION" style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<div>
<div>
<div dir="ltr">
<div class="gmail_quote">
<div dir="ltr">
<div class="gmail_extra"><br>
<div class="gmail_quote">
<div>
<div class="h5">On 8 December 2015 at 07:53, Thomas Goirand <span dir="ltr"><<a href="mailto:zigo@debian.org" target="_blank">zigo@debian.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div>On 12/01/2015 07:57 AM, Steve Martinelli wrote:<br>
> Trying to summarize here...<br>
><br>
> - There isn't much interest in keeping eventlet around.<br>
> - Folks are OK with running keystone in a WSGI server, but feel they are<br>
> constrained by Apache.<br>
> - uWSGI could help to support multiple web servers.<br>
><br>
> My opinion:<br>
><br>
> - Adding support for uWSGI definitely sounds like it's worth<br>
> investigating, but not achievable in this release (unless someone<br>
> already has something cooked up).<br>
> - I'm tempted to let eventlet stick around another release, since it's<br>
> causing pain on some of our operators.<br>
> - Other folks have managed to run keystone in a web server (and<br>
> hopefully not feel pain when doing so!), so it might be worth getting<br>
> technical details on just how it was accomplished. If we get an OK from<br>
> the operator community later on in mitaka, I'd still be OK with removing<br>
> eventlet, but I don't want to break folks.<br>
><br>
> stevemar<br>
><br>
> From: John Dewey <<a href="mailto:john@dewey.ws" target="_blank">john@dewey.ws</a>><br>
> 100% agree.<br>
><br>
> We should look at uwsgi as the reference architecture. Nginx/Apache/etc<br>
> should be interchangeable, and up to the operator which they choose to<br>
> use. Hell, with tcp load balancing now in opensource Nginx, I could get<br>
> rid of Apache and HAProxy by utilizing uwsgi.<br>
><br>
> John<br>
<br>
</div>
</div>
The main problem I see with running Keystone (or any other service) in a<br>
web server, is that *I* (as a package maintainer) will loose the control<br>
over when the service is started. Let me explain why that is important<br>
for me.<br>
<br>
In Debian, many services/daemons are run, then their API is used by the<br>
package. In the case of Keystone, for example, it is possible to ask,<br>
via Debconf, that Keystone registers itself in the service catalog. If<br>
we get Keystone within Apache, it becomes at least harder to do so.<br>
</blockquote>
<div><br>
</div>
</div>
</div>
<div>I was going to leave this up to others to comment on here, but IMO - excellent. Anyone that is doing an even semi serious deployment of OpenStack is going to require puppet/chef/ansible or some form of orchestration layer for deployment. Even for test
 deployments it seems to me that it's crazy for this sort of functionality be handled from debconf. The deployers of the system are going to understand if they want to use eventlet or apache and should therefore understand what restarting apache on a system
 implies.<br>
 <br>
</div>
<span class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
The other issue is that if all services are sharing the same web server,<br>
restarting the web server restarts all services. Or, said otherwise: if<br>
I need to change a configuration value of any of the services served by<br>
Apache, I will need to restart them all, which is very annoying: I very<br>
much prefer to just restart *ONE* service if I need.<br>
<br>
Also, something which we learned the hard way at Mirantis: it is *very*<br>
annoying that Apache restarts every Sunday morning by default in<br>
distributions like Ubuntu and Debian (I'm not sure for the other<br>
distros). No, the default config of logrotate and Apache can't be<br>
changed in distros just to satisfy OpenStack users: there's other users<br>
of Apache in these distros.<br>
</blockquote>
</span>
<div><br>
:O<br>
 <br>
</div>
<span class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Then, yes, uWSGI becomes a nice option. I used it for the Barbican<br>
package, and it worked well. Though the uwsgi package in Debian isn't<br>
very well maintained, and multiple times, Barbican could have been<br>
removed from Debian testing because of RC bugs against uWSGI.<br>
<br>
So, all together, I'm a bit reluctant to see the Eventlet based servers<br>
going away. If it's done, then yes, I'll work around it. Though I'd<br>
prefer if it didn't.<br>
<br>
It is also my view that it's up to the deployers to decide how they want<br>
to implement things. For many small use cases, Eventlet performs well<br>
enough.<br>
<br>
Finally, one thing which I never understood: if Eventlet is bad as an<br>
HTTP server, can't we use anything else written in Python? Isn't it<br>
possible to write a decent HTTP server in Python? Why are we forced into<br>
just Eventlet for doing the job? I haven't searched around, but there<br>
must be loads of alternatives, no?<br>
<br>
Cheers,<br>
<br>
Thomas Goirand (zigo)<br>
<div>
<div></div>
</div>
</blockquote>
<div><br>
</div>
</span>
<div>So I'd be ok with keeping eventlet around until after we can figure out something for multiple virtual envs (i think you'd replace virtualenvs with containers) , but i don't think the packaging should have anything to do with this.<br>
 <br>
</div>
<span class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div>_______________________________________________<br>
OpenStack-operators mailing list<br>
<a href="mailto:OpenStack-operators@lists.openstack.org" target="_blank">OpenStack-operators@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a><br>
</div>
</div>
</blockquote>
</span></div>
<br>
</div>
</div>
<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>
<br>
</div>
<br>
</div>
</div>
</div>
</span></div>
</div>
</span></div>
</div>
</span>
</body>
</html>