I left out the <<>> around the backend names. My bad. After fixing it, multi backend support seems to be working.
From: Lei Gu <[email protected]<mailto:[email protected]>> Date: Wednesday, September 26, 2012 1:30 PM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: Problem getting Riak multi-backend working We want to explore Riak multi backend support for the following scenario, configuration data stored in Level DB, while some transit data will be stored in memory and expires after a certain time. Unfortunately I have the toughest time getting multi-backend support to work, every time I tried to access my non-default backend. Here is the configuration around multi-backend, {riak_kv, [ %% Storage_backend specifies the Erlang module defining the storage %% mechanism that will be used on this node. %%{storage_backend, riak_kv_bitcask_backend}, %%{storage_backend, riak_kv_eleveldb_backend}, %%{storage_backend, riak_kv_memory_backend}, {storage_backend, riak_kv_multi_backend}, {multi_backend_default, "memory_mult"}, {multi_backend, [ %% Here's where you set the individual multiplexed backends {"eleveldb_mult", riak_kv_eleveldb_backend,[] }, {"memory_mult", riak_kv_memory_backend, [ {ttl, 10}, {max_memory, 512} ] } ]}, When I tried to access "eleveldb_mult, I am seeing the following exception in the log file, 2012-09-26 10:27:54.041 [error] <0.892.0> gen_fsm <0.892.0> in state active terminated with reason: bad return value: {riak_kv_multi_backend,undefined_backend,<<"eleveldb_mult">>} 2012-09-26 10:27:54.044 [error] <0.892.0> CRASH REPORT Process <0.892.0> with 0 neighbours crashed with reason: bad return value: {riak_kv_multi_backend,undefined_backend,<<"eleveldb_mult">>} 2012-09-26 10:27:54.045 [error] <0.877.0> gen_fsm <0.877.0> in state active terminated with reason: bad return value: {riak_kv_multi_backend,undefined_backend,<<"eleveldb_mult">>} 2012-09-26 10:27:54.046 [error] <0.94.0> Supervisor riak_core_vnode_sup had child undefined started with {riak_core_vnode,start_link,undefined} at <0.892.0> exit with reason bad return value: {riak_kv_multi_backend,undefined_backend,<<"eleveldb_mult">>} in context child_terminated 2012-09-26 10:27:54.048 [error] <0.907.0> gen_fsm <0.907.0> in state active terminated with reason: bad return value: {riak_kv_multi_backend,undefined_backend,<<"eleveldb_mult">>} 2012-09-26 10:27:54.049 [error] <0.877.0> CRASH REPORT Process <0.877.0> with 0 neighbours crashed with reason: bad return value: {riak_kv_multi_backend,undefined_backend,<<"eleveldb_mult">>} 2012-09-26 10:27:54.050 [error] <0.907.0> CRASH REPORT Process <0.907.0> with 0 neighbours crashed with reason: bad return value: {riak_kv_multi_backend,undefined_backend,<<"eleveldb_mult">>} 2012-09-26 10:27:54.051 [error] <0.94.0> Supervisor riak_core_vnode_sup had child undefined started with {riak_core_vnode,start_link,undefined} at <0.877.0> exit with reason bad return value: {riak_kv_multi_backend,undefined_backend,<<"eleveldb_mult">>} in context child_terminated 2012-09-26 10:27:54.052 [error] <0.94.0> Supervisor riak_core_vnode_sup had child undefined started with {riak_core_vnode,start_link,undefined} at <0.907.0> exit with reason bad return value: {riak_kv_multi_backend,undefined_backend,<<"eleveldb_mult">>} in context child_terminated Any insights will be greatly appreciated. Thanks. -- Lei ________________________________ The information contained in this electronic mail transmission is intended only for the use of the individual or entity named in this transmission. If you are not the intended recipient of this transmission, you are hereby notified that any disclosure, copying or distribution of the contents of this transmission is strictly prohibited and that you should delete the contents of this transmission from your system immediately. Any comments or statements contained in this transmission do not necessarily reflect the views or position of GSI Commerce, Inc. or its subsidiaries and/or affiliates. _______________________________________________ riak-users mailing list [email protected] http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
