riak 2 - how much space is needed for online resizing?
jwest at basho.com
Tue Sep 2 17:17:12 EDT 2014
A ring resize won't make things much better. It is intended to change the
number of partitions from 64, in your case, to 32 or 256, for example.
While these rings sizes may have better distributions with 5 nodes they
will not be perfect. The quickest solution using the existing cluster and
settings would be to add 3 nodes (for a total of 8) or remove one (for a
total of 4) -- we don't suggest the latter, you can read more about why in
, but decide based on your application's needs. There are a few other
options but they are more complicated. Somewhat related, since you are
using a pre-build, is this development/test data? Do you have the option of
re-building the cluster? If you would like to stick with 5 nodes and can
re-build the cluster from scratch, another alternative is to try "claim_v3"
(the default is v2). See wants_claim_fun and choose_claim_fun in .
You'll want to set these to wants_claim_v3 and choose_claim_v3,
repsectively, in the riak_core section of your advanced.config. It may
result in a better, albeit not perfect, balance.
To answer your original question about capacity, a conservative rule is,
below 50% capacity on every node.
I would also suggest upgrading to a more recent build.
On Tue, Sep 2, 2014 at 5:21 AM, Max Vernimmen <m.vernimmen at comparegroup.eu>
> We have 5 riak nodes running riak-2.0.0pre20-1.el6.x86_64 with a ringsize
> of 64. We would like to do a ring resize because the distribution of
> content is very uneven (64/5 has a left over of 4 parts that all end up on
> the same node). The documentation says riak-2 can do this online (
> http://docs.basho.com/riak/2.0.0/ops/advanced/ring-resizing/) and warns
> 'Make sure that you have sufficient storage to complete the resize
> Could anyone tell me how much is ‘sufficient’?
> And in addition, some of the nodes in the cluster have more free space
> available than other nodes (some are at 40% used disk, others at 60%). Is
> the location of the space important?
> Thank you,
> riak-users mailing list
> riak-users at lists.basho.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the riak-users