The security guide is written with the general public in mind. While there's 
nothing inherently wrong with uWSGI, it is common for people to look at 
synthetic performance benchmarks and make their choice based on those. 
Unfortunately, uWSGI has an incredibly large number of options, choices, 
features, and configurations for a deployer to tweak, many of which can result 
in bad performance or security problems. Furthermore, segfaults are pretty 
common in that codebase (at least with some configuration options), which is 
not encouraging from a security perspective.?


The conservative choice is to recommend gunicorn which is stable, has fewer 
features, and is generally easier to configure and deploy correctly. If you 
prefer uWSGI and already have experience running it, please feel free to use it 
with Horizon.


-Paul


________________________________
From: sylecn <[email protected]>
Sent: Wednesday, August 27, 2014 1:39 AM
To: <[email protected]>
Subject: [Openstack] Why security guide advise against uwsgi for deploying 
horizon with nginx?

HI all,

I'm trying to deploy horizon with nginx, and to my surprise, the security guide 
advice against uwsgi, which is the WSGI server of choice for all my other WSGI 
apps.

In the security guide [1], it says

When using nginx, we recommend 
gunicorn<http://docs.gunicorn.org/en/latest/deploy.html> as the wsgi host with 
an appropriate number of synchronous workers. We strongly advise against 
deployments using fastcgi, scgi, or uWSGI. We strongly advise against the use 
of synthetic performance benchmarks when choosing a wsgi server.

Anyone know the reason behind this? Is it just personal preferences?
I see uwsgi has its own benefits beyond being permanent. It has good 
documentation, easy nginx integration, is stable and is configurable. Why it is 
advised against?

[1] http://docs.openstack.org/security-guide/content/ch025_web-dashboard.html

--
YY Inc. is hiring openstack and python developers. Interested? Check 
http://soa.game.yy.com/jobs.html

--
Thanks,
Yuanle
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : [email protected]
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to