Configure multiple riak clients in a cluster

Chathuri Gunawardhana lanch.gunawardhana at gmail.com
Mon Feb 22 20:14:41 EST 2016


I didn't get it clearly. Can you please provide me an example?

Thank you very much!

On Tue, Feb 23, 2016 at 2:07 AM, Christopher Meiklejohn <
christopher.meiklejohn at gmail.com> wrote:

> Your client is registering with the name in the config file, and that name
> can only be used once.
>
> You need to have each client use a different name.
>
> {riakclient_mynode, ['riak_bench at 172.31.0.117', longnames]}.
>
>
> Christopher
>
> Sent from my iPhone
>
> On Feb 22, 2016, at 15:46, Chathuri Gunawardhana <
> lanch.gunawardhana at gmail.com> wrote:
>
> Hi All,
>
> I'm using distributed version of riak client (here
> <https://github.com/basho/basho_bench/blob/master/examples/riakclient.config>).
> I could configure one riak client for the cluster. But when I try to start
> 2, one of them crashes (error suggests that there is a global name
> conflict). Can you please suggest me how I can run multiple riak clients on
> my cluster?
>
> My configurations are shown below. (Same in both nodes, other than the
> riakclient_mynode parameter)
>
> {mode, max}.
>
> {duration,5} .
>
> {concurrent,30}.
>
> {operations, [{put,1},{update,1},{get,1}]}.
>
> {driver, basho_bench_driver_riakclient}.
>
> {code_paths, ["/root/Riak/riak/rel/riak/lib/riak_kv-2.1.1-36-g5f58f01",
>               "/root/Riak/riak/rel/riak/lib/riak_core-2.1.5"]}.
>
> {key_generator, {int_to_bin_bigendian, {uniform_int, 350}}}.
>
> {value_generator, {fixed_bin, 100}}.
>
> {riakclient_nodes, ['riak at 172.31.0.106']}.
>
> {riakclient_mynode, ['riak_bench at 172.31.0.117', longnames]}.
>
>
> {riakclient_replies, 1}.
>
> Thank you very much!
>
> --
> Chathuri Gunawardhana
>
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>


-- 
Chathuri Gunawardhana
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20160223/18b27427/attachment-0002.html>


More information about the riak-users mailing list