Devilbox: Is it possible to adjust worker_processes or worker_connections ?

Created on 3 Oct 2018  路  5Comments  路  Source: cytopia/devilbox

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

config-change docker feature nginx performance

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 |

All 5 comments

@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

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 |

Was this page helpful?
0 / 5 - 0 ratings

Related issues

normance picture normance  路  4Comments

hurrtz picture hurrtz  路  5Comments

taliptako picture taliptako  路  4Comments

RaffyeMemon picture RaffyeMemon  路  4Comments

fkaminski picture fkaminski  路  4Comments