Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
MR::IProto::Cluster(3)User Contributed Perl DocumentatioMR::IProto::Cluster(3)

NAME
       MR::IProto::Cluster - cluster of	servers

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

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.

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.32.0			  2012-03-15		MR::IProto::Cluster(3)

NAME | DESCRIPTION | EXPORTED CONSTANTS | ATTRIBUTES | PUBLIC METHODS | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=MR::IProto::Cluster&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help