-
Notifications
You must be signed in to change notification settings - Fork 0
/
erq.conf
55 lines (53 loc) · 1.68 KB
/
erq.conf
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
% erq config for a production system
% copied from Kestrel for now
% Port to listen on
{port, 2345}.
% Interface address to listen on.
{address, {0,0,0,0}}.
%<log>
% filename = "/var/log/kestrel/kestrel.log"
% roll = "daily"
% level = "info"
%</log>
%
%queue_path = "/var/spool/kestrel"
%
%# when to timeout clients (seconds; 0 = never)
%timeout = 0
%
%# when a queue's journal reaches this size, the queue will wait until it
%# is empty, and will then rotate the journal.
%# (this can also be overridden per queue.)
%max_journal_size = 16277216
%
%# maximum amount of a queue to keep in memory. if a queue grows larger than
%# this (in bytes), it will drop into read-behind mode, with only this amount
%# kept in memory.
%# (this can also be overridden per queue.)
%max_memory_size = 134217728
%
%# optional threshold for a forced journal roll.
%# if a journal grows this many times larger than the desired max journal
%# size, the journal will be forcably re-created.
%# for example, if max_journal_size is 16MB, and max_journal_overflow is 10,
%# then if the journal grows larger than 160MB, it will be forcably re-created.
%max_journal_overflow = 10
%
%# per-queue config
%<queues>
% <weather_updates>
% # throw away any weather update that's been waiting in the queue for 1800
% # seconds (30 mins). if a client uses a shorter expiry, that's honored
% # instead.
% max_age = 1800
%
% # refuse SET operations when the queue would exceed this many items.
% max_items = 1500000
% </weather_updates>
%
% <transient_events>
% # don't keep a journal file for this queue. when kestrel exits, any
% # remaining contents will be lost.
% journal off
% </transient_events>
%</queues>