Skip to content

Commit

Permalink
feat: adjust comment
Browse files Browse the repository at this point in the history
  • Loading branch information
devanbenz committed Dec 16, 2024
1 parent 98199f0 commit 9f5098b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tsdb/engine/tsm1/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -2167,10 +2167,8 @@ func (e *Engine) compact(wg *sync.WaitGroup) {
level3Groups = level3Groups[1:]
}
case 4:
// From testing, I've found that 100_000 is suitable for when we have a
// single generation with multiple files at max block
// size under 2 GB. In order to further compact these files the points per block needs
// to be increased.
// This is a heuristic. 100_000 points per block is suitable for when we have a
// single generation with multiple files at max block size under 2 GB.
if genLen == 1 {
e.logger.Info("TSM optimized compaction on single generation running, increasing total points be block to 100_000.")
e.Compactor.Size = tsdb.DefaultMaxPointsPerBlock * 100
Expand Down

0 comments on commit 9f5098b

Please sign in to comment.