Flag Unhealthy GPU Nodes From Streaming Telemetry Samples

Last updated: November 29, 2026

Quick Overview

Given telemetry samples of (timestamp, node, gpu, temperature, xid_code), return every node that should be cordoned along with the reasons: any GPU that reports a critical XID error, or any GPU whose temperature exceeds a limit for a run of consecutive samples.

Coreweave
Coding & Algorithms
Software Engineer
Coreweave
November 29, 2026
Software Engineer
Phone Screen
Coding & Algorithms
Easy

0

0

0 solved


Given telemetry samples of (timestamp, node, gpu, temperature, xid_code), return every node that should be cordoned along with the reasons: any GPU that reports a critical XID error, or any GPU whose temperature exceeds a limit for a run of consecutive samples.

A warm-up in the style of a fleet or production engineering phone screen at a GPU cloud, where node health automation decides which bare-metal hosts get pulled from customer clusters. The interviewer checks that you clarify ordering and per-GPU state, and that the code is clean enough to drop into a health checker.

What the Interviewer Expects
  • Asks whether samples arrive sorted and per-GPU or interleaved
  • Keeps streak state keyed by (node, gpu), not by node
  • Resets the streak on any non-hot sample
  • Returns deterministic, deduplicated reasons
  • States O(n log n) for the sort and O(n) otherwise
Key Topics to Cover
Hash maps
Streaming state
Run-length counting
GPU XID errors
Node health checks
How to Approach This
  1. Clarify input constraints and edge cases before writing code.
  2. Walk through your approach verbally and confirm with the interviewer before coding.
  3. Start with a brute force solution, then optimize. Mention time and space complexity.
  4. Test your solution with examples, including edge cases like empty input or duplicates.
  5. Consider common patterns: sliding window, two pointers, hash map, BFS/DFS, dynamic programming.
Possible Follow-up Questions
  • How would you change this to run online over an unbounded stream with bounded memory?
  • Some XIDs are only critical if they repeat; how would you encode per-code policies?
  • How do you avoid cordoning half a cluster at once when a bad firmware push makes every GPU report the same XID?
Sharpen Your Skills on Codemia

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

Practice DSA Problems
Sample Answer
Requirements

Input is a list of (ts, node, gpu, temp_c, xid) tuples, possibly out of order and interleaved across nodes. xid is 0 when no error. A node is unhealthy if any of its GPUs reports an XID in a criti...

High-Level Design

Sort by timestamp so consecutive means consecutive in time per GPU. Keep a counter per (node, gpu) that increments on a hot sample and resets to zero otherwise. Collect reasons in a set per node so ...


Submit Your Answer
Markdown supported

Related Questions