Design GPU-Hour Metering and Billing for Dedicated Clusters
Last updated: November 29, 2026
Quick Overview
Design the system that meters GPU usage across reserved and on-demand capacity, applies contract terms such as committed reservations and SLA credits for downtime, and produces accurate monthly invoices.
Fluidstack
November 29, 20260
0
0 solved
Design the system that meters GPU usage across reserved and on-demand capacity, applies contract terms such as committed reservations and SLA credits for downtime, and produces accurate monthly invoices.
Fluidstack sells large multi-month reservations alongside smaller flexible capacity, and SLA credits for node downtime are part of the contract, so billing has to reconcile infrastructure telemetry with commercial terms. The interviewer is checking data modelling, exactly-once style accounting, and how you make invoices auditable.
What the Interviewer Expects
- Separate raw usage events from rated, priced line items
- Model contracts: reservations, on-demand rates, SLA credits
- Make metering idempotent and late-data tolerant
- Compute downtime credits from node health history
- Provide auditability and reprocessing
- Discuss reconciliation with finance systems
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- A telemetry outage loses 3 hours of usage data. How do you bill?
- How do you compute SLA credits when a node was down but the customer had a spare running?
- How would you support mid-month contract amendments?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Inputs: allocation events (node assigned to customer, released), node health events (down, repaired), and contracts. Outputs: per customer, per month, invoice lines for reserved capacity, on-demand ov...
High-Level Design
Event sources write immutable events with unique ids into a log (Kafka or similar), landing in an append-only events table. A usage builder turns events into intervals: `(customer, node, gpu_count, st...