<div dir="ltr">
<p class=""><span class="">Hi All:</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">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.</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">spawning 100 users per sec for create token, below are the results:</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class=""><b>Using nginx with uwsgi: </b></span></p>
<p class=""><span class="">rps <b>32</b> —(reqests/sec)</span></p>
<p class=""><span class="">median time ~ 3.3 sec </span></p>
<p class=""><span class="">no of processes 20 </span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class=""><b>using apache </b></span></p>
<p class=""><span class="">rps <b>75</b> </span></p>
<p class=""><span class="">median time ~ 1.3 sec </span></p>
<p class=""><span class="">avg time - 1.5 sec </span></p>
<p class=""><span class="">no of processes 20 </span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class=""><b>using wsgi </b></span></p>
<p class=""><span class="">rps <b>28</b> </span></p>
<p class=""><span class="">median time ~ 3.4 </span></p>
<p class=""><span class="">avg 3.5 </span></p>
<p class=""><span class="">no of processes 20 </span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">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.We did not encounter this auto restart issue in test yet and hence are open to more inputs.</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">Any other suggestions are welcome too. Let us know in case of queries.</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">Regards, </span></p>
<p class=""><span class="">Aliasgar</span></p></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 7, 2015 at 9:39 PM, Jamie Lennox <span dir="ltr"><<a href="mailto:jamielennox@gmail.com" target="_blank">jamielennox@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><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></blockquote></div><br></div>