-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added initial configuration file handling.
- Loading branch information
Showing
3 changed files
with
83 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
-record(erqconf, { | ||
address = {127, 0, 0, 1}, | ||
port = 55255 | ||
}). |