prometheus/prometheus

tsdb benchmarks: create consistent way for periodic commits

Open

#15872 opened on Jan 28, 2025

View on GitHub
 (2 comments) (0 reactions) (1 assignee)Go (64,042 stars) (10,408 forks)batch import
benchmarkcomponent/tsdbhelp wantedpriority/P3

Description

Just out of interest: In createHeadForBenchmarkSelect you added a commit every 1000 appends, here 100k*c appends are done. Is there a technical reason? No reason; I probably copied the 1000 from somewhere but can't find it now. There are many different styles, some of which look like errors, e.g. here. I agree it should be consistent but probably am not going to fix that today.

Originally posted by @bboreham in https://github.com/prometheus/prometheus/pull/15732#discussion_r1904380287

Contributor guide