fix(clickstack): raise system log table TTL to 30 days to match the operator default - #284
marcleblanc2 wants to merge 1 commit into
Conversation
…perator default ClickHouse/clickhouse-operator#329 merged with a systemLogsTTLDays field that defaults to 30 days on new clusters. The chart pinned 7 days via extraConfig; align it so chart users get the same retention as operator users, while still covering older operators and existing clusters where the operator default does not apply. Co-authored-by: Amp <amp@ampcode.com> Amp-Thread-ID: https://ampcode.com/threads/T-01a0d8fe-2603-7201-b5a0-0be3c811d943
🦋 Changeset detectedLatest commit: 3a9027f The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
@wrn14897 follow-up to #275: the operator side (ClickHouse/clickhouse-operator#329) merged with a 30 day default, so this aligns the chart. Could you take a look when you have a minute? |
Deep ReviewScope: Intent: Raise the ClickHouse system-log-table TTL from 7 to 30 days across the five The change is small, internally consistent, and renders correctly through 🟡 P2 — recommended
🔵 P3 nitpicks (3)
Reviewers (5): correctness, testing, maintainability, project-standards, data-migrations. Testing gaps: No finding blocks merge automatically. A maintainer will expect P0/P1 findings in code this PR changes to be fixed; P2/P3 are your call -- fix or reply. Never fix findings about surrounding code here; reply instead. Do not widen the PR. |
Why
Follow-up to #275. That PR pinned a 7 day TTL on the five system log tables to match what ClickHouse/clickhouse-operator#329 proposed at the time. #329 merged with a
spec.settings.systemLogsTTLDaysfield instead, which the operator's webhook defaults to 30 days on new clusters. Chart and operator users should get the same retention.What
charts/clickstack/values.yaml:INTERVAL 7 DAY→INTERVAL 30 DAYonquery_log,part_log,text_log,metric_log,asynchronous_metric_log.extraConfigapproach rather than switching tosystemLogsTTLDays: it works on operator versions that predate the field and on clusters that already exist, where the operator default is not applied.patchchangeset with the samesystem.<table>_0upgrade note as fix(clickstack): bound ClickHouse server log and system log table growth on the data volume #275.helm unittest charts/clickstack: 254/254.helm templaterenders five 30 day TTLs.