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

Liu Yuan namei.unix at gmail.com
Thu Mar 1 03:29:32 CET 2012


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

Thanks,
Yuan



More information about the sheepdog mailing list