KatInterview

Design an Automated Health and Recovery Platform for a GPU Fleet

System DesignModel answer
MediumModel answerSystem Designsystem-designtelemetrykafka

Last updated

Design a platform that ingests high-rate telemetry from 100,000 GPU servers, detects hardware faults, runs safe repair workflows, and limits how many machines are taken offline at once.

Design a Self-Healing Platform for a Large GPU Fleet

Your team operates 100,000 servers that run demanding AI training and inference jobs. You need to build a platform that continuously watches the health of the GPUs, detects hardware problems, and fixes them automatically where possible.

Typical faults include uncorrectable memory (ECC) errors, overheating that forces clock throttling, and GPUs that hang. Typical fixes include resetting the GPU driver, rebooting, reinstalling the operating system, or marking the machine for physical replacement by data-center staff.

Functional requirements

  1. Telemetry intake: every server reports health metrics at 10 samples per second.
  2. Per-GPU state tracking: each GPU is always in one of Healthy, Degraded, Repairing, or Failed.
  3. Automated recovery: when a fault is detected, a state-machine-driven repair workflow runs.
  4. Limited blast radius: cap the number of simultaneous repairs so that automation cannot remove too much serving capacity.

Non-functional requirements

  1. Scalability for both metric ingestion and distributed workflow coordination.
  2. Idempotency: a repair workflow can be retried safely with no harmful side effects.
  3. Observability: a global dashboard shows live fleet health and repair progress.

What to cover in your answer

  • The overall architecture: components, data flow, and storage choices.
  • How the ingestion pipeline copes with the telemetry volume.
  • How you enforce guardrails so automated repairs never take down too many machines at once.
  • What happens when automated repair keeps failing and the issue must be escalated.

State your assumptions (GPUs per host, bytes per sample, expected failure rate) and show the back-of-envelope numbers that justify your choices.

Hints

Hint 1

Do the arithmetic first: samples per second, bytes per second, and expected incidents per day. Compare telemetry volume with state-change volume and let that gap shape the design.

Hint 2

Do not rely on raw 10 Hz data for urgent faults. Let an on-host agent batch routine samples and push critical events immediately, and keep detectors stateful with windows and hysteresis to avoid flapping.

Hint 3

Model repair as a durable workflow with an escalating ladder of actions. Make every step check-then-act with an idempotency key, and require a token from a hierarchical, lease-based semaphore before any disruptive step.