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

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

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

ricardo.ekm
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
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Reply | Threaded
Open this post in threaded view
|

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

Luke Bakken
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
[hidden email]

On Mon, Nov 9, 2015 at 6:31 AM, Ricardo Mayerhofer <[hidden email]> 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
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com



_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Reply | Threaded
Open this post in threaded view
|

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

ricardo.ekm
Thanks!

On Mon, Nov 9, 2015 at 2:23 PM, Luke Bakken <[hidden email]> 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
[hidden email]

On Mon, Nov 9, 2015 at 6:31 AM, Ricardo Mayerhofer <[hidden email]> 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
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com





--
Ricardo Mayerhofer

_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com