Update basho_bench driver to recognize config flags
Also, add default values to template configuration
This commit is contained in:
parent
b6955c9a75
commit
181b1debb8
2 changed files with 9 additions and 3 deletions
|
@ -59,6 +59,7 @@ new(_Id) ->
|
|||
%% Get the target directory
|
||||
Dir = basho_bench_config:get(hanoidb_dir, "."),
|
||||
Filename = filename:join(Dir, "test.hanoidb"),
|
||||
Config = basho_bench_config:get(hanoidb_flags, []),
|
||||
|
||||
%% Look for sync interval config
|
||||
case basho_bench_config:get(hanoidb_sync_interval, infinity) of
|
||||
|
@ -69,7 +70,7 @@ new(_Id) ->
|
|||
end,
|
||||
|
||||
%% Get any bitcask flags
|
||||
case hanoidb:open(Filename) of
|
||||
case hanoidb:open(Filename, Config) of
|
||||
{error, Reason} ->
|
||||
?FAIL_MSG("Failed to open hanoidb in ~s: ~p\n", [Filename, Reason]);
|
||||
{ok, FBTree} ->
|
||||
|
|
|
@ -21,6 +21,11 @@
|
|||
"../hanoidb/deps/ebloom/ebin"
|
||||
]}.
|
||||
|
||||
{bitcask_dir, "/tmp/hanoidb.bench"}.
|
||||
% {hanoidb_dir, "/tmp/hanoidb.bench"}.
|
||||
|
||||
{bitcask_flags, [o_sync]}.
|
||||
{hanoidb_flags, [{expiry_secs, 0},
|
||||
{sync_strategy, none}, %% |sync|{seconds, N}
|
||||
{compress, none}, %% |gzip
|
||||
{page_size, 8192}, %
|
||||
{merge_strategy, fast} %% |predictable
|
||||
]}.
|
||||
|
|
Loading…
Reference in a new issue