Design Per-Second GPU Usage Metering and Billing Pipeline

Last updated: November 29, 2026

Quick Overview

Design the pipeline that turns pod and node lifecycle events across many Kubernetes clusters into accurate per-second GPU, CPU and storage usage, feeding customer invoices, reserved-commit drawdown and near real-time spend dashboards.

Coreweave
System Design
Data Engineer
Coreweave
November 29, 2026
Data Engineer
System Design Round
System Design
Medium

0

0

0 solved


Design the pipeline that turns pod and node lifecycle events across many Kubernetes clusters into accurate per-second GPU, CPU and storage usage, feeding customer invoices, reserved-commit drawdown and near real-time spend dashboards.

Billing correctness is core for a GPU cloud selling both reserved capacity and on-demand instances, where a missed hour on thousands of H100s is real money and double counting destroys trust. The interviewer checks event semantics, idempotency, late data and reconciliation more than raw scale.

What the Interviewer Expects
  • Chooses state snapshots or start/stop events and explains the trade-off
  • Makes ingestion idempotent with event ids
  • Handles late and out-of-order events with watermarks and corrections
  • Separates usage metering from pricing and invoicing
  • Reconciles against an independent source of truth
Key Topics to Cover
Event streaming
Idempotency
Late-arriving data
Reconciliation
Data modeling
Billing
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How do you bill a reserved cluster where the customer is charged whether they use it or not?
  • How do you handle a node that fails mid-hour: should the customer pay?
  • How would you show a customer near real-time spend without double counting corrections?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Inputs: pod and node lifecycle events from every cluster, plus periodic snapshots of what is running. Outputs: per-customer, per-SKU usage in seconds, aggregated hourly and monthly; invoice lines pric...

High-Level Design

Collectors in each cluster watch the Kubernetes API and emit usage_started and usage_stopped events with a stable id (cluster, pod uid, resource) plus a 60 s heartbeat snapshot. Events go to Kafka...


Submit Your Answer
Markdown supported

Related Questions