Add "worker_connections" to ea-nginx (for JSON config importing) to avoid amending nginx.conf direct
G'day,
To ensure persistence of required tweaks to NGINX for its stability and performance on variably-sized servers, we see a need to add more scope to the ea-nginx package's supported JSON configuration options. At the moment, you can set options like "worker_processes" via JSON and import these via a config rebuild, making it easy to ensure persistence of the adjustments.
However, it isn't yet possible to do the same for "worker_connections" and likely other relevant options. We haven't adjusted too many yet it seems there's room to expand this to make for easier optimisation of NGINX+Apache servers, especially at scale where persistence is key.
Here's what cPanel Support have said, leading to this Feature Request:
"The NGINX "worker_connections" is not a configuration that is managed by the EA-NGINX script. As such, adding this configuration to the "settings.json" file is simply ignored. In contrast, the "worker_processes" is a recognized configuration parameter and so changes made in the "settings.json" file are applied when the configuration is rebuilt.
If you would like the option to configure the "worker_connections" in the "settings.json" file, I would recommend that you submit this as a Feature Request. Our feature requests are reviewed by our community and developers, and as such is the best place for making this request.
At this time, the only method to modify the "worker_connections" is to directly make this change to the /etc/nginx/nginx.conf file."
Hopefully your teams are willing to consider expanding JSON config importing support to include worker_connections (and ideally other) options in the near future.
Thank you!
Replies have been locked on this page!