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.

Updated 8 min readBy Effred editorial team

Talk to us about AIOpsSee how Effred SIM runs fixes within your policies 

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:

  1. DetectA health check fails or a signal moves away from its normal range.
  2. DecideThe system matches the fault to a known fix and checks whether policy lets it run.
  3. ActIt runs the fix: a restart, a scale-out, a rollback or a runbook step.
  4. VerifyIt checks the same signals again and undoes the fix if it did not help.
  5. 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.

Three layers of self-healing infrastructure, with examples
LayerWhat fixes itselfExample
The platformFailed containers and unhealthy instancesKubernetes 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 automationKnown faults with a scripted fixAWS Systems Manager Automation runs maintenance, deployment and remediation tasks; PagerDuty Runbook Automation runs diagnostics and fixes from an incident
AI agentsIncidents that need the cause found firstAgents 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:

Gartner’s four AI agent autonomy levels, applied to IT operations fixes
LevelWhat the agent may doExamples in operations
1. ObserveRead data only; outputs go to the person who askedQuery metrics, logs and traces; summarise an incident
2. AdvisePropose a fix; a person carries it outSuggest the runbook step and the change that probably caused the fault
3. Act with approvalRun a change only after a person approves each oneA configuration change in production, a patch outside the usual window, a database change
4. Act autonomouslyRun fixes inside guardrails; people review exceptions, logs and resultsRestart 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.

  1. List last quarter’s incidentsGroup them by type and count them. The frequent, boring ones are your candidates.
  2. Write the runbook firstIf a person cannot follow the fix step by step, an agent should not run it.
  3. Run it as adviceThe system proposes the fix and a person runs it, until the proposals are reliably right.
  4. Then with approval, then on its ownMove each fix up one level at a time, with the verify step in place.
  5. 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
  1. Kubernetes — overview (self-healing) (opens in a new tab)kubernetes.io
  2. Kubernetes — liveness, readiness and startup probes (opens in a new tab)kubernetes.io
  3. Kubernetes — Deployments (rolling back a Deployment) (opens in a new tab)kubernetes.io
  4. Google SRE book — Eliminating toil (opens in a new tab)sre.google
  5. Google SRE book — The evolution of automation at Google (opens in a new tab)sre.google
  6. AWS — Systems Manager Automation (opens in a new tab)docs.aws.amazon.com
  7. AWS — aws:approve, pause an automation for manual approval (opens in a new tab)docs.aws.amazon.com
  8. AWS DevOps Guidance — implement auto-remediation for non-compliant findings (AG.ACG.6) (opens in a new tab)docs.aws.amazon.com
  9. Microsoft Learn — Azure SRE Agent overview (Review and Autonomous modes) (opens in a new tab)learn.microsoft.com
  10. Dynatrace — closed-loop remediation and auto-remediation (opens in a new tab)dynatrace.com
  11. PagerDuty — Runbook Automation (opens in a new tab)pagerduty.com
  12. Gartner — AI agent autonomy levels and governance, 26 May 2026 (opens in a new tab)gartner.com
  13. European Commission AI Act Service Desk — Article 14, human oversight (opens in a new tab)ai-act-service-desk.ec.europa.eu
  14. 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.

More guides

All guides
AI

The future of AIOps: what changes for IT operations teams in 2027

Gartner expects AI agents to take on more of IT operations, with people watching outcomes instead of approving every step. Here are its five trends for 2027, what each means for an operations team, and where we think caution still pays.

8 min readUpdated

Engineering

How to choose an AI monitoring and AIOps solution

AI can now do more than raise alerts: it can connect signals, find the likely root cause and fix known problems on its own. Here is where it helps, where it falls short, how to keep autonomy safe and how to compare vendors.

9 min readUpdated

Engineering

DevOps for growing companies: where to start

You do not need a platform team or Kubernetes to start doing DevOps. You need a few habits, added in the right order. Here is that order, how to measure progress and when to bring in help.

8 min readUpdated