Tweaking settings...
This commit is contained in:
@@ -160,18 +160,16 @@ upstream fastapi_backend {
|
||||
|
||||
# zone backend 64k; # Use NGINX Plus' shared memory
|
||||
|
||||
# server webserver1 weight=1;
|
||||
# server webserver2 weight=4;
|
||||
|
||||
# Development Environment
|
||||
# larger number will recieve more requests
|
||||
# Example of 20 vs 10: 20 will recieve twice as many requests as 10
|
||||
server aether_api_gunicorn:5005 weight=20 max_fails=1 fail_timeout=7s;
|
||||
server aether_api_gunicorn_red:5005 weight=20 max_fails=1 fail_timeout=7s;
|
||||
server aether_api_gunicorn_green:5005 weight=20 max_fails=1 fail_timeout=7s;
|
||||
server aether_api_gunicorn_blue:5005 weight=20 max_fails=1 fail_timeout=7s;
|
||||
server aether_api_gunicorn_black:5005 weight=20 max_fails=1 fail_timeout=7s;
|
||||
# server aether_api_gunicorn_white:5005 weight=20 max_fails=2 fail_timeout=30s;
|
||||
server aether_api_gunicorn:5005 weight=20 max_fails=1 fail_timeout=5s;
|
||||
server aether_api_gunicorn_red:5005 weight=20 max_fails=1 fail_timeout=5s;
|
||||
server aether_api_gunicorn_green:5005 weight=20 max_fails=1 fail_timeout=5s;
|
||||
server aether_api_gunicorn_blue:5005 weight=20 max_fails=1 fail_timeout=5s;
|
||||
# server aether_api_gunicorn_black:5005 weight=20 max_fails=1 fail_timeout=5s;
|
||||
# server aether_api_gunicorn_white:5005 weight=20 max_fails=1 fail_timeout=5s;
|
||||
|
||||
# maintain up to 20 idle connections to the group of upstream servers
|
||||
keepalive 16;
|
||||
keepalive 10;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user