froxlor / Froxlor

The server administration software for your needs - The official Froxlor development Git repository
http://www.froxlor.org
GNU General Public License v2.0
1.62k stars 455 forks source link

Automatic assigment of "worker_processes" in nginx #1252

Closed rex2630 closed 3 months ago

rex2630 commented 3 months ago

It seems that "worker_processes" auto feature is currently supported by all distributions supported by froxlor. This feautre seems older than i thought, so even old version should support it.

Automatic assignment should more optimize the nginx enviroment for more than 4 cpu cores or maybe even less cores.

This change was taken from default config of each distro, i have downloaded every version from WSL and tested the nginx.

Sources of the versions for each distro: Ubuntu: https://packages.ubuntu.com/search?keywords=nginx Debian bullseye: https://packages.debian.org/bullseye/nginx Debian bookworm: https://packages.debian.org/bookworm/nginx

Nginx docs reference: https://nginx.org/en/docs/ngx_core_module.html#worker_processes