ShardedKV::Continuum::CHash - Continuum implementation based on Algorithm::ConsistentHash::CHash
version 0.01
use ShardedKV; use ShardedKV::Continuum::CHash; my $skv = ShardedKV->new( continuum => ShardedKV::Continuum::CHash->new( from => { ids => [qw(node1 node2 node3 node4)], replicas => 200, } ), storages => {...}, ); ... $skv->extend({ids => [qw(node5 node6 node7)]});
A continuum implementation based on libchash consistent hashing. See Algorithm::ConsistentHash::CHash.
Algorithm::ConsistentHash::CHash
ShardedKV
ShardedKV::Continuum
ShardedKV::Continuum::Ketama
Algorithm::ConsistentHash::Ketama
Steffen Mueller <smueller@cpan.org>
This software is copyright (c) 2013 by Steffen Mueller.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install ShardedKV::Continuum::CHash, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ShardedKV::Continuum::CHash
CPAN shell
perl -MCPAN -e shell install ShardedKV::Continuum::CHash
For more information on module installation, please visit the detailed CPAN module installation guide.