Skip to main content

Capacity Planning Examples

Basic KV Cache Sizing

GPU Sizing for a Workload

Comparing Hardware Configs

Live Agent Monitor

The full live monitoring example connects a real agent to the capacity planning system. It runs varied workloads, classifies sessions in real-time, and prints a capacity report.
The example:
  1. Creates an agent with EventBus
  2. Attaches SessionProfiler and MetricsExporter
  3. Runs 4 sessions (2 light, 1 medium, 1 heavy) with 10 total messages
  4. Prints observed workload stats (real token counts from API)
  5. Maps to theoretical capacity on 8× H100 (Llama 70B int4 AWQ)
  6. Shows headroom check and Prometheus metrics
Sample output:

NAND SSD Restore Latency