-
Notifications
You must be signed in to change notification settings - Fork 1
/
config-sample.yaml
42 lines (40 loc) · 908 Bytes
/
config-sample.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
---
dispatcher:
consumerConcurrency: 4 # Number of go routines consuming messages from Queue
storageWorkers: 40 # Number of go routines sending messages to storage
consumer:
address: 127.0.0.1
port: 5672
requestedHeartbeat: 25s
username: guest
password: guest
# virtualHost: my.virtualhost # optional
queue:
name: my.queue
routingKey: my.routeKey
durable: true
autoDelete: false
exclusive: false
autoACK: false
prefetchCount: 500
prefetchSize: 0
args:
x-message-ttl: 180000
x-dead-letter-exchange: retry.exchange
exchange:
name: my.exchange
type: topic
durable: true
autoDelete: false
database:
address: 127.0.0.1
port: 5432
username: postgres
password: mysecretpassword
database: postgres
sslMode: disable
maxPingTimeOut: 1s
maxQueryTimeOut: 10s
connMaxLifetime: 0
maxIdleConns: 5
maxOpenConns: 100