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

[Feature Request] S6 should read number of available CPUs and update the worker_processes directive in nginx config before starting nginx #10969

Open
NickM-27 opened this issue Apr 13, 2024 · 0 comments
Labels
enhancement New feature or request pinned

Comments

@NickM-27
Copy link
Sponsor Collaborator

Users running frigate may configure docker to a limited number of CPU cores. Nginx worker_processes auto directive creates a number of processes equal to the number of CPU cores (ignoring the cgroup limit). If the difference between available cores and configured cores is too large, nginx will spawn too many processes.

When starting nginx, the s6 process should read the number of available CPU cores from cgroups and adjust the worker_processes directive accordingly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pinned
Projects
None yet
Development

No branches or pull requests

1 participant