MR::IProto::Cluster - cluster of servers
This class is used to implement balancing between several servers.
Round robin algorithm
Hashing algorithm using CRC32
Ketama algorithm
Balancing algorithms. Possible values are constants: RR, HASH, KETAMA. Or their string analogs: 'round-robin', 'hash-crc32', 'ketama'.
ArrayRef of MR::IProto::Cluster::Server.
Get server from balancing using $key.
$key
Used to set $new timeout value to all servers. If argument is skipped and timeout is equal for all servers then returns it value, if timeout is different then returns undef.
$new
MR::IProto, MR::IProto::Cluster::Server.
To install MR::IProto, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MR::IProto
CPAN shell
perl -MCPAN -e shell install MR::IProto
For more information on module installation, please visit the detailed CPAN module installation guide.