-
-
Notifications
You must be signed in to change notification settings - Fork 284
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
Changing worker_processes
value in nginx configuration
#21
Comments
Good idea! I like the 2 option. That way the Do you want to create a Pull Request? |
Yes, I think I could create a PR. What approach would you prefer for setting the value in the configuration? Should I store a modified |
I think we could set a Then read that in the Very much in the same way it's done for Here in the And here in the |
I thik Files like Also, you can not simply append a line to |
Yep. You're right. We would have to |
Created a pull request (#22). Let me know what you think. |
Any updates on this? |
Thanks! Great work. Your PR is merged 🎉 . |
In the default
/etc/nginx/nginx.conf
worker_processes
is set to 1. However, I'd like to change this value.I would suggest one of these approaches:
auto
(so it is set to the number of CPU cores)NGINX_WORKER_PROCESSES
(which can be set in Dockerfiles) and which is written into the config.The text was updated successfully, but these errors were encountered: