[Feature] Defragment during restoration for compaction with ETCD BR #232
Labels
kind/enhancement
Enhancement, improvement, extension
kind/poc
Proof of concept or prototype
lifecycle/rotten
Nobody worked on this for 12 months (final aging stage)
priority/2
Priority (lower number equals higher priority)
Feature (What you would like to be added):
There is support for compaction sub command in ETCD BR, see here. Compaction sub command actually compact ETCD delta snapshots and turn the snapshots into a full snapshot. To compact the delta snapshots, first a temporary ETCD instance is restored from a full snapshot and subsequent delta snapshots from the backup, then the ETCD DB is compacted, then the DB is defragmented and finally a snapshot of the DB is taken. We want to defragment the ETCD DB few times during the restoration of temporary ETCD from the delta snapshots.
Motivation (Why is this needed?):
There might be quite a number of events in Delta snapshots that are used for restoration. During restoration, those events may consume lots of memory as they may fragment the memory space. So to keep memory usage limited during compaction, few degrament operations are needed during interim restorations.
Approach/Hint to the implement solution (optional):
The text was updated successfully, but these errors were encountered: