-
i want to purge all older revisions of keys from etcd db daily only keeping the current revision, what should pass in etcd startup flags to achieve defrag i'm running as a cronjob. |
Beta Was this translation helpful? Give feedback.
Answered by
jmhbnz
Aug 3, 2023
Replies: 1 comment 2 replies
-
Hi @ssengar - Thanks for your question. The flags you will want are Example for daily auto compaction: Refer: |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
jmhbnz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @ssengar - Thanks for your question. The flags you will want are
--auto-compaction-retention
and--auto-compaction-mode
.Example for daily auto compaction:
etcd --auto-compaction-mode=periodic --auto-compaction-retention=24h
Refer: