Configure multiple riak clients in a cluster

Chathuri Gunawardhana lanch.gunawardhana at gmail.com
Mon Feb 22 20:40:12 EST 2016


I think it should use distributed basho bench configurations as in here
<http://lists.basho.com/pipermail/riak-users_lists.basho.com/2015-March/016951.html>.
But still with that, I have the same throughput results as in one basho
client. I'm not sure what I'm doing wrong. Lets say I have  2 nodes A and B.

In A's config file I have
{remote_nodes, [{'172.31.0.174', 'nodeB'}]}.
{distribute_work, true}.

Then on A I run the following command,

./basho_bench -N basho_bench at 172.31.0.117 -C basho_bench
examples/riakclient.config

here 172.31.0.117 is the A's ip.

Can you please tell me what I'm doing wrong?

Thank you very much!

On Tue, Feb 23, 2016 at 2:14 AM, Chathuri Gunawardhana <
lanch.gunawardhana at gmail.com> wrote:

> 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
>
>


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


More information about the riak-users mailing list