Skip to content

dynamic zookeeper config when session expired#14678

Merged
alexey-milovidov merged 2 commits intoClickHouse:masterfrom
sundy-li:patch-2
Sep 17, 2020
Merged

dynamic zookeeper config when session expired#14678
alexey-milovidov merged 2 commits intoClickHouse:masterfrom
sundy-li:patch-2

Conversation

@sundy-li
Copy link
Copy Markdown
Contributor

@sundy-li sundy-li commented Sep 10, 2020

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Changelog category (leave one):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

dynamic reload zookeeper config

Detailed description / Documentation draft:

Is it ok to use the latest zookeeper config if zookeeper session expired? It's for the reason when we scale and shrink the zookeeper clusters, we may need to modify and restart the clickhouse-server. A little painful for the whole clusters.

@robot-clickhouse robot-clickhouse added the pr-improvement Pull request with some product improvements label Sep 10, 2020
@sundy-li sundy-li marked this pull request as draft September 12, 2020 07:34
@sundy-li
Copy link
Copy Markdown
Contributor Author

sundy-li commented Sep 16, 2020

Processes:

  1. update zookeeper's config
    --> ConfigReloader check if it's valid
    --> ConfigReloader call callback function
    --> global_context new zookeeper if ZooKeeperArgs changed

  2. For StorageReplicatedMergeTree And DDLWorker
    zookeeper session expired --> retry to get zookeeper from global_context

@sundy-li sundy-li marked this pull request as ready for review September 16, 2020 05:20
@sundy-li sundy-li force-pushed the patch-2 branch 2 times, most recently from 340687a to 9c274c1 Compare September 16, 2020 06:16
@alexey-milovidov alexey-milovidov merged commit 496df5b into ClickHouse:master Sep 17, 2020
@alexey-milovidov
Copy link
Copy Markdown
Member

Yes, it is very valuable change. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-improvement Pull request with some product improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants