Changing load balancing

This commit is contained in:
Scott Idem
2024-03-08 09:10:50 -05:00
parent 61c49b7f6c
commit ee4e68ddcb
2 changed files with 8 additions and 7 deletions

View File

@@ -148,11 +148,12 @@ server {
upstream fastapi_backend {
# sticky sessions
ip_hash;
# Balancing: Comment out both ip_hash and least_conn to use the default of round robin
# IP hash for sticky sessions/connections load balancing method
# ip_hash;
# enable least connections balancing method
# least_conn;
# Least connections balancing method
least_conn;
# zone backend 64k; # Use NGINX Plus' shared memory

View File

@@ -189,7 +189,7 @@ services:
- ./conf/aether_fastapi_requirements_current.txt:/requirements_current.txt
- ./conf/aether_api_config.py:/srv/aether_api/app/config.py
- ./logs/ae_api_red:/logs
- ./logs/ae_api:/logs
- ./srv/aether_api_ln:/srv/aether_api
- ./srv/hosted_files_ln:/srv/hosted_files
@@ -227,7 +227,7 @@ services:
- ./conf/aether_fastapi_requirements_current.txt:/requirements_current.txt
- ./conf/aether_api_config.py:/srv/aether_api/app/config.py
- ./logs/ae_api_blue:/logs
- ./logs/ae_api:/logs
- ./srv/aether_api_ln:/srv/aether_api
- ./srv/hosted_files_ln:/srv/hosted_files
@@ -265,7 +265,7 @@ services:
- ./conf/aether_fastapi_requirements_current.txt:/requirements_current.txt
- ./conf/aether_api_config.py:/srv/aether_api/app/config.py
- ./logs/ae_api_green:/logs
- ./logs/ae_api:/logs
- ./srv/aether_api_ln:/srv/aether_api
- ./srv/hosted_files_ln:/srv/hosted_files