運行時配置

這些函數(shù)的行為受 php.ini 中的設(shè)置影響。

Zookeeper 配置選項
名字 默認(rèn) 可修改范圍 Changelog
zookeeper.recv_timeout 10000 PHP_INI_ALL  
zookeeper.session_lock 1 PHP_INI_SYSTEM  
zookeeper.sess_lock_wait 150000 PHP_INI_ALL  
有關(guān) PHP_INI_* 樣式的更多詳情與定義,見 配置可被設(shè)定范圍。

這是配置指令的簡短說明。

zookeeper.recv_timeout int

Default the timeout for any ZooKeeper session.

zookeeper.session_lock int

Enable PHP session locking.

zookeeper.sess_lock_wait int

PHP Session spin lock retry wait time in microseconds. Be carefull when setting this value. Valid values are integers, where 0 is interpreted as the default value. Negative values result in a reduces locking to a try lock.