diff options
author | Toine Siebelink <toine.siebelink@est.tech> | 2024-09-24 07:54:18 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2024-09-24 07:54:18 +0000 |
commit | 06391e2c0b13064caa643bd9f44e773eaeeb2631 (patch) | |
tree | bf0ea6188819bbb2ab72c3eb22f031918239c100 | |
parent | 7ff089b982cf195b2ec599e1cf6df441bcc21138 (diff) | |
parent | 868e1db469bb6a5755452fe31f8e2e25e86d7d5e (diff) |
Merge "Make nginx load balance using least-connections"
-rw-r--r-- | docker-compose/config/nginx/nginx.conf | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docker-compose/config/nginx/nginx.conf b/docker-compose/config/nginx/nginx.conf index 17fad1b876..61fed515c3 100644 --- a/docker-compose/config/nginx/nginx.conf +++ b/docker-compose/config/nginx/nginx.conf @@ -20,7 +20,9 @@ http { # Add more server entries here for scaling or load balancing upstream cps-and-ncmp { - server cps-and-ncmp:8080; + least_conn; + server docker-compose-cps-and-ncmp-1:8080; + server docker-compose-cps-and-ncmp-2:8080; } server { |