prometheus/tsdb
Oleg Zaytsev b87c54de14 Load OutOfOrderTimeWindow only once per appender
We're loading the time window once per each Append() call, plus once in
the Commit(). While not extremely expensive, atomic operations are also
not cheap.

Additionally, it makes sense to keep the window consistent for a single
append.

Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
2022-08-11 10:46:12 +02:00
..
agent Add out-of-order sample support to the TSDB (#269) 2022-06-22 11:45:21 +00:00
chunkenc Add out-of-order sample support to the TSDB (#269) 2022-06-22 11:45:21 +00:00
chunks Merge remote-tracking branch 'upstream/main' into update-upstream-prometheus 2022-07-13 10:18:09 +02:00
docs Update godoc links and remove note about TSDB versioning (#10754) 2022-05-26 18:34:43 +10:00
encoding
errors
fileutil Make necessary change to compile promql parser to wasm (#10683) 2022-05-12 09:12:05 +02:00
goversion
hashcache
index Remove use of io/ioutil. 2022-06-09 15:01:34 +02:00
record Add out-of-order sample support to the TSDB (#269) 2022-06-22 11:45:21 +00:00
test
testdata
tombstones
tsdbutil
wal Add out-of-order sample support to the TSDB (#269) 2022-06-22 11:45:21 +00:00
.gitignore
async_block_writer.go
block.go Avoid gaps in in-order data after restart with out-of-order enabled (#277) 2022-06-27 20:26:25 +05:30
block_test.go Include out of order samples in BenchmarkQueries (#286) 2022-07-14 18:01:39 +05:30
blockwriter.go Add support to query unmerged, unsorted chunks (#299) 2022-07-20 15:57:02 +05:30
blockwriter_test.go
CHANGELOG.md
compact.go Avoid gaps in in-order data after restart with out-of-order enabled (#277) 2022-06-27 20:26:25 +05:30
compact_test.go Add out-of-order sample support to the TSDB (#269) 2022-06-22 11:45:21 +00:00
db.go Prevent panic with ApplyConfig (#312) 2022-08-09 19:25:17 +05:30
db_test.go Prevent panic with ApplyConfig (#312) 2022-08-09 19:25:17 +05:30
example_test.go
exemplar.go
exemplar_test.go
head.go Update minOOOTime after truncating Head (#309) 2022-08-02 19:43:50 +05:30
head_append.go Load OutOfOrderTimeWindow only once per appender 2022-08-11 10:46:12 +02:00
head_append_test.go
head_bench_test.go Add out-of-order sample support to the TSDB (#269) 2022-06-22 11:45:21 +00:00
head_read.go Add out-of-order sample support to the TSDB (#269) 2022-06-22 11:45:21 +00:00
head_read_test.go Add out-of-order sample support to the TSDB (#269) 2022-06-22 11:45:21 +00:00
head_test.go Update minOOOTime after truncating Head (#309) 2022-08-02 19:43:50 +05:30
head_wal.go Merge remote-tracking branch 'upstream/main' into update-upstream-prometheus 2022-07-13 10:18:09 +02:00
isolation.go
isolation_test.go
mocks_test.go
ooo_head.go Add out-of-order sample support to the TSDB (#269) 2022-06-22 11:45:21 +00:00
ooo_head_read.go Add out-of-order sample support to the TSDB (#269) 2022-06-22 11:45:21 +00:00
ooo_head_read_test.go Rename OutOfOrderAllowance to OutOfOrderTimeWindow 2022-06-24 12:23:38 +02:00
postings_for_matchers_cache.go
postings_for_matchers_cache_test.go
querier.go Add out-of-order sample support to the TSDB (#269) 2022-06-22 11:45:21 +00:00
querier_bench_test.go Add out-of-order sample support to the TSDB (#269) 2022-06-22 11:45:21 +00:00
querier_test.go Include out of order samples in BenchmarkQueries (#286) 2022-07-14 18:01:39 +05:30
README.md Update godoc links and remove note about TSDB versioning (#10754) 2022-05-26 18:34:43 +10:00
repair.go
repair_test.go
symbols_batch.go
symbols_batch_test.go
tsdbblockutil.go tsdb: commit data periodically in CreateBlock (#10788) 2022-06-17 11:26:19 +05:30
wal.go
wal_test.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: