Changing load balancing
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user