News for hackers. Stuff that matters.
Re:Django Setup using Nginx and Gunicorn by ehutch79 on Saturday June 18, 2011 @09:43AM (#2668614)
it's pretty easy to add multiple upstream servers to nginx. If you're at that point you want to be reading the docs and understanding what's going on anyway.

Also gunicorn wants n+1 workers, where n is the number of cores you want to devote to it. It's in the docs. So an 8 core machine would want 9 workers.

If you've got multi server scaling issues, cut and paste won't help you.

Re:Django Setup using Nginx and Gunicorn by ehutch79 on Saturday June 18, 2011 @09:49AM (#2668626)
oops i've apparently misunderstood what you were asking.

you want something like: include /etc/nginx/vhosts/enabled/*

and just put your server directives into files that are in enabled.