-
Notifications
You must be signed in to change notification settings - Fork 0
/
OMQS.cfg
112 lines (81 loc) · 2.6 KB
/
OMQS.cfg
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
;------------------- Global Settings -------------------
[Global]
MQURL=amqp://artcm:[email protected]:5672/%%2F?heartbeat_interval=600
RECONNECT_INTERVAL=5
RECONNECT_TIMES=100
[Log]
FOLDER=./log/
LEVEL=INFO
FORMAT=[OMQS] %%(levelname) -5s %%(asctime)s %%(filename) -10s:%%(lineno) -5d: %%(message)s
; 'file', 'stream'
TYPE=stream
; True, False
ROTATION=True
; 'time', 'size'
ROTATION_TYPE=size
; max file size (MB) when ROTATION_TYPE = 'size'
SIZE=5
; max rotation time when ROTATION_TYPE = 'time'
; example:
; 1S - 1 Seconds
; 2M - 2 Minutes
; 3H - 3 Hours
; 4D - 4 Days
; W0 - Weekday 0: Monday
; MD - midnight
ROTATING_TIME=1S
; max rotation file number when ROTATION = True
BACKUP_COUNT=10
; =====================================================================
; The following settings are the defaults for each type of MQ publisher
; Normally you should not change these settings
;
;------------------- Message Broadcast -------------------
[AsyncBroadcaster]
EXCHANGE=omqs.default.asyncBroadcaster.exchange
EXCHANGE_TYPE=fanout
QUEUE=omqs.default.asyncBroadcaster.queue
ROUTING_KEY=omqs.default.asyncBroadcaster.key
[SyncBroadcaster]
EXCHANGE=omqs.default.syncBroadcaster.exchange
EXCHANGE_TYPE=fanout
QUEUE=omqs.default.syncBroadcaster.queue
ROUTING_KEY=omqs.default.syncBroadcaster.key
;------------------- Direct Router -------------------
[AsyncRouter]
EXCHANGE=omqs.default.asyncRouter.exchange
EXCHANGE_TYPE=direct
QUEUE=omqs.default.asyncRouter.queue
ROUTING_KEY=omqs.default.asyncRouter.key
[SyncRouter]
EXCHANGE=omqs.default.syncRouter.exchange
EXCHANGE_TYPE=direct
QUEUE=omqs.default.syncRouter.queue
ROUTING_KEY=omqs.default.syncRouter.key
;------------------- Topic Publisher -------------------
[AsyncPublisher]
EXCHANGE=omqs.default.asyncPublisher.exchange
EXCHANGE_TYPE=topic
QUEUE=omqs.default.asyncPublisher.queue
ROUTING_KEY=omqs.default.asyncPublisher.key
[SyncPublisher]
EXCHANGE=omqs.default.syncPublisher.exchange
EXCHANGE_TYPE=topic
QUEUE=omqs.default.syncPublisher.queue
ROUTING_KEYS=omqs.default.syncPublisher.key
;------------------- Log Worker -------------------
[LogWorker]
;------------------- Event Worker -------------------
[EventWorker]
;------------------- Log Consumer -------------------
[LogConsumer]
EXCHANGE=omqs.exchange.log
EXCHANGE_DURABLE=True
QUEUE=omqs.queue.log
;------------------- Event Consumer -------------------
[EventConsumer]
EXCHANGE=omqs.exchange.event
EXCHANGE_DURABLE=True
QUEUE=omqs.queue.event
QUEUE_DURABLE=True
KEYS=omqs.key.event