GoLang Zookeeper::setDeterministicConnOrder

request it (216)
GoLang replacement for PHP's Zookeeper::setDeterministicConnOrder [edit | history]

Do you know a GoLang replacement for PHP's Zookeeper::setDeterministicConnOrder? Write it!

PHP Zookeeper::setDeterministicConnOrder

PHP original manual for Zookeeper::setDeterministicConnOrder [ show | php.net ]


(PECL zookeeper >= 0.1.0)

Zookeeper::setDeterministicConnOrderEnable/disable quorum endpoint order randomization


public static bool Zookeeper::setDeterministicConnOrder ( bool $yesOrNo )

If passed a non-zero value, will make the client connect to quorum peers in the order as specified in the zookeeper_init() call. A zero value causes zookeeper_init() to permute the peer endpoints which is good for more even client connection distribution among the quorum peers.



Enable/disable quorum endpoint order randomization.

Return Values

Returns TRUE on success or FALSE on failure.


This method emits PHP error/warning when parameters count or types are wrong or operation fails.


Since version 0.3.0, this method emits ZookeeperException and it's derivatives.



Note: typically this method should NOT be used outside of testing.

Note: Because this is a language construct and not a function, it cannot be called using variable functions.


This function is not (yet) binary safe!

Note: register_globals: important note

As of PHP 4.2.0, the default value for the PHP directive register_globals is off. The PHP community discourages developers from relying on this directive, and encourages the use of other means, such as the superglobals.

See Also