[arvados] updated: 2.7.0-5797-gba1937c21e
git repository hosting
git at public.arvados.org
Fri Jan 12 20:46:29 UTC 2024
Summary of changes:
.../multi_host/aws/pillars/nginx_balancer_configuration.sls | 4 ++--
.../config_examples/multi_host/aws/pillars/nginx_passenger.sls | 5 +++--
2 files changed, 5 insertions(+), 4 deletions(-)
via ba1937c21efd8d6392c0479579da1fc06443abdd (commit)
from 9f6c2250f6c817abdf5ab14a67c5798842070bf5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit ba1937c21efd8d6392c0479579da1fc06443abdd
Author: Lucas Di Pentima <lucas.dipentima at curii.com>
Date: Fri Jan 12 17:45:59 2024 -0300
21285: Fixes worker & nofile calculations on nginx config.
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima at curii.com>
diff --git a/tools/salt-install/config_examples/multi_host/aws/pillars/nginx_balancer_configuration.sls b/tools/salt-install/config_examples/multi_host/aws/pillars/nginx_balancer_configuration.sls
index 25027b8571..485cf9c12f 100644
--- a/tools/salt-install/config_examples/multi_host/aws/pillars/nginx_balancer_configuration.sls
+++ b/tools/salt-install/config_examples/multi_host/aws/pillars/nginx_balancer_configuration.sls
@@ -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':
diff --git a/tools/salt-install/config_examples/multi_host/aws/pillars/nginx_passenger.sls b/tools/salt-install/config_examples/multi_host/aws/pillars/nginx_passenger.sls
index 0655a0db1f..0c9ef1c36e 100644
--- a/tools/salt-install/config_examples/multi_host/aws/pillars/nginx_passenger.sls
+++ b/tools/salt-install/config_examples/multi_host/aws/pillars/nginx_passenger.sls
@@ -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:
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list