-
Notifications
You must be signed in to change notification settings - Fork 6
/
cannon.yml.dist
71 lines (70 loc) · 1.92 KB
/
cannon.yml.dist
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
rabbitmq:
connections:
default:
dsn: "amqp://${RABBITMQ_USER:=guest}:${RABBITMQ_PASSWORD:=guest}@${RABBITMQ_HOST:=rabbitmq}:${RABBITMQ_PORT:=5672}${RABBITMQ_VHOST:=/}"
timeout: 1s
sleep: 500ms
another:
# See https://www.rabbitmq.com/uri-spec.html on how to encode values.
dsn: 'amqp://guest:password@localhost:5672/vhost?lazy=1&connection_timeout=6'
exchanges:
upload-picture:
type: topic
options:
auto_delete: false
durable: true
internal: false
no_wait: false
logs:
type: topic
options:
no_wait: false
fallback:
type: topic
options:
durable: true
dead_letters:
fallback:
queue:
name: fallback
options:
durable: false
args:
x-dead-letter-exchange: ""
x-message-ttl: 300000
bindings:
-
routing_keys: ["#"]
exchange: fallback
consumers:
upload_picture:
connection: default
workers: 1 # Number of concurrent messages processed. Defaults to 1.
prefetch_count: 10 # Prefetch message count per consumer. Must be greater or equal than workers.
dead_letter: fallback
queue:
name: "upload-picture"
options:
auto_delete: false
durable: false
exclusive: false
no_wait: false
args:
x-dead-letter-exchange: fallback
x-dead-letter-routing-key: upload-picture
bindings:
-
routing_keys:
- 'android.#.upload'
- 'iphone.upload'
exchange: upload-picture
# Consumer options available with default values:
options:
no_ack: false
no_local: false
no_wait: false
exclusive: false
runner:
type: command
options:
path: "testdata/receive.php"