basho/riak_kv — pull request #302 by slfritchie (2012-03-13 23:00:45+00:00)
Title: Add new configuration option for multi backend: multi_backend_prefix_list

Two reviewers, please ... one from Jon's team and one from Kelly's.

%% If the 'multi_backend_prefix_list' list is defined and is non-empty,
%% that list determines bucket name prefixes -> backend names. (Default
%% value = empty list.) For example:
%%
%% {multi_backend_prefix_list, [{<<"c">>, be_1}, {<<"p">>, be_2}]},
%%
%% ... would use the backend named 'be_1' for all buckets that begin
%% with the prefix "c", and use the backend named 'be_2' for all
%% backends that begin with the prefix "p".
%%
%% NOTE: The 'multi_backend_prefix_list' is checked *prior* to
%% checking the bucket-specific configuration in Core's ring.
%% (By definition, bucket-specific configuration must match the
%% entire bucket name.)