Ensured some dynamic RR config for prod env, based on env vars

This commit is contained in:
Alejandro Celaya
2022-08-27 17:17:37 +02:00
parent 2099ea16ec
commit 8852739111
6 changed files with 18 additions and 23 deletions

View File

@@ -9,19 +9,14 @@ server:
http:
address: '0.0.0.0:8080'
static:
dir: ../../public
forbid:
- .php
- .htaccess
dir: '../../public'
forbid: ['.php', '.htaccess']
pool:
num_workers: 3
supervisor:
max_worker_memory: 100
num_workers: 16
jobs:
pool:
num_workers: 2
max_worker_memory: 100
num_workers: 16
timeout: 300
consume: ['shlink']
pipelines:

View File

@@ -7,22 +7,17 @@ server:
command: 'php -dopcache.enable_cli=1 -dopcache.validate_timestamps=0 ../../bin/roadrunner-worker.php'
http:
address: '0.0.0.0:8080'
address: '0.0.0.0:${PORT}'
static:
dir: ../../public
forbid:
- .php
- .htaccess
dir: '../../public'
forbid: ['.php', '.htaccess']
pool:
num_workers: 16 # TODO Make configurable
supervisor:
max_worker_memory: 100
num_workers: ${WEB_WORKER_NUM}
jobs:
timeout: 300
timeout: 300 # 5 minutes
pool:
num_workers: 16 # TODO Make configurable
max_worker_memory: 100
num_workers: ${TASK_WORKER_NUM}
consume: ['shlink']
pipelines:
shlink: