Skip to content

fix(etcd-defrag): lower defrag threshold from 100MB to 50MB free space - #4176

Merged
Tanguille merged 1 commit into
mainfrom
fix/etcd-defrag-lower-threshold
Jul 25, 2026
Merged

fix(etcd-defrag): lower defrag threshold from 100MB to 50MB free space#4176
Tanguille merged 1 commit into
mainfrom
fix/etcd-defrag-lower-threshold

Conversation

@Tanguille

@Tanguille Tanguille commented Jul 25, 2026

Copy link
Copy Markdown
Owner

Reduces the etcd defrag free-space threshold from 100MB to 50MB so defrag runs earlier when DB page count grows but stays under the 50% quota usage trigger. This helps reclaim space more proactively on the control plane etcd instances.

Summary by CodeRabbit

  • Bug Fixes
    • Updated the etcd defragmentation schedule to run when less free database space remains, improving storage maintenance behavior.

@coderabbitai

coderabbitai Bot commented Jul 25, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 78726526-ee92-4484-a0d9-340585dd1311

📥 Commits

Reviewing files that changed from the base of the PR and between 856afb6 and 17a9513.

📒 Files selected for processing (1)
  • kubernetes/apps/kube-system/etcd-defrag/app/helmrelease.yaml
🔗 Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

  • Tanguille/LLMKube (auto-detected)

📝 Walkthrough

Walkthrough

The etcd-defrag HelmRelease lowers the free-space threshold in its defragmentation rule from 100 MiB to 50 MiB and updates the accompanying comment.

Changes

etcd defragmentation

Layer / File(s) Summary
Update defragmentation rule threshold
kubernetes/apps/kube-system/etcd-defrag/app/helmrelease.yaml
The --defrag-rule condition now uses dbSizeFree > 50*1024*1024, with the inline comment updated to reflect the 50 MiB threshold.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: lowering the etcd-defrag free-space threshold from 100MB to 50MB.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/etcd-defrag-lower-threshold

Comment @coderabbitai help to get the list of available commands.

@tanguille-cluster

Copy link
Copy Markdown
@@ spec.jobTemplate.spec.template.spec.containers.app.args @@
# batch/v1/CronJob/kube-system/etcd-defrag
! - one list entry removed:
- - "--defrag-rule=dbQuotaUsage > 0.5 || dbSizeFree > 100*1024*1024"
! + one list entry added:
+ - "--defrag-rule=dbQuotaUsage > 0.5 || dbSizeFree > 50*1024*1024"

@tanguille-cluster

Copy link
Copy Markdown
@@ spec.values.controllers.etcd-defrag.containers.app.args @@
# helm.toolkit.fluxcd.io/v2/HelmRelease/kube-system/etcd-defrag
! - one list entry removed:
- - "--defrag-rule=dbQuotaUsage > 0.5 || dbSizeFree > 100*1024*1024"
! + one list entry added:
+ - "--defrag-rule=dbQuotaUsage > 0.5 || dbSizeFree > 50*1024*1024"

@Tanguille
Tanguille merged commit 6538c1e into main Jul 25, 2026
17 of 18 checks passed
@Tanguille
Tanguille deleted the fix/etcd-defrag-lower-threshold branch July 25, 2026 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant