-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.rr.yaml
More file actions
61 lines (51 loc) · 1.32 KB
/
.rr.yaml
File metadata and controls
61 lines (51 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# RoadRunner Configuration Example with JavaScript Plugin
version: "3"
# RPC configuration for plugin communication
rpc:
listen: tcp://127.0.0.1:6001
# Server configuration
server:
command: "php worker.php"
relay: pipes
# HTTP server configuration
http:
address: 0.0.0.0:8080
middleware: []
pool:
num_workers: 4
max_jobs: 0
allocate_timeout: 60s
destroy_timeout: 60s
# Logs configuration
logs:
mode: development
level: debug
encoding: console
output: stdout
err_output: stderr
# Metrics configuration (Prometheus)
metrics:
address: 127.0.0.1:2112
collect:
app_metric: true
# JavaScript execution plugin configuration
js:
# Number of JavaScript VMs in the pool
# Recommendation: Set to number of CPU cores for CPU-bound tasks
# Default: 4
pool_size: 4
# Maximum memory limit per JavaScript VM in megabytes
# Otto VMs typically use ~20MB base memory
# Default: 512
max_memory_mb: 512
# Default execution timeout in milliseconds
# Individual requests can override this value
# Recommendation: Set based on your use case
# - Quick scripts: 1000-5000ms
# - API calls: 5000-10000ms
# - Complex processing: 10000-30000ms
# Default: 30000 (30 seconds)
default_timeout_ms: 30000
# Optional: Status endpoint for health checks
# status:
# address: 127.0.0.1:2114