Interview Prep/Linux/Packages, kernel and boot

You need to schedule regular patch windows across 400 servers with minimal user impact. Design the process.

AdvancedScenarioPackages, kernel and boot
Answer

Situation read → Rings, automation, health checks, reporting.

What I'd do →

  1. Group hosts: canary (5%), ring 1, ring 2, with HA pairs split across rings.
  2. Per host, an Ansible playbook with serial: 10%: drain from LB, update, reboot if needed, wait for health checks, undrain.
  3. Stop the rollout automatically when failures pass a threshold (max_fail_percentage).
  4. Freeze repos to a dated snapshot so every ring gets the same packages.
  5. Report compliance (patched/unpatched) to a dashboard.

Why → Same packages everywhere, limited blast radius, automatic stop.

Interview tip → Mentioning repo snapshots for consistency across rings sets you apart.

All Linux questions Roadmap: Linux

More on Packages, kernel and boot