Gunicorn 0.17.0 released (gunicorn-docs.readthedocs.org)
New features:
allows gunicorn to bind to multiple address
add SSL support
add syslog support
add nworkers_changed hook
add response arg for post_request hook
parse command line with argparse (replace deprecated optparse)
9 comments
[ 1635 ms ] story [ 94.1 ms ] threadedit: double checked the previous changelogs and the settings detection change might be useful. On another note, the removal of python2.5 so soon is welcome.
Gunicorn ‘Green Unicorn’ is a Python WSGI HTTP Server for UNIX. It’s a pre-fork worker model ported from Ruby’s Unicorn project. The Gunicorn server is broadly compatible with various web frameworks, simply implemented, light on server resources, and fairly speedy.
http://httpd.apache.org/docs/2.2/mod/prefork.html
essentially it forks before a request comes in, the master process pushes requests to an idle "pre-forked" worker process. Works pretty well under Linux with pretty light processes - pretty badly under windows nt where processes are much fatter than threads.
The main process tries to maintain a pool of idle workers so there is no need to wait for a fork before an incomming request is handled.