21285: Fixes worker & nofile calculations on nginx config. 21285-installer-updates
authorLucas Di Pentima <lucas.dipentima@curii.com>
Fri, 12 Jan 2024 20:45:59 +0000 (17:45 -0300)
committerLucas Di Pentima <lucas.dipentima@curii.com>
Fri, 12 Jan 2024 20:45:59 +0000 (17:45 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>

tools/salt-install/config_examples/multi_host/aws/pillars/nginx_balancer_configuration.sls
tools/salt-install/config_examples/multi_host/aws/pillars/nginx_passenger.sls

index 25027b85716b6049c2c30d735529da261d51c67b..485cf9c12f67342584a7e1c06ffa4b501ae3d466 100644 (file)
@@ -16,9 +16,9 @@ nginx:
   ### SERVER
   server:
     config:
-      worker_rlimit_nofile: {{ (max_reqs * 3 + max_tunnels) * controller_nr }}
+      worker_rlimit_nofile: {{ (max_reqs + max_tunnels) * 5 * controller_nr }}
       events:
-        worker_connections: {{ (max_reqs * 3 + max_tunnels) * controller_nr }}
+        worker_connections: {{ (max_reqs + max_tunnels) * 5 * controller_nr }}
       ### STREAMS
       http:
         'geo $external_client':
index 0655a0db1f4ec382fdcc917202b6a634c1ed06b5..0c9ef1c36e6ff8629ac5b14158fb4b9d6fa57da4 100644 (file)
@@ -55,9 +55,10 @@ nginx:
       # controller, then potentially 1 from controller back to
       # passenger).  Each connection consumes a file descriptor.
       # That's how we get these calculations
-      worker_rlimit_nofile: {{ max_reqs * 3 + 1 + max_tunnels }}
+      # (we're multiplying by 5 instead to be on the safe side)
+      worker_rlimit_nofile: {{ (max_reqs + max_tunnels) * 5 + 1 }}
       events:
-        worker_connections: {{ max_reqs * 3 + 1 + max_tunnels }}
+        worker_connections: {{ (max_reqs + max_tunnels) * 5 + 1 }}
 
   ### SITES
   servers: