CompactorConfig contains compaction configuration options
| 125 | |
| 126 | // CompactorConfig contains compaction configuration options |
| 127 | type CompactorConfig struct { |
| 128 | MaxCompactionRange time.Duration `yaml:"compaction_window"` |
| 129 | MaxCompactionObjects int `yaml:"max_compaction_objects"` |
| 130 | MaxBlockBytes uint64 `yaml:"max_block_bytes"` |
| 131 | BlockRetention time.Duration `yaml:"block_retention"` |
| 132 | CompactedBlockRetention time.Duration `yaml:"compacted_block_retention"` |
| 133 | RetentionConcurrency uint `yaml:"retention_concurrency"` |
| 134 | MaxTimePerTenant time.Duration `yaml:"max_time_per_tenant"` |
| 135 | CompactionCycle time.Duration `yaml:"compaction_cycle"` |
| 136 | } |
| 137 | |
| 138 | func (cfg *CompactorConfig) RegisterFlagsAndApplyDefaults(prefix string, f *flag.FlagSet) { |
| 139 | // fill in default values |
nothing calls this directly
no outgoing calls
no test coverage detected