~/talk

TSDB Data Compactions on Scale Without Headache: Now & Future

Talkat PromCon North America 2021 · on Monday, 2021-10-11· [databases, observability]
name:Ben Ye
links:none on file
slides:none on file

Explains how TSDB compaction merges index files and trunks (time-series chunks), handling horizontal (time) and vertical (overlap/backfill) merges, tombstone deletions, and planning for object-store workflows that fetch metadata, plan, download, compact, upload, delete. Describes a modifier interface added to rewrite blocks for relabeling, downsampling (example: 15s → 1m), and retention changes, an index size limit planner and replica_label deduplication using a penalty-duration algorithm; blocks flush from head to disk every two hours.

AI-written summary · about

  1. 0:00Intro
  2. 0:37Definition
  3. 1:03TSDB Block
  4. 1:57meta.json
  5. 2:28Index & Chunks
  6. 4:10Two Blocks
  7. 6:35Compacted Block
  8. 6:51Vertical Compaction
  9. 8:03Query Blocks
  10. 9:09Tombstones
  11. 10:34Planning
  12. 11:44Thanos Compactor
  13. 14:36Prometheus HA Deployment
  14. 14:59Duplicate Data
  15. 15:54Deduplication Label
  16. 17:53Custom Vertical Chunks Merger
  17. 18:16Block Rewrite
  18. 18:59Relabel Block
  19. 20:32Extending TSDB Compaction?
  20. 20:47Compaction with modifiers
  21. 21:16Merge Blocks With Modifiers
  22. 21:39Brainstorming!
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.