prometheus/tsdb
Bryan Boreham 9dfdc3eb36
Speed up BenchmarkPostings_Stats (#9213)
The previous code re-used series IDs 1-1000 many times over, so a lot
of time was spent ensuring the lists of series were in ascending order.
The intended use of `MemPostings.Add()` is that all series IDs are
unique, and changing the benchmark to do this lets it finish ten times
faster.

(It doesn't affect the benchmark result, just the setup code)

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2021-08-18 10:27:21 +01:00
..
chunkenc remove redundant parentheses (#9134) 2021-07-29 18:26:57 +05:30
chunks remove redundant parentheses (#9134) 2021-07-29 18:26:57 +05:30
docs/format Snapshot in-memory chunks on shutdown for faster restarts (#7229) 2021-08-06 17:51:01 +01:00
encoding Snapshot in-memory chunks on shutdown for faster restarts (#7229) 2021-08-06 17:51:01 +01:00
errors
fileutil
goversion
index Speed up BenchmarkPostings_Stats (#9213) 2021-08-18 10:27:21 +01:00
record
test
testdata
tombstones
tsdbutil
wal Snapshot in-memory chunks on shutdown for faster restarts (#7229) 2021-08-06 17:51:01 +01:00
.gitignore
block.go LabelNames API with matchers (#9083) 2021-07-20 18:08:08 +05:30
block_test.go LabelNames API with matchers (#9083) 2021-07-20 18:08:08 +05:30
blockwriter.go
blockwriter_test.go
CHANGELOG.md
compact.go
compact_test.go
db.go Snapshot in-memory chunks on shutdown for faster restarts (#7229) 2021-08-06 17:51:01 +01:00
db_test.go tsdb: Block Head GC till pending readers are done reading (#9081) 2021-07-20 14:17:20 +05:30
exemplar.go Exemplar resize (#8974) 2021-07-20 10:22:57 +05:30
exemplar_test.go Exemplar resize (#8974) 2021-07-20 10:22:57 +05:30
head.go Fix bugs and add enhancements to the chunk snapshot (#9185) 2021-08-17 18:08:16 +01:00
head_append.go Snapshot in-memory chunks on shutdown for faster restarts (#7229) 2021-08-06 17:51:01 +01:00
head_bench_test.go
head_read.go Breakdown tsdb/head.go into multiple files (#9147) 2021-08-03 14:14:26 +02:00
head_test.go Fix bugs and add enhancements to the chunk snapshot (#9185) 2021-08-17 18:08:16 +01:00
head_wal.go Fix bugs and add enhancements to the chunk snapshot (#9185) 2021-08-17 18:08:16 +01:00
isolation.go Add present_over_time (#9097) 2021-07-29 12:38:11 +02:00
isolation_test.go tsdb: Block Head GC till pending readers are done reading (#9081) 2021-07-20 14:17:20 +05:30
mocks_test.go
querier.go LabelNames API with matchers (#9083) 2021-07-20 18:08:08 +05:30
querier_bench_test.go
querier_test.go LabelNames API with matchers (#9083) 2021-07-20 18:08:08 +05:30
README.md Replace godoc.org links 2021-06-17 07:18:51 -04:00
repair.go
repair_test.go
tsdbblockutil.go
wal.go
wal_test.go

TSDB

GoPkg

This directory contains the Prometheus storage layer that is used in its 2.x releases.

A writeup of its design can be found here.

Based on the Gorilla TSDB white papers.

Video: Storing 16 Bytes at Scale from PromCon 2017.

See also the format documentation.

A series of blog posts explaining different components of TSDB: