fix(nginx): raise the container file descriptor limit to match worker_connections
Some checks failed
Deploy to Production / Trigger production update (push) Failing after 10s
Some checks failed
Deploy to Production / Trigger production update (push) Failing after 10s
nginx.conf configures 2048 worker_connections, but Docker's default RLIMIT_NOFILE of 1024 capped what the workers could actually open — and since a proxied connection needs a descriptor both downstream and upstream, the real ceiling was about a quarter of the configured one. nginx warned about exactly this on every config test. Raise nofile to 8192 for the nginx container. Verified in place: the limit goes from 1024 to 8192 and `nginx -t` is now free of warnings.
This commit is contained in:
@@ -34,6 +34,14 @@ services:
|
||||
interval: 30s
|
||||
timeout: 3s
|
||||
retries: 3
|
||||
# nginx.conf asks for 2048 worker_connections, but Docker's default file
|
||||
# descriptor limit is 1024 — so the real ceiling was a quarter of the
|
||||
# configured one (each proxied connection needs an fd downstream and
|
||||
# upstream), and nginx warned about it on every config test.
|
||||
ulimits:
|
||||
nofile:
|
||||
soft: 8192
|
||||
hard: 8192
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
|
||||
Reference in New Issue
Block a user