Preparing your design workspace

Loading the problem and your latest saved attempt…

Declarative Cluster Control Plane

Design a control plane that reconciles desired workloads with observed worker state under failures and competing updates.

Problem statement

For this exercise, assume operators manage stateless workloads in one worker cluster. They submit a versioned desired configuration and replica count, inspect observed status, and roll out a replacement version or drain a worker.

The control plane must place work, recover from lost workers and keep converging after a controller restart. A superseded controller or stale command must not revert a newer desired generation. Temporary replica overlap is allowed only within an explicit rollout budget.

Healthy workloads must continue running when the control plane is temporarily unavailable. Container internals, application data storage, billing and multi-cluster federation are out of scope. This practice exercise is based on an interview-preparation compilation, not an independently dated interview occurrence.

What to build

  1. Accept versioned desired workload configuration, replica counts and updates, and expose desired versus observed status.
  2. Place workloads on eligible workers, detect lost workers and converge to the requested replicas when capacity is available.
  3. Roll out a newer workload generation and drain workers within a declared availability/overlap budget without allowing stale commands to revert the new state.

At scaleExercise target

  • One cluster has 1,000 workers and 10,000 workload replicas; updates and heartbeats arrive continuously rather than only during maintenance.
  • Detect a lost worker within one minute and restore affected desired replicas within five minutes when sufficient healthy capacity exists.
  • Control-plane API availability is 99.9%; a temporary controller or metadata outage must not stop already healthy workload processes.