Changing load balancing
This commit is contained in:
@@ -148,11 +148,12 @@ server {
|
|||||||
|
|
||||||
|
|
||||||
upstream fastapi_backend {
|
upstream fastapi_backend {
|
||||||
# sticky sessions
|
# Balancing: Comment out both ip_hash and least_conn to use the default of round robin
|
||||||
ip_hash;
|
# IP hash for sticky sessions/connections load balancing method
|
||||||
|
# ip_hash;
|
||||||
|
|
||||||
# enable least connections balancing method
|
# Least connections balancing method
|
||||||
# least_conn;
|
least_conn;
|
||||||
|
|
||||||
# zone backend 64k; # Use NGINX Plus' shared memory
|
# zone backend 64k; # Use NGINX Plus' shared memory
|
||||||
|
|
||||||
|
|||||||
@@ -189,7 +189,7 @@ services:
|
|||||||
- ./conf/aether_fastapi_requirements_current.txt:/requirements_current.txt
|
- ./conf/aether_fastapi_requirements_current.txt:/requirements_current.txt
|
||||||
- ./conf/aether_api_config.py:/srv/aether_api/app/config.py
|
- ./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/aether_api_ln:/srv/aether_api
|
||||||
- ./srv/hosted_files_ln:/srv/hosted_files
|
- ./srv/hosted_files_ln:/srv/hosted_files
|
||||||
@@ -227,7 +227,7 @@ services:
|
|||||||
- ./conf/aether_fastapi_requirements_current.txt:/requirements_current.txt
|
- ./conf/aether_fastapi_requirements_current.txt:/requirements_current.txt
|
||||||
- ./conf/aether_api_config.py:/srv/aether_api/app/config.py
|
- ./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/aether_api_ln:/srv/aether_api
|
||||||
- ./srv/hosted_files_ln:/srv/hosted_files
|
- ./srv/hosted_files_ln:/srv/hosted_files
|
||||||
@@ -265,7 +265,7 @@ services:
|
|||||||
- ./conf/aether_fastapi_requirements_current.txt:/requirements_current.txt
|
- ./conf/aether_fastapi_requirements_current.txt:/requirements_current.txt
|
||||||
- ./conf/aether_api_config.py:/srv/aether_api/app/config.py
|
- ./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/aether_api_ln:/srv/aether_api
|
||||||
- ./srv/hosted_files_ln:/srv/hosted_files
|
- ./srv/hosted_files_ln:/srv/hosted_files
|
||||||
|
|||||||
Reference in New Issue
Block a user