Skip to content

fix(operator): enable etcd auto-compaction + raise backend quota#151

Open
kamir wants to merge 1 commit into
KafScale:mainfrom
kamir:pr/etcd-auto-compaction
Open

fix(operator): enable etcd auto-compaction + raise backend quota#151
kamir wants to merge 1 commit into
KafScale:mainfrom
kamir:pr/etcd-auto-compaction

Conversation

@kamir

@kamir kamir commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

Problem

The operator-managed etcd writes one MVCC revision per offset update (one per produce). With no compaction the store reaches the default 2 GiB quota under sustained load and the broker then fails produce with mvcc: database space exceeded.

Fix

Add to the etcd server args: --auto-compaction-mode=periodic, --auto-compaction-retention=5m, and --quota-backend-bytes=4294967296 (4 GiB). Periodic compaction keeps the GC ahead of the broker write rate; the higher quota gives burst headroom.

Test

go build + go test ./pkg/operator/... green.

Part of a small series upstreaming deployment-hardening deltas we currently carry.

The operator-managed etcd takes one revision per offset update (one per
produce). Without compaction the MVCC store reaches the default 2 GiB quota
under sustained load and the broker then fails produce with 'mvcc: database
space exceeded'. Add periodic auto-compaction (5m retention) and raise the
backend quota to 4 GiB so bursts do not trip the quota between compactions.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

1 participant