basho-labs/riak-chef-cookbook

configuring multiple backend

Opened this issue · 0 comments

Hi,

I need to configure multiple backends as quoted below, but i haven't seen them in attributes section.

What should I do to have a result like this:

storage_backend = multi

multi_backend.bitcask_mult.storage_backend = bitcask
multi_backend.leveldb_mult.storage_backend = leveldb

multi_backend.bitcask_mult.bitcask.open_timeout = 10s
multi_backend.bitcask_mult.bitcask.sync.strategy = interval
multi_backend.bitcask_mult.bitcask.sync.interval = 30s

multi_backend.default = bitcask_mult

I saw examples for search options, but i am not sure if is it the proper way to configure multiple backend.

Does something like that works?

default['riak']['config']['multi_backend']['bitcask_mult']['storage_backend'] = 'bitcask'
default['riak']['config']['multi_backend']['leveldb_mult']['storage_backend'] = 'leveldb'

default['riak']['config']['multi_backend']['bitcask_mult']['bitcask']['open_timeout'] = '10s'
default['riak']['config']['multi_backend']['bitcask_mult']['bitcask']['sync']['strategy'] = 'interval'
default['riak']['config']['multi_backend']['bitcask_mult']['bitcask']['sync']['interval'] = '30s'

default['riak']['config']['multi_backend']['default'] = 'bitcask_mult'

Thanks.