-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50424 from tonickkozlov/tonickkozlov/zk-session-l…
…ifetime Introduce fallback ZooKeeper sessions
- Loading branch information
Showing
15 changed files
with
229 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
23 changes: 23 additions & 0 deletions
23
tests/integration/test_zookeeper_fallback_session/configs/remote_servers.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<clickhouse> | ||
<remote_servers> | ||
<test_cluster> | ||
<shard> | ||
<replica> | ||
<host>node1</host> | ||
<port>9000</port> | ||
</replica> | ||
|
||
<replica> | ||
<host>node2</host> | ||
<port>9000</port> | ||
</replica> | ||
|
||
<replica> | ||
<host>node3</host> | ||
<port>9000</port> | ||
</replica> | ||
|
||
</shard> | ||
</test_cluster> | ||
</remote_servers> | ||
</clickhouse> |
23 changes: 23 additions & 0 deletions
23
tests/integration/test_zookeeper_fallback_session/configs/zookeeper_load_balancing.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<clickhouse> | ||
<zookeeper> | ||
<!--<zookeeper_load_balancing> random / in_order / nearest_hostname / first_or_random / round_robin </zookeeper_load_balancing>--> | ||
<zookeeper_load_balancing>in_order</zookeeper_load_balancing> | ||
<fallback_session_lifetime> | ||
<min>2</min> | ||
<max>4</max> | ||
</fallback_session_lifetime> | ||
<node index="1"> | ||
<host>zoo1</host> | ||
<port>2181</port> | ||
</node> | ||
<node index="2"> | ||
<host>zoo2</host> | ||
<port>2181</port> | ||
</node> | ||
<node index="3"> | ||
<host>zoo3</host> | ||
<port>2181</port> | ||
</node> | ||
<session_timeout_ms>500</session_timeout_ms> | ||
</zookeeper> | ||
</clickhouse> |
Oops, something went wrong.