Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4c6d6df6d7
Fetching contributors…

Cannot retrieve contributors at this time

73 lines (63 sloc) 3.028 kb
{application, bitcask,
[
{description, ""},
{vsn, "1.5.1"},
{modules, []},
{registered, []},
{applications, [
kernel,
stdlib
]},
{mod, {bitcask_app, []}},
{env, [
%% Default max file size (in bytes)
{max_file_size, 16#80000000}, % 2GB default
%% Wait time to open a keydir (in seconds)
{open_timeout, 4},
%% Strategies available for syncing data to disk:
%% * none - let the O/S decide
%% * o_sync - use the O_SYNC flag to sync each write
%% * {seconds, N} - call bitcask:sync/1 every N seconds
%%
%% Note that for the {seconds, N} strategy, it is up to the
%% API caller to execute the call on the interval. This config
%% option is (currently) a convenient placeholder for calling
%% applications.
{sync_strategy, none},
%% Require the CRC to be present at the end of hintfiles.
%% Bitcask defaults to a backward compatible mode where
%% old hint files will still be accepted without them.
%% It is safe to set this true for new deployments and will
%% become the default setting in a future release.
{require_hint_crc, false},
%% Merge window. Span of hours during which merge is acceptable.
%% * {Start, End} - Hours during which merging is permitted
%% * always - Merging is always permitted (default)
%% * never - Merging is never permitted
{merge_window, always},
%% Merge trigger variables. Files exceeding ANY of these
%% values will cause bitcask:needs_merge/1 to return true.
%%
{frag_merge_trigger, 60}, % >= 60% fragmentation
{dead_bytes_merge_trigger, 536870912}, % Dead bytes > 512 MB
%% Merge thresholds. Files exceeding ANY of these values
%% will be included in the list of files marked for merging
%% by bitcask:needs_merge/1.
%%
{frag_threshold, 40}, % >= 40% fragmentation
{dead_bytes_threshold, 134217728}, % Dead bytes > 128 MB
{small_file_threshold, 10485760}, % File is < 10 MB
%% Fold keys thresholds. max_fold_age will reuse the keydir if
%% another fold was started less than max_fold_age ago and there
%% were less than max_fold_puts updates. Otherwise it will
%% wait until all current fold keys complete and then start.
%% Set either option to -1 to disable.
{max_fold_age, -1}, % age in micro seconds (unlimited)
{max_fold_puts, 0}, % maximum number of updates
%% Data expiration can be caused by setting this to a
%% Data expiration can be caused by setting this to a
%% positive value. If so, items older than the value
%% will be discarded.
{expiry_secs, -1}
]}
]}.
Jump to Line
Something went wrong with that request. Please try again.