liveBook · Manning

Self-healing mechanism

As explained in Effective Platform Engineering

Self-healing is the capability of a system to detect deviations from its desired state and automatically restore correct operation.

A self-healing mechanism detects when an actual system state differs from its desired state and automatically restores correct operation. It turns resilience from failure containment into active correction, reducing operational friction for teams building, releasing, and operating software. section 7.0

Implement self-healing most directly where healthy states and failure conditions are known:

  • Define telemetry, queries, and alerts for violations such as sustained Kubernetes CPU utilization above 90%, then trigger corrective action. section 5.1.3
  • Use Kubernetes orchestration to redeploy failing services, move workloads from failing virtual machines, or adjust instance counts with traffic. section 7.0
  • Extend the pattern through the Kubernetes API when platform components need correction beyond standard service orchestration. section 7.0
  • Instrument unknown failure paths with telemetry and tracing; self-healing is easiest where the violated healthy state is already understood. section 5.1.3

Project-creation service

Suppose load testing establishes that an API creating source-control projects handles six simultaneous requests, while production traffic reaches more. Define the healthy capacity, observe the violation, and use platform orchestration to restore service capacity quickly. section 5.1.3

Figure 5.3 Knowing what to look for when querying observability data is an evolving process.

Use the observability progression to distinguish failures that support explicit self-healing from problems that first require better telemetry and diagnosis. section 5.1.3

How Effective Platform Engineering covers it

How deep it goes
Explains desired-state correction, Kubernetes actions, telemetry triggers, and limits around unknown failure modes.
Examples
Uses failing-service redeployment, workload migration, traffic-based scaling, CPU thresholds, and API capacity limits.
What you can do after
Operate/configure Kubernetes-based correction for known violations of healthy service states.
How it connects
Connects desired state with Kubernetes, control planes, orchestration, telemetry, tracing, and observability.

Also explained in

Compare how 3 books explain self-healing mechanism →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Effective Platform Engineering. The section links point to the parts of the book it draws on.