Skip to content

If one of the replica is down, how long operation log can keep in ZooKeeper? #28513

Answered by tavplubix
wxl356 asked this question in Q&A
Discussion options

You must be logged in to vote

How long the operation log will keep in ZK?

It's controlled by the following settings:

:) select * from system.merge_tree_settings where name in ('min_replicated_logs_to_keep', 'max_replicated_logs_to_keep') \G

Row 1:
──────
name:        max_replicated_logs_to_keep
value:       1000
changed:     0
description: How many records may be in log, if there is inactive replica. Inactive replica becomes lost when when this number exceed.
type:        UInt64

Row 2:
──────
name:        min_replicated_logs_to_keep
value:       10
changed:     0
description: Keep about this number of last records in ZooKeeper log, even if they are obsolete. It doesn't affect work of tables: used only to diagnose …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by leticiawebb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants