by megaman821 · 15y ago · 0 comments
django also has a sites package, so you can run multiple sites per django instance. it's less encapsulated but if you run a high number of websites with a low amount of traffic each it makes a lot of sense.
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.
you want something like: include /etc/nginx/vhosts/enabled/*
and just put your server directives into files that are in enabled.