-
Notifications
You must be signed in to change notification settings - Fork 0
/
test-rr.yaml
156 lines (133 loc) · 3.94 KB
/
test-rr.yaml
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
version: "2.7"
rpc:
# TCP address:port for listening.
#
# Default: "tcp://127.0.0.1:6001"
listen: tcp://127.0.0.1:6001
server:
command: "php test-worker.php" # This file should be identical to dev-rr.yaml, with the exception of this file
# command: "php -dzend_extension=opcache.so -dopcache.enable=1 -dopcache.enable_cli=1 test-worker.php"
env:
- XDEBUG_SESSION: 1
http:
address: localhost:8080
pool:
num_workers: 1 #4
middleware: ["static", "gzip"]
uploads:
forbid: [".php", ".exe", ".bat"]
static:
dir: "tests/Mocks/public"
forbid: [".php", ".htaccess"]
# Boltdb jobs driver
#
# This option is required to use boltdb driver
boltdb:
# Permissions for hte boltdb database file
#
# This option is optional. Default: 0777
permissions: 0777
# Automatically detect PHP file changes and reload connected services (docs:
# https://roadrunner.dev/docs/beep-beep-reload). Drop this section for this feature disabling.
reload:
# Sync interval.
#
# Default: "1s"
interval: 1s
# Global patterns to sync.
#
# Default: [".php"]
patterns: [ ".php" ]
# List of included for sync services (this is a map, where key name is a plugin name).
#
# Default: <empty map>
services:
http:
# Directories to sync. If recursive is set to true, recursive sync will be applied only to the directories in
# "dirs" section. Dot (.) means "current working directory".
#
# Default: []
dirs: [ "." ]
# Recursive search for file patterns to add.
#
# Default: false
recursive: true
# Ignored folders.
#
# Default: []
ignore: [ "vendor" ]
# Service specific file pattens to sync.
#
# Default: []
patterns: [ ".php", ".go", ".md", ".yaml" ]
jobs:
# # Number of threads which will try to obtain the job from the priority queue
# #
# # Default: number of the logical CPU cores
num_pollers: 32
# Size of the internal priority queue
#
# Default: 1_000_000
pipeline_size: 100000
timeout: 60
# worker pool configuration
pool:
#command: "php manual-flow-starter.php"
#max_jobs: 0
num_workers: 10 #1
allocate_timeout: 60s
destroy_timeout: 60s
# 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.
pipelines:
# Pipeline name
#
# This option is required when defining pipelines via configuration.
boltdb-queue:
# # Driver associated with the pipeline
# #
# # This option is required. Possible values: amqp, memory, sqs, beanstalk, boltdb
driver: boltdb
# # Driver's configuration
# #
# # Should not be empty
config:
# # BoldDB file to create or DB to use
# #
# # Default: "rr.db"
file: "rr-queues.db"
# # Pipeline priority
# #
# # If the job has priority set to 0, it will inherit the pipeline's priority. Default: 10.
# priority: 10
# # Number of job to prefetch from the driver.
# #
# # Default: 100_000.
# prefetch: 10000
# Pipeline name
#
# This option is required when defining pipelines via configuration.
memory-queue:
# Driver associated with the pipeline
#
# This option is required. Possible values: amqp, memory, sqs, beanstalk, boltdb
driver: memory
# Driver's configuration
#
# Should not be empty
config:
# Pipeline priority
#
# If the job has priority set to 0, it will inherit the pipeline's priority. Default: 10.
priority: 10
# Number of job to prefetch from the driver.
#
# Default: 100_000.
prefetch: 10000
# list of pipelines to be consumed by the server automatically at the start, keep empty if you want to start consuming manually
consume:
[
"boltdb-queue",
#"memory-queue",
]