[Sheepdog] [PATCH] sheep: support specifying the initial count of virtual nodes

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Fri Mar 2 05:49:55 CET 2012


At Thu, 01 Mar 2012 10:29:32 +0800,
Liu Yuan wrote:
> 
> On 02/29/2012 06:32 PM, Chris Webb wrote:
> 
> > MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp> writes:
> > 
> >> If you specify zero to the number of virtual nodes, no data will not
> >> be stored to the node.
> > 
> > This looks great to me: gives us a nice way to deal with varying disk sizes
> > across a cluster.
> > 
> > If I set -v 0, presumably the store directory is completely unused; would
> > this allow me to create a forward-only sheep, or would -v 0 need additional
> > special-casing for that to work right?
> > 
> 
> I think -v 0 would serve your purpose as a forward-only sheep. -v 0
> means no virtual nodes of this node will be created on the consistent
> hash ring, so 'data object' in the ring would never have the chance to
> be spread on the specified node with '-v 0'.

Yes.  Note that the forward-only node with '-v 0' still needs a small
storage to store a configuration file and epochs.

Thanks,

Kazutaka



More information about the sheepdog mailing list