logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

MR::IProto::Cluster - cluster of servers

Attributes

       balance
           Balancing  algorithms.   Possible  values  are constants: RR, HASH, KETAMA.  Or their string analogs:
           'round-robin', 'hash-crc32', 'ketama'.

       servers
           ArrayRef of MR::IProto::Cluster::Server.

Description

       This class is used to implement balancing between several servers.

Exported Constants

       RR  Round robin algorithm

       HASH
           Hashing algorithm using CRC32

       KETAMA
           Ketama algorithm

Name

       MR::IProto::Cluster - cluster of servers

Public Methods

       server( $key? )
           Get server from balancing using $key.

       timeout( $new? )
           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.

See Also

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

perl v5.30.3                                       2020-07-21                           MR::IProto::Cluster(3pm)

See Also