Hi there,
Was wondering is it possible to adjust this numbers?
worker_processes
I want to test some Redis transactions with a lot of simultaneous requests I get an error on worker_connections, I tired cfg folder but doesn't work
@drupalshift I suppose you are referring to nginx settings and not Redis settings. Correct me if I am wrong here.
If so, I'll make it a feature request.
Yes I mean Nginx configs for worker_processes and worker_connections
@drupalshift for worker_processes, would it be enough to set it to auto by default?
If set to auto, it will automatically determine the number of your cpu's and set this value internally accordingly.
@drupalshift I have now set workder_processes to auto, which will then make use of all of your local CPU cores (a bit of a delay though on my side xD).
Can you explain the need to change worker_connections and what your currently preferred setting would be?
@drupalshift PR is open and will be merged as soon as CI tests pass: https://github.com/cytopia/devilbox/pull/521
| Variable | Type | Default | Description |
|----------|------|---------|-------------|
| HTTPD_NGINX_WORKER_CONNECTIONS | int | 1024 | worker_connections |
| HTTPD_NGINX_WORKER_PROCESSES | int or auto | auto | worker_processes |
Most helpful comment
@drupalshift PR is open and will be merged as soon as CI tests pass: https://github.com/cytopia/devilbox/pull/521
New environment variables
| Variable | Type | Default | Description |
|----------|------|---------|-------------|
| HTTPD_NGINX_WORKER_CONNECTIONS | int |
1024| worker_connections || HTTPD_NGINX_WORKER_PROCESSES | int or
auto|auto| worker_processes |