Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_batch-inference

Batch Inference Pipeline (Ray/Spark GPU Jobs & Idempotent Output)

6 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[![Batch Inference Pipeline (Ray/Spark GPU Jobs & Idempotent Output) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_batch-inference/opengraph-image)](https://archos.sageideas.dev/d/dgm_batch-inference)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_batch-inference)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_batch-inference" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Batch Inference Pipeline (Ray/Spark GPU Jobs & Idempotent Output) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0["Scheduled Pipelines"]
  n1_1["Batch Orchestrator"]
  n2a_2["Spot GPU Worker Pool"]
  n2b_3[("Checkpoint Tracker")]
  n3_4[("Output Lakehouse")]
  downstream_5["Downstream & OTel"]
  client_0 -->|"1. Launch DAG · gRPC"| n1_1
  n1_1 -->|"2a. Score · RPC"| n2a_2
  n1_1 -.->|"2b. Mark shard · SQL"| n2b_3
  n2a_2 -->|"3a. Commit tbl · S3"| n3_4
  n2b_3 -->|"3b. Apply · Async"| n3_4
  n3_4 -.->|"4. Emit / · OTLP/API"| downstream_5

COMPONENT STACK (6)

  • Scheduled PipelinesSTATELESS
    Millions of offline records
  • Batch OrchestratorSTATELESS
    Airflow/Dagster shard planner
  • Spot GPU Worker PoolSTATELESS
    Ray Data / Spark max-batch
  • Checkpoint TrackerSTATEFUL
    Processed partition manifest
  • Output LakehouseSTATEFUL
    Atomic Iceberg WAP publish
  • Downstream & OTelSTATELESS
    Consumers, metrics & SLOs

REQUEST & DATA FLOW (6)

  1. Scheduled Pipelines → Batch Orchestrator (Launch DAG)[gRPC]
  2. Batch Orchestrator → Spot GPU Worker Pool (Score)[RPC]
  3. Batch Orchestrator → Checkpoint Tracker (Mark shard)[SQL]
  4. Spot GPU Worker Pool → Output Lakehouse (Commit tbl)[S3]
  5. Checkpoint Tracker → Output Lakehouse (Apply)[Async]
  6. Output Lakehouse → Downstream & OTel (Emit /)[OTLP/API]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →