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