ngx_custom_worker_module can set the number of processes with any factor of worker_processes auto.
C
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.clang-format
LICENSE
README.md
config
ngx_core_custom_worker_module.c

README.md

ngx_custom_worker_module

ngx_custom_worker_module can set the number of processes with any factor of worker_processes auto.

Configuration

  • the number of worker processes is 4 if the number of cpu threads is 4.
worker_processes        auto;
  • the number of worker processes is 12 if the number of cpu threads is 4.
worker_processes        auto;
worker_processes_factor 3;

Install

  • use nginx configure option
./configure --add-module=/path/to/ngx_custom_worker_module