mirror of https://github.com/prometheus/prometheus
tsdb: commit data periodically in CreateBlock (#10788)
To avoid building up data in memory, commit and make a new appender periodically. The number `commitAfter = 10000` was chosen arbitrarily; testing with 10x more or less gives slightly worse results. Signed-off-by: Bryan Boreham <bjboreham@gmail.com>pull/10855/head^2
parent
d65f037def
commit
9f77d23889
Loading…
Reference in new issue