Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TB-412: Add table config override to set ttl for system log tables #277

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

arran-standish
Copy link
Collaborator

@arran-standish arran-standish commented Apr 3, 2024

Investigating QA clickhouse table sizes lead us to find that the one system table is responsible for just under 500GB worth of data.

image

When querying clickhouse for the corresponding table for that GUID we find that it is the system.part_log.

image

By default clickhouse does not enforce a retention period / TTL on system tables and so these grow to infinity.

As such this PR is here to set a retention period of 30 days for most of the system log related tables.

@arran-standish arran-standish marked this pull request as ready for review April 3, 2024 10:33
@arran-standish arran-standish merged commit bdb9304 into main Apr 5, 2024
10 checks passed
@arran-standish arran-standish deleted the TB-412-clickhouse-system-table-ttl branch April 5, 2024 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants