Preparing your design workspace

Loading the problem and your latest saved attempt…

Multi-Datacenter Kernel Upgrade Pipeline

Design a kernel build-and-validation pipeline and a controlled fleet rollout that preserves capacity and proves which kernel each host actually boots.

Problem statement

For this exercise, assume an infrastructure team must upgrade the operating-system kernel on thousands of service hosts across several data centers. A release begins from a pinned kernel source revision and build configuration.

The pipeline builds immutable artifacts, runs compatibility and boot tests against the enrolled hardware and operating-system profiles, and records the evidence needed for an authorized release manager to promote an exact release to an immutable target snapshot.

Design the path from that release through controlled deployment to verified running-kernel and service-health outcomes.

For this exercise, assume activating a new kernel requires a host reboot; live patching is outside scope. Hosts run replicated services that provide a drain-and-rejoin interface.

The inventory identifies each host incarnation, data center, service group, compatibility profile, last observed boot identity and running kernel.

A rollout must verify artifact integrity and eligibility, preserve each service group's configured minimum healthy capacity, begin with a representative canary, and advance only with current health evidence. Downloaded or installed is not the same as booted and healthy.

Operators can inspect progress, pause new disruption and initiate a reviewed recovery.

A host retains its last-known-good kernel. A provided local boot-health mechanism can attempt fallback to that version after a failed boot; an authenticated out-of-band recovery path is available for hosts that never return, but it may itself fail and require operator intervention.

Do not assume rollback restores service until a fresh boot and health observation confirms it. A timeout or partition leaves the outcome unknown, not safe to repeat. Delayed commands from an older rollout must not supersede newer intent.

Exclude kernel or driver implementation, firmware upgrades, source-control hosting, a general-purpose CI product and application-data migrations.

What to build

  1. Build an immutable kernel release, retain compatibility and boot-test evidence, and let an authorized release manager promote that exact release for a frozen target set.
  2. Distribute verified artifacts and upgrade eligible hosts through drain, install, reboot and health verification while respecting service capacity and canary gates.
  3. Expose desired release and observed running-kernel/health per host, distinguish unknown outcomes, and allow operators to pause new disruptive work.
  4. Reconcile late or missing host reports and recover failed boots through the last-known-good kernel or out-of-band intervention without blindly repeating uncertain effects.

At scale

  • For this exercise, assume 10,000 hosts across four data centers and a 1 GiB signed kernel artifact per compatibility profile. A release uses a small declared profile matrix; distribute shared bytes without repeatedly fetching a full copy across data centers for every host.
  • For this exercise, allow at most 20 rollout-induced unavailable or outcome-unknown hosts per data center. Each service group also has a configured minimum healthy count; count existing unhealthy members when deciding whether another host may drain. These are admission bounds, not guarantees against independent failures.
  • For this exercise, eligible hosts report boot identity, running-kernel digest and health every 60 seconds. Evidence older than two minutes is unknown. Start with one representative canary per compatibility profile present in the target set and require ten minutes of fresh healthy observations before broader expansion.
  • For this exercise, close new disruptive admission within 60 seconds after a healthy control plane observes a failed or unknown gate. A disconnected agent may not begin new disruption after its bounded authorization expires; in-flight work can remain unknown. Accepted release intent and host outcomes survive one controller-process or zone failure, and retain audit and test evidence for 30 days.