2 ms·
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. A
by ehutch79 15y ago
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.
- ehutch79 15y agooops 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.