2022-08-21 06:19:27 -05:00
|
|
|
version: '2.7'
|
|
|
|
|
2022-08-26 07:59:27 -05:00
|
|
|
rpc:
|
|
|
|
listen: tcp://127.0.0.1:6001
|
|
|
|
|
2022-08-21 06:19:27 -05:00
|
|
|
server:
|
|
|
|
command: 'php -dopcache.enable_cli=1 -dopcache.validate_timestamps=0 ../../bin/roadrunner-worker.php'
|
|
|
|
|
|
|
|
http:
|
|
|
|
address: '0.0.0.0:8080'
|
|
|
|
static:
|
|
|
|
dir: ../../public
|
|
|
|
forbid:
|
|
|
|
- .php
|
|
|
|
- .htaccess
|
|
|
|
pool:
|
|
|
|
num_workers: 16 # TODO Make configurable
|
|
|
|
supervisor:
|
|
|
|
max_worker_memory: 100
|
|
|
|
|
|
|
|
jobs:
|
2022-08-26 07:59:27 -05:00
|
|
|
timeout: 300
|
2022-08-21 06:19:27 -05:00
|
|
|
pool:
|
|
|
|
num_workers: 16 # TODO Make configurable
|
|
|
|
max_worker_memory: 100
|
2022-08-26 07:59:27 -05:00
|
|
|
consume: ['shlink']
|
|
|
|
pipelines:
|
|
|
|
shlink:
|
|
|
|
driver: memory
|
|
|
|
config:
|
|
|
|
priority: 10
|
|
|
|
prefetch: 10
|
2022-08-21 06:19:27 -05:00
|
|
|
|
|
|
|
logs:
|
|
|
|
mode: production
|
|
|
|
channels:
|
|
|
|
http:
|
|
|
|
level: info # Log all http requests, set to info to disable
|
|
|
|
server:
|
|
|
|
level: debug # Everything written to worker stderr is logged
|
|
|
|
metrics:
|
|
|
|
level: error
|