Commit Graph

258 Commits (a9470dd8d54f7df3e6212ddee72d014bd63e9b3d)

Author SHA1 Message Date
Goutham Veeramachaneni 1627a47640
A copy is being assigned newChunk not the original
7 years ago
Fabian Reinartz a031cf7424 Return ULID in Compactor
7 years ago
zhangjun3 65e6b79a7c fix typing
7 years ago
Julius Volz 1dad3370fd Close WAL when closing the DB
7 years ago
Tobias Schmidt 5170198276 Fix typo in prometheus_tsdb_reloads_failures_total description
7 years ago
Fabian Reinartz d226411a2a db: delete old blocks during reload
7 years ago
Your Name 4a4a706234 close blocks which will be remove
7 years ago
Fabian Reinartz d109149d17 Merge pull request #186 from prometheus/closeallblocks
7 years ago
Fabian Reinartz f8e88bfdb7 Close previous block queriers on error
7 years ago
Fabian Reinartz d17104f1f0 Prefix all metrics with `prometheus_*`
7 years ago
Fabian Reinartz fb9da52b11 Add more verbose error handling for closing, reduce locking
7 years ago
Fabian Reinartz 27f1b8aac3 Merge pull request #162 from BasPH/fsync-duration
7 years ago
Bas Harenslak 5e1c258a98 Instrument WAL fsync
7 years ago
Goutham Veeramachaneni da565f975e Merge pull request #161 from prometheus/fileutil
7 years ago
Fabian Reinartz bbe72dccb9 Remove dependency on etcd/pkg/fileutil
7 years ago
Dimitrij Denissenko 83c984d9a3 Use configurable WAL flush inteval
7 years ago
Fabian Reinartz e19b648377 Merge pull request #155 from Gouthamve/level-log
7 years ago
Goutham Veeramachaneni c35d3a65bd
Add levels to all log lines.
7 years ago
Thibault Chataigner 0ff8f91ec8 Add db.Head() method
7 years ago
Thibault Chataigner 5ca18837e9 Make DB blocks list public.
7 years ago
Goutham Veeramachaneni 8919baef03
Expose NewIndexReader() and cleanups
7 years ago
Fabian Reinartz f904cd385f Do not build a superflous 'all' postings
7 years ago
Fabian Reinartz 81222849bc Filter WAL data in Head, misc fixes
7 years ago
Fabian Reinartz c36d574290 Replace single head lock with granular locks
7 years ago
Fabian Reinartz af2c2f9674 Re-enable head block delet test
7 years ago
Goutham Veeramachaneni 1698c516ad [WIP]: WAL implementation
7 years ago
Fabian Reinartz 893b6ec506 Add tests for GC and chunk truncation
7 years ago
Fabian Reinartz 4cc37eecab Refactor and add tests for compactor
7 years ago
Fabian Reinartz 5cf2662074 Refactor WAL into Head and misc improvements
7 years ago
Fabian Reinartz 8209e3ec23 Add various metrics
7 years ago
Fabian Reinartz 3901b6e70b Remove multiple heads
7 years ago
Andreas Kohn 4003da0fdd
Log the directory when the WAL cannot be opened
7 years ago
Fabian Reinartz 905af27cf9 Refactor compactor
7 years ago
Fabian Reinartz 66ff7b12e9 Pool Chunk objects during compaction
7 years ago
Fabian Reinartz fa04455cd7 Properly detect compactable heads
7 years ago
tianwenjie01 b64054365d Fix DefaultOptions
7 years ago
Fabian Reinartz 74f67e8271 Fix compacting disable/enable
7 years ago
Fabian Reinartz 3065be97d8 Fix and document locking order for DB
7 years ago
Fabian Reinartz 9c4235532e Fix compaction selection after creating new heads
7 years ago
Goutham Veeramachaneni 7b9c536883 Merge pull request #103 from Gouthamve/block-ranges
7 years ago
Goutham Veeramachaneni 9a2ab732b5 Choose ranges by retention and min-block-duration
7 years ago
Goutham Veeramachaneni f1ae239c20 Persist the right MaxTime when snapshotting
7 years ago
Goutham Veeramachaneni ce23adb579 Initial compaction implementation for block-ranges
8 years ago
Fabian Reinartz 1e74c155eb Return empty string to signal non-caching
8 years ago
Fabian Reinartz 3410559c1b Compact head block early
8 years ago
Fabian Reinartz 03f95ee096 Fix directory file descriptor leak.
8 years ago
Fabian Reinartz d4cb579443 Add DB.Dir method
8 years ago
Goutham Veeramachaneni ff4ccb6eb0
Remove unnecessary error from ToggleCompaction fns
8 years ago
Goutham Veeramachaneni 261cd9f393
Incorporate feedback.
8 years ago
Goutham Veeramachaneni a110a64abd
Add full Snapshot support
8 years ago
Goutham Veeramachaneni a1c8425357
Initial implementation of HeadBlock Snapshots
8 years ago
Goutham Veeramachaneni 3a5ae6b1a4 Merge pull request #82 from Gouthamve/deletes-1
8 years ago
Fabian Reinartz b3b9245ad6 Add and fix metrics
8 years ago
Goutham Veeramachaneni 6febabeb28
Final delete fixes.
8 years ago
Goutham Veeramachaneni 9bf7aa9af1
Misc. fixes incorporating feedback.
8 years ago
Goutham Veeramachaneni 8434019ad9
Merge branch 'master' into deletes-1
8 years ago
Goutham Veeramachaneni 0b70333ef6
Add tests for tombstones.
8 years ago
Goutham Veeramachaneni d32eb25662
Synchronise deletes and compactions.
8 years ago
Goutham Veeramachaneni 3dbb400bef
Initial implementation of Delete on DB.
8 years ago
Fabian Reinartz debfe9b1e5 Simplify AddFast and avoid errgroup Commits in general
8 years ago
Fabian Reinartz fb5c5535fc Misc cleanup
8 years ago
Fabian Reinartz 39df7e2bba Switch blocks to ULID directories, drop sequenc numbers
8 years ago
Fabian Reinartz 285bc07030 Switch append refs to string
8 years ago
Fabian Reinartz 8b51b7e2be Make WAL for HeadBlock composeable.
8 years ago
Fabian Reinartz 5534e6c53c Make HeadBlock impl public, make interface private
8 years ago
Fabian Reinartz 44769c1654 Allow disabling lock file
8 years ago
Fabian Reinartz 35b62f001e Change offset table layout, add TOC, ...
8 years ago
Fabian Reinartz 54a7b98cff Fix and test ref handling in DB appender
8 years ago
Brian Brazil d04bd947ea Merge pull request #51 from prometheus/rollback
8 years ago
Brian Brazil dba222b53c Make rollback actually rollback.
8 years ago
Fabian Reinartz 46c947d94f Merge pull request #45 from mattbostock/document_appender_not_goroutine_safe
8 years ago
Matt Bostock 4d5ca4b9c1 db: Fix typo: reference
8 years ago
Matt Bostock 3dd5a4ee09 db: Add comment: Appender not goroutine safe
8 years ago
Fabian Reinartz 778103b450 Add liecence file and headers
8 years ago
Fabian Reinartz 10c7c9acbe Adjust import names to new repository organisation
8 years ago
Fabian Reinartz 767b88a3a5 Parallelize commits to prevent deadlocks
8 years ago
Fabian Reinartz a52980e0a8 Add workaround for deadlocks
8 years ago
Fabian Reinartz e478d0e3bc Actually close olds blocks in reloadBlocks
8 years ago
Fabian Reinartz 70909ca8ad Ensure GC runs after each compactor call
8 years ago
Fabian Reinartz 55ee4b5b3b Merge branch 'master' of github.com:fabxc/tsdb
8 years ago
Fabian Reinartz c18e055d7c Fix races and add comments on remaining ones
8 years ago
Fabian Reinartz e837034360 Merge pull request #14 from Gouthamve/log-update
8 years ago
Fabian Reinartz 9c93f8f2aa Fix various races
8 years ago
Fabian Reinartz 3635569257 Trigger reload correctly on interrupted compaction
8 years ago
Fabian Reinartz 2c999836fb Add Queryable interface to Block
8 years ago
Fabian Reinartz 11be2cc585 Add composed Block interfaces, remove head generation
8 years ago
Goutham Veeramachaneni df7db4ac07
Update kit/log To New API
8 years ago
Fabian Reinartz 303a4ec3bc Sync directory on retention delation
8 years ago
Fabian Reinartz 863d38dfee Fix unreturned lock
8 years ago
Fabian Reinartz d0770302ed Add retention deletion
8 years ago
Fabian Reinartz 4962175218 Fix deadlock between heads and headmtx
8 years ago
Fabian Reinartz 65b846ae5b Remove unreturned locks, detect writes on closed heads
8 years ago
Fabian Reinartz 32c32013a6 Fix loading of persisted blocks
8 years ago
Fabian Reinartz cb4dde7659 Fix WAL log recovery bug
8 years ago
Fabian Reinartz 3910b913bd Revert interval overlap comparison changes
8 years ago
Fabian Reinartz 87805fb83f Remove Partitioned* code
8 years ago
Fabian Reinartz eedbebe1d7 Misc cleanups
8 years ago
Fabian Reinartz 50791a412e Remove leaky Appender abstraction for hashedAppend
8 years ago
Fabian Reinartz 87d270fe11 Fix interval check, make DB shutdown concurrent
8 years ago
Fabian Reinartz 04783831e2 Correctly close compacted blocks.
8 years ago