On this page6 sections
Suppose a repair service asks a worker to restart. The request times out. From the caller’s side, the worker that never got the request looks just like the one that is already restarting. The next move depends on telling them apart.
Automated remediation puts software in charge of carrying out a repair. A rule and an existing runbook may be enough for a familiar failure. An AI system can help make sense of the evidence or pick a runbook; the component that can actually restart the worker has a different job. It has to decide whether this repair is permitted here, now, and stay with it long enough to learn what happened.
What has to be true before a worker can restart?
Imagine a queue that is getting older by the minute. The proposal names an approved runbook, its version and one unhealthy worker. That specificity lets the executor check the actual request. Is the worker still unhealthy? Did a recent deployment change the behavior we expected? Does the queue depend on a service that is down? If that dependency is the problem, restarting workers can reduce capacity while leaving the blockage exactly where it was. When no approved response fits the evidence, send what you know to the responder who can investigate.
Even an appropriate restart takes a worker out of service for a while. Check that there is capacity to spare and that no other repair is using it. A decision made a minute ago can go stale between proposal and execution, so check at the point where the request can still be stopped. Give the executor only the permissions it needs, and record the target, approved action and deadline before the call leaves. Somebody will need those details if the response never comes back.
Decide how much of the repair the software can own
Start with a recommendation when the failure is unfamiliar or the repair is untested. Put an established action behind human approval when a person still has to judge the target or customer impact. AWS Systems Manager’s approval step, for example, can pause a runbook for that decision. The incident response plan still needs an owner for work that cannot proceed. Let the action run unattended only after the preconditions can be checked by software, the consequences have clear limits and the team has exercised how to verify recovery and stop.
One restart uses part of a shared budget
In this example, the first automatic repair can take one worker out at a time, with a defined interval before another is eligible. If two executors each read “one” as their own allowance, the service can lose two workers. Give the executors a shared way to claim that allowance and keep the claim visible across executor restarts. An unresolved request still occupies capacity until its effect is known or a responder takes over under the runbook’s rules.
Find out what the destination did
Return to the missing reply. An operation record gives the next caller the target, time and request identifier. Where the destination exposes a lookup for that identifier, use it to follow the exact operation. Current worker state provides another clue, though a healthy worker alone may not tell you which request ran. Keep the outcome unknown if the available evidence cannot settle it.
Some APIs explicitly let you repeat an unchanged request with the same identifier within a defined window without multiplying its effect. That is the destination’s idempotency contract. Check that it applies before repeating the request. An identifier in your own log cannot give a restart API that property. And even a confirmed restart can leave an outside effect, such as a message the worker delivered before it stopped. The runbook should name the record that can establish delivery and the person who can take over when it remains unclear.
The worker came back. What happened to the queue?
The destination confirms the restart, but the oldest job is still waiting longer. You can close the question about the command and leave the service question open. Before the pilot, agree on evidence for recovery: for example, queue age must fall below a threshold within a defined window without an increase in failed jobs. Use values that fit the workload. Until that check passes, record the known restart and the unverified recovery separately. If the deadline arrives first, the named responder gets the exact request and what the queue is doing.
Read diagram description
Start with an unhealthy target, spare capacity and no conflicting action. Claim one operation under the shared target limit and cooldown. Reconcile an unclear reply with the destination before another write. Check queue age, user transactions and adverse effects independently. Record the evidence when recovery is verified; stop or escalate if recovery fails or remains unclear.
What did the pilot cover?
Suppose a pilot sees 40 eligible incidents, attempts a repair in 30 and verifies recovery in 24. The 24 verified recoveries account for 80% of attempts and 60% of eligible incidents. The first figure tells you how often the attempted action was followed by verified recovery. The second tells you how much eligible work the automation actually covered. Neither number tells you why ten incidents went unattempted, or which of the six remaining attempts failed versus ran out of evidence.
Keep those distinctions as you track unnecessary actions, adverse effects, recurring failures and work handed back to people. For elapsed time to verified recovery, report the observation window and show which incidents had no verified recovery in that window. A fast median among successful repairs leaves out the cases that kept someone on call. The guide to choosing KPIs has more on windows and denominators.
Rehearse the missing reply
Put the qualifying failure and target, permission, capacity limit and recovery check in the incident runbook template, along with the deadline and the person who can stop the workflow. Approval covers the named repair under the conditions that made it safe. A dependency migration or lost recovery signal can take away that basis and send the action back to supervision.
In an isolated test environment, simulate a lost reply after submitting one restart. Hand the record to another responder. If they can tell whether to wait, check the destination or take over without taking another worker down, the repair has somewhere useful to go when the network goes quiet.
Sources & context
Sources linked in this article. Read alongside the author’s analysis; a citation does not independently verify a publisher’s claims.
- idempotentaws.amazon.com
- AWS Systems Manager manual approval stepdocs.aws.amazon.com
