Architecture: Finalized dynamic scaling and Nginx gateway port configuration.

This commit is contained in:
Scott Idem
2026-01-12 17:10:16 -05:00
parent 6ee6f24c00
commit 7bce390e5f
3 changed files with 11 additions and 79 deletions

View File

@@ -164,27 +164,7 @@ server {
upstream fastapi_backend {
# Balancing: Comment out both ip_hash and least_conn to use the default of round robin
# hash $binary_remote_addr consistent;
# IP hash for sticky sessions/connections load balancing method
# ip_hash;
# Least connections balancing method
least_conn;
# zone backend 64k; # Use NGINX Plus' shared memory
# 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=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
server ae_api:5005 weight=20 max_fails=1 fail_timeout=5s;
keepalive 10;
}