summaryrefslogtreecommitdiff
path: root/.rr.yaml
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-01-13 11:11:36 +0300
committerValery Piashchynski <[email protected]>2021-01-13 11:11:36 +0300
commitc3cf1d988b980e9408862d380f7ae33dae501e05 (patch)
tree79430ed15f75e23242e921a1471633e33279c395 /.rr.yaml
parent44b0ad21e0d70e413a62814fb408faa033b0d478 (diff)
Update styly of the .rr.yaml
Add comments Add support for the automatically set RR_RPC, RR_HTTP env variables for the worker process.
Diffstat (limited to '.rr.yaml')
-rwxr-xr-x.rr.yaml48
1 files changed, 29 insertions, 19 deletions
diff --git a/.rr.yaml b/.rr.yaml
index f4cf6320..18087c2d 100755
--- a/.rr.yaml
+++ b/.rr.yaml
@@ -1,6 +1,5 @@
rpc:
listen: tcp://127.0.0.1:6001
- disabled: false
server:
command: "php tests/psr-worker-bench.php"
@@ -18,11 +17,11 @@ logs:
http:
address: 127.0.0.1:44933
- maxRequestSize: 1024
+ max_request_size: 1024
middleware: ["gzip", "headers"]
uploads:
forbid: [".php", ".exe", ".bat"]
- trustedSubnets:
+ trusted_subnets:
[
"10.0.0.0/8",
"127.0.0.0/8",
@@ -33,23 +32,34 @@ http:
"fe80::/10",
]
pool:
- numWorkers: 6
- maxJobs: 0
- allocateTimeout: 60s
- destroyTimeout: 60s
+ num_workers: 6
+ max_jobs: 0
+ allocate_timeout: 60s
+ destroy_timeout: 60s
+ supervisor:
+ # WatchTick defines how often to check the state of worker (seconds)
+ watch_tick: 10
+ # TTL defines maximum time worker is allowed to live (seconds)
+ ttl: 10
+ # IdleTTL defines maximum duration worker can spend in idle mode. Disabled when 0 (seconds)
+ idle_ttl: 10
+ # ExecTTL defines maximum lifetime per job (seconds)
+ exec_ttl: 10
+ # MaxWorkerMemory limits memory per worker (MB)
+ max_worker_memory: 100
-# ssl:
-# port: 8892
-# redirect: false
-# cert: fixtures/server.crt
-# key: fixtures/server.key
-# # rootCa: root.crt
-# fcgi:
-# address: tcp://0.0.0.0:7921
-# http2:
-# enabled: false
-# h2c: false
-# maxConcurrentStreams: 128
+ ssl:
+ port: 8892
+ redirect: false
+ cert: fixtures/server.crt
+ key: fixtures/server.key
+ # rootCa: root.crt
+ fcgi:
+ address: tcp://0.0.0.0:7921
+ http2:
+ enabled: false
+ h2c: false
+ max_concurrent_streams: 128
redis:
# UniversalClient is an abstract client which - based on the provided options -