Sharding
Usage
$ npm install --save sharding
var sharding = ; var nodes = 'shard1' 'shard2' 'shard3';var s = nodes;console; // use sharding option var option = vnode_num: 500 seed: 20150503;s = nodes option;console;
Parameters
- default hash seed: 19861225
- default virtual nodes number: 100
- default hash algorithm: murmur2 64bit
** If your other service want to use the same sharding strategy, the parameters above MUST be the same **