Where to place merge_window using multi-backend in app.config?

Ricardo Mayerhofer ricardo.ekm at gmail.com
Mon Nov 9 14:20:44 EST 2015


Thanks!

On Mon, Nov 9, 2015 at 2:23 PM, Luke Bakken <lbakken at basho.com> wrote:

> Hi Ricardo,
>
> You want to put it it the top-level of your app.config file, in the
> bitcask section:
>
>  {bitcask,
>      [{io_mode,erlang},
>       {merge_window,...},
>       ...,
>       ...
>       ]},
>
>
> http://docs.basho.com/riak/1.4.9/ops/advanced/backends/multi/
>
> --
> Luke Bakken
> Engineer
> lbakken at basho.com
>
> On Mon, Nov 9, 2015 at 6:31 AM, Ricardo Mayerhofer <ricardo.ekm at gmail.com>
> wrote:
>
>> Hi,
>> Riak 1.4 documentation states:
>> "Certain settings, such as Bitcask's merge_window, are set per-node,
>> rather than per-backend, and as such must be set in the top level backend
>> sections of your app.config."
>>
>> However I'm unsure where to put it in app.config file when using
>> multi-backend, given there is no example. Should it be inside riak_kv
>> section? Any help is appreciated. Thanks.
>>
>>  {riak_kv, [
>>
>>             %% Storage_backend specifies the Erlang module defining the
>> storage
>>
>>             %% mechanism that will be used on this node.
>>
>>             {storage_backend, riak_kv_multi_backend},
>>
>>             {multi_backend_default, <<"be_default">>},
>>
>>             {multi_backend, [
>>
>>               {<<"be_leveldb">>, riak_kv_eleveldb_backend, [
>>
>>                   {data_root, "/mnt/riak-data/leveldb"}
>>
>>               ]},
>>
>>                 {<<"be_default">>, riak_kv_bitcask_backend, [
>>
>>                   {data_root, "/mnt/riak-data/bitcask"}
>>
>>               ]}
>>
>>             ]},
>>
>> *           %% Here?*
>>
>> *            {merge_window, {1,3}},*
>>
>> --
>> Ricardo Mayerhofer
>>
>> _______________________________________________
>> riak-users mailing list
>> riak-users at lists.basho.com
>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>>
>>
>


-- 
Ricardo Mayerhofer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20151109/28a208cf/attachment-0002.html>


More information about the riak-users mailing list