Whitespace fixes (s/tab/space/g) and added two new configuration settings
from the 1.5.0 release. Checkpoint every second, dump stats every 30 sec.
This commit is contained in:
parent
85fadeec70
commit
3543b42df8
2 changed files with 61 additions and 56 deletions
|
@ -110,11 +110,13 @@ start(Partition, Config) ->
|
|||
end,
|
||||
ConnectionOpts = [Config,
|
||||
{create, true},
|
||||
{sync, false},
|
||||
{logging, true},
|
||||
{transactional, true},
|
||||
{session_max, SessionMax},
|
||||
{cache_size, size_cache(Config)},
|
||||
{sync, false}
|
||||
{checkpoint, [{wait, 1}]}, % sec
|
||||
{statistics_log, [{wait, 30}]} % sec
|
||||
%% {verbose,
|
||||
%% ["block", "shared_cache", "ckpt", "evict",
|
||||
%% "evictserver", "fileops", "hazard", "lsm",
|
||||
|
|
|
@ -272,6 +272,7 @@ fold(Cursor, Fun, Acc, {ok, Key, Value}) ->
|
|||
config_types() ->
|
||||
[{block_compressor, string},
|
||||
{cache_size, string},
|
||||
{checkpoint, map},
|
||||
{create, bool},
|
||||
{direct_io, map},
|
||||
{drop, list},
|
||||
|
@ -293,10 +294,12 @@ config_types() ->
|
|||
{multiprocess, bool},
|
||||
{name, string},
|
||||
{session_max, integer},
|
||||
{statistics_log, map},
|
||||
{sync, bool},
|
||||
{target, list},
|
||||
{transactional, bool},
|
||||
{verbose, map}].
|
||||
{verbose, map},
|
||||
{wait, integer}].
|
||||
|
||||
config_value(Key, Config, Default) ->
|
||||
{Key, app_helper:get_prop_or_env(Key, Config, wterl, Default)}.
|
||||
|
|
Loading…
Reference in a new issue