Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matsumotory/ngx_custom_worker_module
ngx_custom_worker_module can set the number of processes with any factor of worker_processes auto.
https://github.com/matsumotory/ngx_custom_worker_module
nginx nginx-module worker
Last synced: about 2 months ago
JSON representation
ngx_custom_worker_module can set the number of processes with any factor of worker_processes auto.
- Host: GitHub
- URL: https://github.com/matsumotory/ngx_custom_worker_module
- Owner: matsumotory
- License: mit
- Created: 2017-06-01T05:41:25.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-07-27T22:38:11.000Z (over 4 years ago)
- Last Synced: 2024-10-18T18:21:29.964Z (3 months ago)
- Topics: nginx, nginx-module, worker
- Language: C
- Homepage:
- Size: 4.88 KB
- Stars: 8
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ngx_custom_worker_module
ngx_custom_worker_module can set the number of processes with any factor or spare of `worker_processes auto`.
## Configuration
- the number of worker processes is __4__ if the number of cpu threads is 4.
```nginx
worker_processes auto;
```### worker_processes_factor
- the number of worker processes is __12__ if the number of cpu threads is 4.
```nginx
worker_processes auto;
worker_processes_factor 3;
```### worker_processes_spare
- the number of worker processes is __2__ if the number of cpu threads is 4.
```nginx
worker_processes auto;
worker_processes_spare 2;
```### set worker_processes_factor and worker_processes_spare
The worker_processes_factor is applied before the worker_processes_spare.
- the number of worker processes is __10__ if the number of cpu threads is 4.
```nginx
worker_processes auto;
worker_processes_factor 3;
worker_processes_spare 2;
```- the number of worker processes is __10__ if the number of cpu threads is 4.
```nginx
worker_processes auto;
worker_processes_spare 2;
worker_processes_factor 3;
```## Install
- use nginx configure option
```
./configure --add-module=/path/to/ngx_custom_worker_module
```