summaryrefslogtreecommitdiff
path: root/.rr.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.rr.yaml')
-rwxr-xr-x.rr.yaml21
1 files changed, 14 insertions, 7 deletions
diff --git a/.rr.yaml b/.rr.yaml
index 4cdc4326..3f41c126 100755
--- a/.rr.yaml
+++ b/.rr.yaml
@@ -1,3 +1,7 @@
+######################################################################################
+# THIS IS SAMPLE OF THE CONFIGURATION #
+# IT'S NOT A DEFAULT CONFIGURATION, IT'S JUST A REFERENCE TO ALL OPTIONS AND PLUGINS #
+######################################################################################
rpc:
listen: tcp://127.0.0.1:6001
@@ -5,9 +9,6 @@ server:
command: "php tests/psr-worker-bench.php"
user: ""
group: ""
- env:
- "RR_HTTP": "true"
- "RR_RPC": "tcp://127.0.0.1:6001"
relay: "pipes"
relay_timeout: 20s
@@ -20,14 +21,16 @@ temporal:
address: localhost:7233
activities:
num_workers: 4
- codec: json
+ codec: proto
debug_level: 2
http:
# host and port separated by semicolon
address: 127.0.0.1:44933
max_request_size: 1024
+ # middlewares for the http plugin, order matters
middleware: [ "gzip", "headers" ]
+ # uploads
uploads:
forbid: [ ".php", ".exe", ".bat" ]
trusted_subnets:
@@ -40,6 +43,7 @@ http:
"fc00::/7",
"fe80::/10",
]
+ # headers
headers:
cors:
allowed_origin: "*"
@@ -52,6 +56,7 @@ http:
input: "custom-header"
response:
output: "output-header"
+ # http static
static:
dir: "tests"
forbid: [ "" ]
@@ -63,12 +68,13 @@ http:
pool:
# default - num of logical CPUs
num_workers: 6
- # default 0
+ # default 0 - no limit
max_jobs: 0
# default 1 minute
allocate_timeout: 60s
# default 1 minute
destroy_timeout: 60s
+ # supervisor used to control http workers
supervisor:
# watch_tick defines how often to check the state of the workers (seconds)
watch_tick: 1s
@@ -94,13 +100,14 @@ http:
h2c: false
max_concurrent_streams: 128
+# plugin which can be used in other Golang plugins
+# this is not an PHP plugin
redis:
# UniversalClient is an abstract client which - based on the provided options -
# can connect to either clusters, or sentinel-backed failover instances
# or simple single-instance servers. This can be useful for testing
# cluster-specific applications locally.
# if the number of addrs is 1 and master_name is empty, a single-node redis Client will be returned
-
# if the number of addrs is two or more, a ClusterClient will be returned
addrs:
- "localhost:6379"
@@ -135,7 +142,7 @@ boltdb:
# keys ttl check interval
TTL: 60 # seconds
- # memcached driver
+# memcached driver
memcached:
addr:
- "localhost:11211"