ahrtr / etcd-defrag

An easier to use and smarter etcd defragmentation tool
MIT License
85 stars 9 forks source link

feat: Add a dry run mode #53

Closed pchaseh closed 2 months ago

pchaseh commented 2 months ago

Currently, there's no way to run etcd-defrag without having it potentially perform defragmentation. Before writing any changes, one might want to observe what the effects will be, for instance when testing defrag rules. These changes add a flag for enabling dry run mode, wherein etcd-defrag will check endpoints, evaluate the defrag rule, but skip compaction and defragmentation.

ahrtr commented 2 months ago

Thanks @pchaseh for the PR, which looks good. Please fix the minor comment.