On 12 November 2016 at 00:08, Johnny Tan <johnnyd...@gmail.com> wrote:
> When doing a node replace (http://docs.basho.com/riak/1. > 4.12/ops/running/nodes/replacing/), after commit-ing the plan, how does > the cluster handle reads/writes? Do I include the new node in my app's > config as soon as I commit, and let riak internally handle which node(s) > will do the reads/writes? Or do I wait until the ringready on the new node > before being able to do reads/writes to it? > > johnny > > Hi Johnny, As soon as a node has been joined to the cluster it is capable of taking on requests. `riak-admin ringready` returns true after a join or leave operation when the new ring state has been communicated successfully to all nodes in the cluster. During a replacement operation, the leaving node will hand off [0] all its partitions to the joining node. Both nodes can handle requests during this phase and store data in the partitions they own. Once the leaving node has handed off all its partitions, it will automatically shut down. Please keep this in mind when configuring your clients or load balancers. Clients should deal with nodes being temporarily or permanently unavailable. Kind Regards, Magnus [0]: http://docs.basho.com/riak/kv/2.1.4/using/reference/handoff/ -- Magnus Kessler Client Services Engineer Basho Technologies Limited Registered Office - 8 Lincoln’s Inn Fields London WC2A 3BP Reg 07970431
_______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com