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 →
- Group hosts: canary (5%), ring 1, ring 2, with HA pairs split across rings.
- Per host, an Ansible playbook with
serial: 10%: drain from LB, update, reboot if needed, wait for health checks, undrain. - Stop the rollout automatically when failures pass a threshold (
max_fail_percentage). - Freeze repos to a dated snapshot so every ring gets the same packages.
- 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.
More on Packages, kernel and boot
You must upgrade the kernel on 50 production servers and be able to roll back if the new kernel misbehaves. Plan it.AdvancedYou need to pin a package version so routine updates don't upgrade it (e.g. Docker or PostgreSQL). How?BeginnerA package update broke an application. How do you roll it back?IntermediateYour servers can't reach the internet but need packages. How do you provide repositories?IntermediateYou need to compile and install software from source on a server that also uses packages. How do you avoid making a mess?IntermediateYou need to change kernel boot parameters (e.g. add `transparent_hugepage=never`) persistently. How?Intermediate