DOKK / manpages / debian 12 / libmr-tarantool-perl / MR::IProto::Cluster.3pm.en
MR::IProto::Cluster(3pm) User Contributed Perl Documentation MR::IProto::Cluster(3pm)

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.
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.

MR::IProto, MR::IProto::Cluster::Server.

2020-07-21 perl v5.30.3