prometheus/tsdb
Bryan Boreham ff00dee262
tsdb: turn off transaction isolation for head compaction (#11317)
* tsdb: add a basic test for read/write isolation

* tsdb: store the min time with isolationAppender
So that we can see when appending has moved past a certain point in time.

* tsdb: allow RangeHead to have isolation disabled
This will be used when for head compaction.

* tsdb: do head compaction with isolation disabled
This saves a lot of work tracking appends done while compaction is ongoing.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2022-09-27 19:31:23 +05:30
..
agent
chunkenc
chunks
docs
encoding
errors
fileutil
goversion
index
record
test
testdata
tombstones
tsdbutil
wal
.gitignore
block_test.go
block.go
blockwriter_test.go
blockwriter.go
CHANGELOG.md
compact_test.go
compact.go
db_test.go
db.go tsdb: turn off transaction isolation for head compaction (#11317) 2022-09-27 19:31:23 +05:30
example_test.go
exemplar_test.go
exemplar.go
head_append.go tsdb: turn off transaction isolation for head compaction (#11317) 2022-09-27 19:31:23 +05:30
head_bench_test.go
head_read_test.go
head_read.go tsdb: turn off transaction isolation for head compaction (#11317) 2022-09-27 19:31:23 +05:30
head_test.go tsdb: remove chunkRange and oooCapMax from memSeries (#11288) 2022-09-27 13:52:22 +05:30
head_wal.go tsdb: remove chunkRange and oooCapMax from memSeries (#11288) 2022-09-27 13:52:22 +05:30
head.go tsdb: turn off transaction isolation for head compaction (#11317) 2022-09-27 19:31:23 +05:30
isolation_test.go tsdb: turn off transaction isolation for head compaction (#11317) 2022-09-27 19:31:23 +05:30
isolation.go tsdb: turn off transaction isolation for head compaction (#11317) 2022-09-27 19:31:23 +05:30
mocks_test.go
ooo_head_read_test.go
ooo_head_read.go
ooo_head_test.go
ooo_head.go
querier_bench_test.go
querier_test.go
querier.go
README.md
repair_test.go
repair.go
tsdbblockutil.go
wal_test.go
wal.go

TSDB

GoPkg

This directory contains the Prometheus TSDB (Time Series DataBase) library, which handles storage and querying of all Prometheus v2 data.

Documentation

External resources

A series of blog posts explaining different components of TSDB: