blob: 6ff2ab709e2fd9bdb5ab5b4d7e893cc326db8b4f (
plain)
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
|
rpc:
listen: unix:///tmp/rr.sock
server:
command: "php ../../client.php echo pipes"
relay: "pipes"
relay_timeout: "20s"
amqp:
addr: amqp://guest:guest@localhost:5672/
# beanstalk configuration
beanstalk:
addr: tcp://localhost:11300
# amazon sqs configuration
sqs:
key: api-key
secret: api-secret
region: us-west-1
endpoint: http://localhost:9324
declare:
MessageRetentionPeriod: 86400
jobs:
# num logical cores by default
num_pollers: 64
# 1mi by default
pipeline_size: 100000
# worker pool configuration
pool:
num_workers: 10
max_jobs: 0
allocate_timeout: 60s
destroy_timeout: 60s
# list of broker pipelines associated with endpoints
pipelines:
test-local:
driver: ephemeral
priority: 10
pipeline_size: 10000
test-local-2:
driver: ephemeral
priority: 1
pipeline_size: 10000
test-local-3:
driver: ephemeral
priority: 2
pipeline_size: 10000
test-1:
driver: amqp
priority: 1
pipeline_size: 1000000
queue: test-1-queue
exchange: default
exchange_type: direct
routing_key: test
test-2-amqp:
driver: amqp
priority: 2
pipeline_size: 1000
queue: test-2-queue
exchange: default
exchange_type: direct
routing_key: test-2
test-2:
driver: beanstalk
priority: 11
tube: default
pipeline_size: 1000000
test-3:
# priority: 11 - not defined, 10 by default
# driver locality not specified, local by default
driver: sqs
pipeline_size: 1000000
queue: default
# list of pipelines to be consumed by the server, keep empty if you want to start consuming manually
consume: [ "test-local", "test-local-2", "test-local-3", "test-1" ]
|