Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Stack Overflow Blog 9 min read Opinion mediumAdept

A Reboot Is Still a Deployment

Host reboots for kernel updates should be verified like deployments: by a completed representative job on the returning host, not by a process or unit showing up. Canonical's move to weekly Ubuntu kernel releases means more of these restarts, and Livepatch only postpones some of them. A Python/SQLite rehearsal of a queue-backed export worker shows three signals disagreeing after a restart: the process up, a readiness gate reporting a missing volume, and no finished job. The recommended plan covers who owns in-flight jobs during drain, using systemd RequiresMountsFor= and Type=notify, and the fact that booting the previous kernel won't roll back committed queue state or prevent duplicate jobs.

Related posts

  • A resilient kernel log reporter

    Jane Street Tech Blog hardMaster

    Jane Street built a kernel log shipper that keeps working when disk or network fail, so logs from the most interesting crashes still reach central storage. The shipper mlockall's itself into memory, reads /dev/kmsg directly instead of dmesg, and caches DNS results in a background loop. It sends each line over plain UDP to every collector, which avoids TLS certificate files on disk and imposes no backpressure. For panics with no network either, the kernel writes compressed logs to EFI-backed pstore (efi_pstore.pstore_disable=0, crash_kexec_post_notifiers=Y), and a custom pstore parser ships them on next boot. This works around an old systemd that doesn't recognise the renamed backend. The logs let the team trace random desktop freezes to a null dereference in an Nvidia driver update.

  • 2023-03-08 incident: A deep dive into the platform-level impact

    Datadog Engineering hardMaster

    A Datadog multi-region, multi-cloud outage was traced to a systemd security patch auto-installed by Ubuntu's unattended-upgrades on 22.04 hosts. The patch restarted systemd-networkd, whose v248+ behavior flushes foreign IP routing rules. That flush deleted the source-routing rules Cilium installs for pod traffic on AWS and Azure ENIs, cutting pods off. It also deleted Cilium's relocated priority-100 'lookup local' rule without restoring the default priority-0 rule, so nodes on every cloud lost network connectivity entirely. Because the unattended-upgrade timers fired in the same daily window everywhere, the change bypassed Datadog's progressive, region-by-region node replacement process; the ManageForeignRoutingPolicyRules setting can turn off the flush.

  • The Story Behind Shopify’s Isospin Tooling

    Shopify Engineering mediumAdept

    Shopify replaced the shell-script tooling behind its Spin cloud dev environments with Isospin, which runs multiple applications inside a single Linux VM by modeling them as systemd services. Template units (foo@bar) let each app get its own copies of dependencies like MySQL and Elasticsearch, while generators build per-app targets and service graphs at boot from runtime configuration. Port collisions are solved by a dependency service that hashes service names into stable port assignments injected as a PORT environment variable. Readiness is handled with systemd's NOTIFY_SOCKET via a notify-port wrapper that polls the assigned port, which caught services bound to the wrong port or failing silently at startup.

  • 2023-03-08 incident: A deep dive into the platform-level recovery

    Datadog Engineering hardMaster

    Recovering from Datadog's March 8, 2023 multi-region outage, triggered by a systemd-networkd patch on Ubuntu 22.04 that cut network connectivity for nodes running Cilium, required restoring Kubernetes clusters in a strict order: parent control planes, then child control planes hosted on parent nodes, then application nodes. In EU1 (Google Cloud), impacted nodes could simply be rebooted. Scaling out to drain the backlog then hit a 15,500-instance network peering group limit and full pod subnets in three clusters, which normally run at around 40% IP usage. In US1 (AWS), Auto Scaling groups replaced tens of thousands of instances, so every node had to re-register through Vault, the Kubernetes API, and Cilium ENI/IP allocation via EC2 APIs, stressing those services and slowing the return to Ready capacity.

  • The ultimate guide to analyzing and troubleshooting critical issues on Red Hat Enterprise Linux 8 and 9

    Red Hat Developer mediumAdept

    A structured standard operating procedure for triaging critical production incidents on RHEL 8 and 9, starting from a severity matrix tied to Red Hat Support SLAs and moving subsystem by subsystem through system identity, CPU, memory/OOM, storage, disk I/O, systemd, networking/DNS, logs, SELinux, time sync, cron and resource limits. Each section lists concrete commands (vmstat, iostat, journalctl, ss, ausearch, chronyc, etc.) along with the anomalies to look for. It also flags common misreadings: load average is not CPU utilization, static swap usage is not an emergency, an active systemd unit does not mean the app is healthy, and a failed ping does not prove the host is down. It warns against intrusive fixes such as blind `mount -a`, filesystem repairs or disabling SELinux before capturing evidence for root cause analysis.

The quest for software engineering knowledge.

Look:
Layout: