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

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Wed Feb 29 05:10:04 CET 2012


At Wed, 29 Feb 2012 10:19:10 +0800,
Liu Yuan wrote:
> 
> On 02/29/2012 12:48 AM, MORITA Kazutaka wrote:
> 
> > With this patch, you can set the weight of each node with the -v
> > option.
> > 
> > Example:
> > 
> >   $ ./sheep/sheep /store/0 -p 7000 -z 0 -v 1000
> >   $ ./sheep/sheep /store/1 -p 7001 -z 1 -v 2000
> >   $ ./sheep/sheep /store/2 -p 7002 -z 2 -v 3000
> >   $ ./collie/collie cluster format -c 1
> >   using backend simple store
> >   $ ./collie/collie node list
> >   M   Id   Host:Port         V-Nodes       Zone
> >   -    0   10.68.14.1:7000        1000          0
> >   -    1   10.68.14.1:7001        2000          1
> >   -    2   10.68.14.1:7002        3000          2
> >   $ ./collie/collie vdi create image 600M -P
> >   $ ./collie/collie node info
> >   Id      Size    Used    Use%
> >    0      188 GB  100 MB    0%
> >    1      188 GB  200 MB    0%
> >    2      188 GB  304 MB    0%
> >   Total   564 GB  604 MB    0%
> > 
> >   Total virtual image size  600 MB
> > 
> > If you specify zero to the number of virtual nodes, no data will not
> > be stored to the node.
> > 
> 
> 
> I guess 'not' in the 'no data will not' is not intended. Others looks
> good to me.

Oops, thanks for pointing it out!  Applied.

Kazutaka



More information about the sheepdog mailing list