Go · eBPF · MIT

healerd, an eBPF self-healing agent

healerd is an open-source (MIT) Go node agent. It watches the Linux kernel with eBPF for OOM kills, crash signals, crash loops and TCP retransmits, then runs remediations behind thresholds, cooldowns, budgets, health checks and a circuit breaker.

Mohsin Khan Shaik
Mohsin Khan ShaikUpdated
4kernel signals
5actions
7safety rails
MITlicence

The problem it solves

Most auto-remediation is a script that restarts things blindly, or a watchdog that polls every few seconds and misses what happened in between. Both keep "fixing" something that is not getting fixed. healerd sees the signal at the kernel, acts within limits, and stops and escalates when its fix is not working.

What it watches

oom_killtracepoint oom/mark_victim
crash_signaltracepoint signal/signal_generate, filtered in the kernel to SEGV, ABRT, BUS, FPE, ILL and KILL
process_exittracepoint sched/sched_process_exit, filtered to watched process names
tcp_retransmitkprobe tcp_retransmit_skb, aggregated per destination in an LRU hash

Hooks attach independently: if a kernel lacks one, the agent logs it and runs with the rest. CO-RE lets one binary run across kernel versions.

Safety rails

Threshold over a windowIgnores a single blip
CooldownPrevents restart storms
Hourly budgetOpens the circuit and escalates when exhausted
Failure breakerStops retrying an action that does not work; a failed health check counts
One in-flight action per ruleNo racing remediations
Dry-runTry new policies safely
Manual resetA human closes the circuit after fixing the cause

Actions

Restart a systemd unit, kill a process, run a command, call a webhook, or cordon a Kubernetes node. Fixes can be verified with an HTTP health check.

rules:
  - name: api-oom-restart
    signal: oom_kill
    match: { comm: api-server }
    cooldown: 2m
    max_per_hour: 3
    action: { type: restart_systemd, unit: api-server.service }
    verify: { http_get: http://127.0.0.1:8080/healthz, retries: 5 }

Try it

Replay a recorded incident on any OS without root, or run it on Linux 5.8+ with BTF.

make demo

sudo apt-get install -y clang llvm libbpf-dev
make deps generate build
sudo ./bin/healerd -config examples/healerd.yaml -dry-run
curl localhost:9464/metrics

When to use something else

  • Kubernetes liveness probes are enough when a container simply needs restarting.
  • node-problem-detector reports node problems to Kubernetes; choose it if you only need detection.
  • node-doctor is another Go DaemonSet that health-checks nodes and fixes common problems.
  • healerd fits when you want kernel-level signals tied to bounded, verified actions on the node.

Limitations

  • Retransmit tracking is IPv4 only.
  • OOM victim names are read from /proc and can lose a race with a very fast reap.
  • No per-cgroup or per-pod attribution yet.
  • Circuit-breaker state is not kept across agent restarts.
  • A young project: first published in November 2026, with no documented production deployments yet.

Questions and answers

What is healerd?

An open-source Go agent that uses eBPF to detect OOM kills, crash signals, crash loops and TCP retransmits, and runs guarded remediations on the node.

Does healerd work on Kubernetes?

Yes. It ships as a DaemonSet with RBAC for cordoning nodes, and also as a systemd unit on plain Linux hosts.

How does it avoid making an incident worse?

Every rule has a threshold window, cooldown, hourly budget, single in-flight action and circuit breaker. Failed health checks count as failures, and an open circuit escalates to a human.

Which kernel does it need?

Linux 5.8 or newer with BTF. The demo mode runs anywhere without root.

Work with MohsinFreelance engineering, websites and advisory. Replies by email, usually within a day.