summaryrefslogtreecommitdiff
path: root/.rr.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.rr.yaml')
-rw-r--r--.rr.yaml47
1 files changed, 32 insertions, 15 deletions
diff --git a/.rr.yaml b/.rr.yaml
index e50f5717..40bfdf6e 100644
--- a/.rr.yaml
+++ b/.rr.yaml
@@ -24,7 +24,7 @@ rpc:
# Application server settings (docs: https://roadrunner.dev/docs/php-worker)
server:
- #[SINCE 2.6]
+ # Execute command before the main server's command.
on_init:
# Command to execute before the main server's command
#
@@ -36,12 +36,16 @@ server:
# Default: 60s [60m, 60h], if used w/o units its means - NANOSECONDS.
exec_timeout: 20s
+ # Exit on init error
+ # Default: false
+ exit_on_error: false
+
# Environment variables for the worker processes.
#
# Default: <empty map>
env:
- SOME_KEY: "SOME_VALUE"
- SOME_KEY2: "SOME_VALUE2"
+ SOME_KEY: "SOME_VALUE"
+ SOME_KEY2: "SOME_VALUE2"
# Username (not UID) of the user from whom the on_init command is executed. An empty value means to use the RR process user.
#
@@ -67,8 +71,8 @@ server:
#
# Default: <empty map>
env:
- SOME_KEY: "SOME_VALUE"
- SOME_KEY2: "SOME_VALUE2"
+ SOME_KEY: "SOME_VALUE"
+ SOME_KEY2: "SOME_VALUE2"
# Worker relay can be: "pipes", TCP (eg.: tcp://127.0.0.1:6002), or socket (eg.: unix:///var/run/rr.sock).
#
@@ -103,12 +107,12 @@ logs:
# Output can be file (eg.: "/var/log/rr_errors.log"), "stderr" or "stdout".
#
# Default: "stderr"
- output: [ stderr ]
+ output: ["stderr"]
# Errors only output can be file (eg.: "/var/log/rr_errors.log"), "stderr" or "stdout".
#
- # Default: "stderr"
- err_output: [ stderr ]
+ # Default: ["stderr"]
+ err_output: ["stderr"]
# File logger options
#
@@ -149,20 +153,20 @@ logs:
mode: development
level: panic
encoding: console
- output: [ stdout ]
- err_output: [ stderr ]
+ output: ["stdout"]
+ err_output: ["stderr"]
server:
mode: production
level: info
encoding: json
- output: [ stdout ]
- err_output: [ stdout ]
+ output: ["stdout"]
+ err_output: ["stdout"]
rpc:
mode: raw
level: debug
encoding: console
- output: [ stderr ]
- err_output: [ stdout ]
+ output: ["stderr"]
+ err_output: ["stdout"]
# Workflow and activity mesh service.
#
@@ -798,6 +802,14 @@ http:
# Default: 60s
destroy_timeout: 60s
+ # Dynamic allocator settings.
+ #
+ # Default: empty
+ dynamic_allocator:
+ max_workers: 25
+ spawn_rate: 10
+ idle_timeout: 10s
+
# Supervisor is used to control http workers (previous name was "limit", video: https://www.youtube.com/watch?v=NdrlZhyFqyQ).
# "Soft" limits will not interrupt current request processing. "Hard"
# limit on the contrary - interrupts the execution of the request.
@@ -840,7 +852,7 @@ http:
# Directory to use as a certificate/pk, account info storage
#
# Optional. Default: rr_cache
- certs_dir: rr_le_certs
+ cache_dir: "rr_le_certs"
# User email
#
@@ -1280,6 +1292,11 @@ jobs:
# Default: 60s
destroy_timeout: 60s
+ dynamic_allocator:
+ max_workers: 25
+ spawn_rate: 10
+ idle_timeout: 10s
+
# List of broker pipelines associated with the drivers.
#
# This option is not required since you can declare pipelines in the runtime. Pipeline driver should exist.