riak-cs on riak cluster with multi storage backend

Ali Rıza KELEŞ ali.r.keles at gmail.com
Sun Aug 21 06:19:55 EDT 2016


Hi,

I have a 7 node riak cluster. On each node, riak.conf has values below:

```
search=on
strong_consistency=on
storage_backend=multi
last_write_wins=true
buckets.default.allow_mult=true
buckets.default.r = 3
multi_backend.leveldb_mult.storage_backend=leveldb
multi_backend.bitcask_mult.storage_backend=bitcask
multi_backend.default=bitcask_mult
```

I prefered multi backend because I use different type of buckets. Some
are suitable for leveldb, while some others are for bitcask. All is OK
and everything works well with this configuration.

My problem is that I want to use 3 of these 7 nodes for RiakCS
backend. As documented RiakCS requires its own backend and want me to
define it in advanced.config like below:

```
{riak_kv,
  [
    {add_paths, ["/usr/lib/riak-cs/lib/riak_cs-{{VERSION}}/ebin"]},
    {storage_backend, riak_cs_kv_multi_backend},
    {multi_backend_prefix_list, [{<<"0b:">>, be_blocks}]},
    {multi_backend_default, be_default},
    {multi_backend,
      [
        {be_default, riak_kv_eleveldb_backend,
          [
            {data_root, "/var/lib/riak/leveldb"}
          ]
        },
        {be_blocks, riak_kv_bitcask_backend,
          [
            {data_root, "/var/lib/riak/bitcask"}
          ]
        }
      ]
    },
  ]
}
```

I am not sure, It seems that `storage_backend,
riak_cs_kv_multi_backend` settings overwrites my settings which I
define in riak.conf.

So how should I change my riak.conf settings to fit riakcs and my riak
cluster needing all at once?

Or isn't it possible to have a cluster such that?

Thanks.

--
Ali Rıza Keleş




More information about the riak-users mailing list