mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
zookeeper: added config description [#METR-10172]
This commit is contained in:
parent
420d5696ea
commit
4384ba0009
@ -20,6 +20,19 @@ class ZooKeeper
|
||||
public:
|
||||
ZooKeeper(const std::string & hosts, int32_t sessionTimeoutMs = DEFAULT_SESSION_TIMEOUT, WatchFunction * watch = nullptr);
|
||||
|
||||
/** конфиг вида
|
||||
<zookeeper>
|
||||
<node>
|
||||
<host>example1</host>
|
||||
<port>2181</port>
|
||||
</node>
|
||||
<node>
|
||||
<host>example2</host>
|
||||
<port>2181</port>
|
||||
</node>
|
||||
<session_timeout_ms>30000</session_timeout_ms>
|
||||
</zookeeper>
|
||||
*/
|
||||
ZooKeeper(const Poco::Util::LayeredConfiguration & config, const std::string & config_name,
|
||||
WatchFunction * watch = nullptr);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user