A resilient kernel log reporter
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.
Related posts
- How We Export Postgres Logs to Third-Party Services
Neon mediumAdept
Neon exports customer Postgres logs by having Postgres write to rsyslogd alongside stderr, with rsyslogd pushing RFC 5424 syslog over TCP to an OpenTelemetry Collector that enriches and forwards them to Datadog or any OTLP-compatible platform. Scraping pods by label wasn't supported by the OTel Collector, and unstructured logs from multiple NeonVM processes made filtering unreliable, so they switched from pull to push. Roadblocks included rsyslogd requiring a restart rather than a config reload, and a k8sattributes bug fixed by a transform step that copies net.peer.ip into k8s.pod.ip for pod matching. The same rsyslogd instance also ships pg_audit logs to secure storage for HIPAA customers.
- 2023-03-08 incident: A deep dive into our incident response
Datadog Engineering mediumAdeptDatadog's March 8, 2023 global outage, triggered by an automatic systemd upgrade that broke Kubernetes nodes across isolated regions on multiple clouds, tested an incident process built on out-of-band monitoring, senior incident-commander rotations, blameless culture and a 30-minute customer update cadence. Response was slowed by the loss of Datadog's own monitoring, intermittent failures of the incident tooling, and the assumption that isolated regions could not fail together, so diagnosing the Kubernetes node failure took over an hour. The response scaled to nearly 100 workstreams and 500-750 engineers in shifts, with workstream leads acting as untrained sub-commanders. Full infrastructure restoration took until 18:00-19:00 UTC.
- How We Rebuilt Our Log Storage and Search Infrastructure for Scale
Railway mediumAdeptRailway replaced per-request Docker log polling (every 2 seconds, straining the Docker daemon across 500,000+ deployments) with a centralized log pipeline. Docker's syslog driver forwards container logs to a per-node Vector agent, which ships them to a central Vector instance that writes hourly filesystem buckets for real-time tailing and short-term queries and batches them to Google Cloud Storage for long-term retention. A Go gRPC streaming service serves logs through GraphQL subscriptions to the React frontend, enabling historical deployment logs and keyword filtering, with Vector's Datadog sink used for pipeline monitoring.
- Detect, act, keep the evidence: node reliability across three clouds
ClickHouse mediumAdept
ClickHouse Cloud owns node-failure detection and reaction itself across AWS, GCP and Azure, because many real failures leave Kubernetes nodes Ready while workloads degrade. Examples include failed NVMe RAID members, EXT4 errors, hung kernel tasks and stuck pod creation, and provider auto-repair was inconsistent or counterproductive. The stack uses upstream Node Problem Detector with custom permanent conditions and plugin checks tuned against false positives. A custom open-source Node Problem Mitigator escalates per condition from evaluate to drain to terminate, gated by a kill switch, dry-run, exclusions, a global cooldown and alerting. A Node Debug Collector built on sosreport captures forensics before the node disappears.
- Failure is inevitable: Learning from a large outage, and building for reliability in depth at Datadog
Datadog Engineering mediumAdeptA March 2023 unsupervised global update knocked out connectivity to 50–60% of Datadog's Kubernetes nodes, yet the platform appeared fully down because services were designed to stop rather than show partial data. Instead of only fixing the trigger, Datadog rebuilt for graceful degradation. Changes include persisting data at intake before acknowledging receipt, letting pipelines skip backlogs to serve live data first, retries with backoff and earlier dead-letter queues, Kubernetes PriorityClass and faster autoscaling, removing a shared Cassandra tag cache from the critical path, cluster-local Vault instances, break-glass paths around circular recovery dependencies, and automated chaos testing. The general lessons are to persist early, prioritize real-time data, avoid global control systems, and scrutinize retries and caches.