Question about RiakCluster - Java client - 2.x

2016-11-21 Thread Konstantin Kalin
I'm currently migrating Java client from 1.4 to 2.1 and I have a question about RiakCluster class. We hide Riak Java API by our interface since we use multiple backends and Riak is one of them. Let's say I have two independent business activities that makes calls to Riak cluster. Both activities

Re: Upgrading from 1.2.1 to 2.1.1

2015-06-02 Thread Konstantin Kalin
are outlined in the documentation here: http://docs.basho.com/riak/latest/upgrade-v20/ Thanks to CMJ for reminding me of these details. Matt Brender | Developer Advocacy Lead Basho Technologies t: @mjbrender On Mon, Jun 1, 2015 at 12:55 PM, Konstantin Kalin konstantin.ka...@gmail.com wrote

Upgrading from 1.2.1 to 2.1.1

2015-06-01 Thread Konstantin Kalin
Just want to check if I understand the documentation correctly. In order to upgrade my cluster I from version 1.2.1 to 2.1.1 I need to do two steps of the rolling upgrade: 1) 1.2.1 -1.4.12 2) 1.4.12 - 2.1.1 Is it correct? I'm using only bitcask backend only and I think one bucket has about

Re: Load balancer

2014-02-02 Thread Konstantin Kalin
Sorry jumping into the discussion. What is a best way to monitor Riak node health? Most loadbalancer uses HTTP request to check if a node is alive. Currently we use Riak Java client to load balance requests to Riak. The issue is if a node gets removed or added all Java servers need to update

Re: Load balancer

2014-02-02 Thread Konstantin Kalin
nodes' health. Metrics are available through the HTTP API via the /stats endpoint. For details, see: http://docs.basho.com/riak/latest/ops/running/stats-and-monitoring/ Cheers, Roberto Aloi @robertoaloi On Sun, Feb 2, 2014 at 6:23 PM, Konstantin Kalin konstantin.ka...@gmail.com wrote

Re: Load balancer

2014-02-02 Thread Konstantin Kalin
/references/http/ping/ [2] http://docs.basho.com/riak/latest/dev/references/http/fetch-object/ Thanks, - Roach On Sun, Feb 2, 2014 at 10:23 AM, Konstantin Kalin konstantin.ka...@gmail.com wrote: Sorry jumping into the discussion. What is a best way to monitor Riak node health? Most

Re: Java client blocked at shutdown?

2013-11-05 Thread Konstantin Kalin
You need to call shutdown method of Riak client when you are stopping your application. Thank you, Konstantin. On Nov 5, 2013, at 5:06, Guido Medina guido.med...@temetra.com wrote: Sorry, I meant stopping Tomcat from shutting down properly...I must have been thinking of some FPS night

Re: Java client blocked at shutdown?

2013-11-05 Thread Konstantin Kalin
(riak-stream-timeout-thread, true); ... ... } Guido. On 05/11/13 13:29, Konstantin Kalin wrote: You need to call shutdown method of Riak client when you are stopping your application. Thank you, Konstantin. On Nov 5, 2013, at 5:06, Guido Medina guido.med...@temetra.com wrote

bitcask issue - write_locked

2013-10-31 Thread Konstantin Kalin
We use riak 1.2.1 in production. Recently we had two incidents when a Riak node (out of 27 nodes) was in limbo state: riak-core worked fine but bitcask backend was constantly crashing (see below). Both times it happened immediately after Riak was restarted due to Linux reboot. I looked at the

Re: RFC: Let's Make Riak-Core Easier to Use

2013-10-29 Thread Konstantin Kalin
I have built a production like prototype using riak-core. My major issue was luck of documentation (out-dated or missing aspects). So I spent about 5-7 days in reading source code and writing tests. I think a simple sequence digram of hinted hand-off would answer on many my questions. Please

Re: Storing JSON via Erlang Client

2013-10-17 Thread Konstantin Kalin
I used mochijson2 and ejson. I found that ejson works faster since it's built using NIF. But both libraries use tuple wrapping around proplists. Thus I developed a few wrapper functions to manipulate with fields. Thank you, Konstantin. On Thu, Oct 17, 2013 at 9:08 AM, Eric Redmond

Re: Erlang PB client

2013-07-15 Thread Konstantin Kalin
On Wed, Jul 10, 2013 at 5:46 PM, Konstantin Kalin konstantin.ka...@gmail.com wrote: Oops… was looking at wrong column. Sorry and thanks for the advice. Thank you, Konstantin. On Jul 10, 2013, at 3:41 PM, Jeremy Ong wrote: The X there indicates that it does not support connection pooling out

Erlang PB client

2013-07-10 Thread Konstantin Kalin
Looking at http://docs.basho.com/riak/latest/references/Client-Libraries/ I see that Erlang riak client should support Cluster connections/pools. But looking at Erlang riak client source code I would say that it doesn't support Cluster connections/pools out of box. And I have to develop my own

Re: Erlang PB client

2013-07-10 Thread Konstantin Kalin
with riakc_pb_socket) and riakpool (which pulls in riak-erlang-client as a dependency). On Wed, Jul 10, 2013 at 3:33 PM, Konstantin Kalin konstantin.ka...@gmail.com wrote: Looking at http://docs.basho.com/riak/latest/references/Client-Libraries/ I see that Erlang riak client should

Re: riak_core node down question

2013-07-04 Thread Konstantin Kalin
, 2013 at 11:15 PM, Konstantin Kalin konstantin.ka...@gmail.com wrote: I'm playing with riak_core to build a prototype. Thanks for giving such powerful framework to build a distributed app :) Looking at source code and examples I learn how to handle hinted handoff(s). It works really nice

Re: Riak-CS-Control

2013-07-02 Thread Konstantin Kalin
Would the changing of IP require dropping of the ring-data which had been created for 127.0.0.1? If I remember correctly it will... Thank you, Konstantin. On Jul 2, 2013, at 6:42 PM, Christopher Meiklejohn wrote: Hi Guy, It appears that when you ran 'riak console', you already had an

Re: Riak-CS-Control

2013-07-02 Thread Konstantin Kalin
If you ran riak stop after you already updated app.configvm.config by new IPname the riak will not stop. Thus it will stay hanging around. You need to kill it. To change IP or node name see http://docs.basho.com/riak/latest/cookbooks/Basic-Cluster-Setup/ Pay attention on Note on changing

Re: Riak-CS-Control

2013-07-02 Thread Konstantin Kalin
Meiklejohn Software Engineer Basho Technologies, Inc. On Tuesday, July 2, 2013 at 9:48 PM, Konstantin Kalin wrote: Would the changing of IP require dropping of the ring-data which had been created for 127.0.0.1? If I remember correctly it will... Thank you, Konstantin. On Jul 2

riak_core node down question

2013-07-02 Thread Konstantin Kalin
I'm playing with riak_core to build a prototype. Thanks for giving such powerful framework to build a distributed app :) Looking at source code and examples I learn how to handle hinted handoff(s). It works really nice. But I wondered how to handle a node crash (when a node goes down