<div>Hi,</div>
<div> </div>
<div>I read codes about hash now and tried to do something. I need some comments to do it properly. </div>
<div> </div>
<div>Strategy 1 (We used now)</div>
<div> </div>
<div>Random tokens per node</div>
<div> </div>
<div>Partition by random token. The partition token is produced by hash function with node IP/port.</div>
<div> </div>
<div>Strategy 2</div>
<div> </div>
<div>
<div>Random tokens per node</div>
<div> </div>
<div>Equal sized partitions. The hash space is divided into Q equally sized partitions. Q is the number of nodes or vnodes.</div>
<div> </div>
<div>Strategy 3</div>
<div> </div>
<div>
<div>Random tokens per node</div>
<div> </div>
<div>Equal sized partitions. When there is node join/leaving, the equal size may be broken to minimize the data movement.</div>
<div> </div>
<div>For strategy 3, need write hash space to disk. I think I can use the object to record the infomation.</div>
<div> </div>
<div>Do we need add the strategy 2/3, or there is better strategies? </div>
<div> </div>
<div>Thanks </div>
<div>Haiti</div>
<div> </div>
<div> </div></div></div>
<div> </div>