k3s-io / kine

Run Kubernetes on MySQL, Postgres, sqlite, dqlite, not etcd.
Apache License 2.0
1.63k stars 235 forks source link

Make 'compactMinRetain' and 'compactInterval' configurable #230

Open sukumargaonkar opened 11 months ago

sukumargaonkar commented 11 months ago

Usecase: Planning to use kine+postgres to store mostly immutable data (very few updates though out its lifetime).

Current scenario: To keep db size low, kine supports compaction and cleans up old revisions as per below conditions (as described here)

The 'compactInterval' and 'compactMinRetain' both are constants and thus cannot be configures

Feature Request: Make 'compactMinRetain' configurable. When dealing with rarely updating data, setting the 'compactMinRetain' value low would help keep db size low