go-graphite / graphite-ch-optimizer

Daemon to optimize GraphiteMergeTree automatically
MIT License
26 stars 8 forks source link

Option --optimize-interval is confusive #8

Closed Felixoid closed 4 years ago

Felixoid commented 4 years ago

It tells, that The active partitions won't be optimized more than once per this interval, seconds, but:

lexx-bright commented 2 years ago

@Felixoid, to comply with the statement

-- modified_at < (now() - @Interval): we want to merge active partitions only once per interval, -- so do not touch partitions with current active inserts

shouldn't p.modification_time be maxed?

Felixoid commented 2 years ago

If it would be max, we won't touch partitions with rare inserts. The idea is having them merged eventually too, but at most once per interval.