Self-healing infrastructure: how auto-remediation works and where to keep a person
Self-healing infrastructure spots a known fault and fixes it without waiting for an engineer: a restart, a rollback, a runbook step. Here is how it works, which fixes are safe to automate and where a person should still decide.
How self-healing infrastructure works
Self-healing is a loop, not a single script. Dynatrace defines closed-loop remediation as a process that detects issues, takes corrective action and verifies that the action worked. Each pass has five steps:
- DetectA health check fails or a signal moves away from its normal range.
- DecideThe system matches the fault to a known fix and checks whether policy lets it run.
- ActIt runs the fix: a restart, a scale-out, a rollback or a runbook step.
- VerifyIt checks the same signals again and undoes the fix if it did not help.
- RecordIt logs what it saw, what it did and the result, and tells the team.
The verify step is what separates self-healing from a script that restarts things blindly. Without it, a fix can hide a fault or make it worse.
Three layers that can heal themselves
Most companies already have the first layer without calling it self-healing. The other two are added on top.
| Layer | What fixes itself | Example |
|---|---|---|
| The platform | Failed containers and unhealthy instances | Kubernetes restarts containers that fail, replaces them and kills those that fail a user-defined health check; the kubelet restarts a container that fails its liveness probe more often than you allow |
| Runbook automation | Known faults with a scripted fix | AWS Systems Manager Automation runs maintenance, deployment and remediation tasks; PagerDuty Runbook Automation runs diagnostics and fixes from an incident |
| AI agents | Incidents that need the cause found first | Agents read metrics, logs, traces and recent changes, pick the runbook step, run it within policy, verify it and write the report |
The platform layer restarts what crashed; it does not know why. A bad release keeps crashing after every restart, which is why Kubernetes lets you roll a Deployment back when it is not stable, such as crash looping. Deciding when to roll back is the job of the layers above.
Which fixes to automate, which to approve and which to leave to a person
Gartner sorts AI agents into four autonomy levels, each with its own controls, and warns that applying the same governance to every agent leads to failure. Applied to IT operations, the levels look like this:
| Level | What the agent may do | Examples in operations |
|---|---|---|
| 1. Observe | Read data only; outputs go to the person who asked | Query metrics, logs and traces; summarise an incident |
| 2. Advise | Propose a fix; a person carries it out | Suggest the runbook step and the change that probably caused the fault |
| 3. Act with approval | Run a change only after a person approves each one | A configuration change in production, a patch outside the usual window, a database change |
| 4. Act autonomously | Run fixes inside guardrails; people review exceptions, logs and results | Restart a stuck service, scale out under load, roll back a release that fails its health checks |
A good first candidate for level 4 is frequent, well understood, reversible and checkable: if the fix does not work, the system can tell and undo it. For a starting policy by kind of action, see the table in how to choose an AI monitoring and AIOps solution.
Where a person should still decide
Some decisions should wait for someone however good the automation is:
- Anything you cannot undo: deleting data, dropping a table, a schema change.
- Changes to who can access what: permissions, keys and accounts.
- Anything customers see directly, such as a message or a status-page update.
- Work outside an agreed change window.
- A fix that has already failed once for this incident.
- An incident with no runbook, or one that matches nothing seen before.
Approval only protects you if people still read what they approve. Gartner warns that approvals can degrade under time pressure or approval fatigue and give a false sense of safety. Keep approvals for the decisions above, and let the routine ones run with a log, so each request still gets attention.
In the EU, Article 14 of the AI Act requires high-risk AI systems to be designed so that people can oversee them effectively, including a “stop” button, and names automation bias as a risk. An AIOps agent is not high-risk by default: Annex III covers AI used as a safety component in the management and operation of critical digital infrastructure. Whether yours is covered is a question for legal advice.
How approval steps look in common tools
The approval does not have to be a phone call. Most automation tools build it in:
- AWS Systems Manager: the aws:approve step pauses an automation until designated people approve or reject it, then the run carries on.
- Azure SRE Agent: in Review mode an administrator approves the write actions that need approval before the agent runs them; in Autonomous mode the agent applies them without waiting.
- Kubernetes: a rollback can be one command (kubectl rollout undo) run by a pipeline or a person, with the rollout history kept for it.
- Effred SIM: you mark which actions wait for a person, and those wait for approval; the rest run within policy, in stages, with a rollback ready.
How self-healing goes wrong
The Google SRE book calls automation “a force multiplier, not a panacea”: it multiplies good and bad decisions alike. The usual failures:
- Restart loops: a service restarted again and again while the real fault, often a bad release, stays.
- Symptoms fixed, causes kept: disk space freed every night, while nobody asks what fills it.
- Silent fixes: the fault never reaches a person, so nobody learns from it. Report every automatic fix.
- No verification: a fix marked done because it ran, not because the service recovered.
- Too much access: an agent with rights it never needs. Give each one the least access its fixes require, and its own credentials.
- No way to stop it: every agent should have a pause, and a half-finished fix a way back.
Start with the toil you already have
Google’s SRE book defines toil as work tied to running a production service that tends to be manual, repetitive, automatable, tactical and devoid of enduring value. Its SRE teams aim to keep toil below half of each engineer’s time, and it notes that automation which runs regularly and successfully reduces the time to repair common faults.
- List last quarter’s incidentsGroup them by type and count them. The frequent, boring ones are your candidates.
- Write the runbook firstIf a person cannot follow the fix step by step, an agent should not run it.
- Run it as adviceThe system proposes the fix and a person runs it, until the proposals are reliably right.
- Then with approval, then on its ownMove each fix up one level at a time, with the verify step in place.
- MeasureRepeat incidents, failed fixes, time to recover and how often people overrule the system.
How Effred SIM runs a fix
Effred SIM, our AI monitoring product, follows the same loop on production applications. An incident opens when a signal leaves the baseline SIM has learned for that service; related alerts are grouped into it; the agents follow the dependency map and recent changes to the root cause; the runbook action runs within policy, in stages, with a rollback ready; then the signals are checked back to normal and the report is written.
Risky actions wait for a person’s approval, every action is logged with its evidence, and any agent can be paused. SIM responds in 100 ms on average and 0.5 s at most, from detection to first action. We set it up as part of our AIOps service, and the agents can work alongside your NOC.
What changes in operations over the next year is in AIOps in 2027.
Common questions
What is self-healing infrastructure?
Infrastructure that detects a known fault and fixes it without waiting for an engineer, then checks that the fix worked. It ranges from Kubernetes restarting a failed container to AI agents that find the cause of an incident and run the runbook step for it.
Is auto-remediation the same as self-healing?
Auto-remediation is the automatic fix itself; self-healing is the whole loop around it, from detecting the fault to verifying and recording the result. In security tools, auto-remediation often means fixing a non-compliant setting automatically while alerting the developers.
Which fixes are safe to automate first?
Frequent, well-understood, reversible fixes that the system can check afterwards: restarting a stuck service, scaling out under load, rolling back a release that fails its health checks. Keep data deletion, schema changes and access changes for a person.
Does Kubernetes make an application self-healing?
Partly. Kubernetes restarts and replaces failed containers, kills those that fail your health check and sends them no traffic until they are ready to serve. It does not fix a bad release or a broken configuration: a rollback, or a fix to the code, still has to be decided by a pipeline, an agent or a person.
Does the EU AI Act require a person to approve automated fixes?
It depends on whether the system counts as high-risk. Article 14 sets human oversight duties for high-risk AI systems, and Annex III lists AI used as a safety component in the management and operation of critical digital infrastructure among them. Whether an IT operations agent falls under that depends on what it does: check your case with a lawyer.
Can Effred set up self-healing for our systems?
Yes. We set up Effred SIM on your production applications, write the runbooks and policies with you, and agree which fixes run on their own and which wait for your approval. If monitoring is thin, we set that up first.
Sources
Show all 14 sources
- Kubernetes — overview (self-healing) (opens in a new tab)kubernetes.io
- Kubernetes — liveness, readiness and startup probes (opens in a new tab)kubernetes.io
- Kubernetes — Deployments (rolling back a Deployment) (opens in a new tab)kubernetes.io
- Google SRE book — Eliminating toil (opens in a new tab)sre.google
- Google SRE book — The evolution of automation at Google (opens in a new tab)sre.google
- AWS — Systems Manager Automation (opens in a new tab)docs.aws.amazon.com
- AWS — aws:approve, pause an automation for manual approval (opens in a new tab)docs.aws.amazon.com
- AWS DevOps Guidance — implement auto-remediation for non-compliant findings (AG.ACG.6) (opens in a new tab)docs.aws.amazon.com
- Microsoft Learn — Azure SRE Agent overview (Review and Autonomous modes) (opens in a new tab)learn.microsoft.com
- Dynatrace — closed-loop remediation and auto-remediation (opens in a new tab)dynatrace.com
- PagerDuty — Runbook Automation (opens in a new tab)pagerduty.com
- Gartner — AI agent autonomy levels and governance, 26 May 2026 (opens in a new tab)gartner.com
- European Commission AI Act Service Desk — Article 14, human oversight (opens in a new tab)ai-act-service-desk.ec.europa.eu
- European Commission AI Act Service Desk — Annex III, high-risk AI systems (opens in a new tab)ai-act-service-desk.ec.europa.eu
Spotted something out of date or unclear? Email info@effred.com and we will look at it.