Skip to content

configuring multiple backend #188

@alirizakeles

Description

@alirizakeles

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions