Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_int-timeseries-db

Time-Series Database Internals (TSM/Gorilla Compression & Tag Index)

6 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[![Time-Series Database Internals (TSM/Gorilla Compression & Tag Index) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_int-timeseries-db/opengraph-image)](https://archos.sageideas.dev/d/dgm_int-timeseries-db)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_int-timeseries-db)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_int-timeseries-db" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Time-Series Database Internals (TSM/Gorilla Compression & Tag Index) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0["Metrics & IoT Agents"]
  n1_1[("Ingest & WAL")]
  n2a_2[("Inverted Tag Index")]
  n2b_3[("In-Memory Head Chunks")]
  n3_4[("Time-Sharded Blocks")]
  downstream_5["Downstream & OTel"]
  client_0 -->|"1. Write pts · HTTP"| n1_1
  n1_1 -->|"2a. Match tags · RAM"| n2a_2
  n1_1 -.->|"2b. Pack XOR · RAM"| n2b_3
  n2a_2 -->|"3a. Compact · S3/NVMe"| n3_4
  n2b_3 -->|"3b. Sync · Control"| n3_4
  n3_4 -.->|"4. Emit / · OTLP/API"| downstream_5

COMPONENT STACK (6)

  • Metrics & IoT AgentsSTATELESS
    High-rate ``
  • Ingest & WALSTATEFUL
    Series hash + WAL durability
  • Inverted Tag IndexSTATEFUL
    Label postings -> Series IDs
  • In-Memory Head ChunksSTATEFUL
    Delta-of-delta + Gorilla XOR
  • Time-Sharded BlocksSTATEFUL
    2h immutable blocks + rollup
  • Downstream & OTelSTATELESS
    Consumers, metrics & SLOs

REQUEST & DATA FLOW (6)

  1. Metrics & IoT Agents → Ingest & WAL (Write pts)[HTTP]
  2. Ingest & WAL → Inverted Tag Index (Match tags)[RAM]
  3. Ingest & WAL → In-Memory Head Chunks (Pack XOR)[RAM]
  4. Inverted Tag Index → Time-Sharded Blocks (Compact)[S3/NVMe]
  5. In-Memory Head Chunks → Time-Sharded Blocks (Sync)[Control]
  6. Time-Sharded Blocks → Downstream & OTel (Emit /)[OTLP/API]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →