* add a run once flag to the compactor to allow it to cleanup index files with a single manual invocation. Useful when using migrate tool.
Signed-off-by: Edward Welch <edward.welch@grafana.com>
* fix lint
Signed-off-by: Edward Welch <edward.welch@grafana.com>
f.IntVar(&cfg.MaxCompactionParallelism,"boltdb.shipper.compactor.max-compaction-parallelism",1,"Maximum number of tables to compact in parallel. While increasing this value, please make sure compactor has enough disk space allocated to be able to store and compact as many tables.")
f.StringVar(&cfg.DeletionMode,"boltdb.shipper.compactor.deletion-mode","whole-stream-deletion",fmt.Sprintf("(Experimental) Deletion mode. Can be one of %v",strings.Join(deletion.AllModes(),"|")))
f.BoolVar(&cfg.RunOnce,"boltdb.shipper.compactor.run-once",false,"Run the compactor one time to cleanup and compact index files only (no retention applied)")
}
// Validate verifies the config does not contain inappropriate values