Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: set worker_rlimit_nofile to (worker_connections x 2) #2387

Merged
merged 1 commit into from Feb 10, 2024
Merged

Conversation

buchdag
Copy link
Member

@buchdag buchdag commented Feb 10, 2024

This is an attempted fix for #1780 by setting worker_rlimit_nofile value to two times the value we use for worker_connections (10240 x 2 = 20480). This is what is recommended by nginx as a minimum and it appeared to fix #1780 for @danifr

The hard to decipher regex is used to insert worker_rlimit_nofile 20480; to /etc/nginx/nginx.conf only once, after the first occurence of the character }.

@buchdag buchdag added the type/fix PR for a bug fix label Feb 10, 2024
@buchdag buchdag merged commit af56ba2 into main Feb 10, 2024
2 checks passed
@buchdag buchdag deleted the 1780 branch February 10, 2024 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/fix PR for a bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nginx process shuts itself down immediately, seemingly without any error
1 participant