Self-management (computer science)
Self-management is the ability of a computer system to run itself with little or no help from people. A self-managing system can set itself up, find and fix its own faults, tune its own performance, and defend itself against attacks.[1][2]
Self-management answers a practical problem. Large computer systems became too complex for people to manage by hand, so designers built in software that watches the system and acts on it, following goals that people set.[1] IBM's research program on this problem, called autonomic computing, began with a 2001 IBM manifesto.[1]
The basic idea
A self-managing system works by feedback. It repeats a simple cycle.[3][4]
- Measure its own state.
- Compare that state with a goal.
- Act to close the gap.
- Measure again.
A room thermostat is the standard example. The temperature you set is the desired state, and the actual room temperature is the current state. The thermostat turns equipment on or off to bring the current state closer to the desired state.[3]
Self-managing software uses the same kind of loop. Salehie and Tahvildari describe it as a closed-loop system that must monitor itself and its surroundings, detect important changes, decide how to react, and act on that decision.[4] The changes can come from inside the system, such as a failure, or from outside, such as a rise in user requests.[4]
The four self-management properties
IBM grouped self-management into four properties: self-configuring, self-healing, self-optimizing, and self-protecting.[1][2] Later research treats this grouping as the standard one.[5] IBM's architecture blueprint describes each property as follows.[2]
| Property | What it does | Example task |
|---|---|---|
| Self-configuring | Adapts to changes, such as adding or removing components, using policies set by IT staff | Install software when a required package is missing |
| Self-healing | Discovers, diagnoses, and reacts to disruptions | Correct a wrong path so installed software can be found |
| Self-optimizing | Tunes resources and balances workloads (the amount of work the system must handle) to make the best use of resources | Adjust the workload when available capacity rises or falls |
| Self-protecting | Predicts, detects, identifies, and protects against threats | Take resources offline when an intrusion attempt is detected |
What each property involves
Kephart and Chess of IBM described each property in more detail in 2003.[1]
- Self-configuration. Installing, configuring, and combining large systems by hand is slow and error-prone. Self-configuring systems configure themselves automatically according to high-level policies.[1]
- Self-optimization. Middleware such as WebSphere, or databases such as Oracle or DB2, may have hundreds of settings that few people know how to tune. Self-optimizing systems monitor, experiment with, and tune their own settings.[1]
- Self-healing. The system detects, diagnoses, and repairs local problems caused by bugs or by hardware and software failures. In one example, a diagnosis component (perhaps a Bayesian network) reads log files, matches the fault to a known software patch, installs the patch, and retests.[1]
- Self-protection. The system defends itself as a whole against large-scale attacks or chains of failures that self-healing did not fix, and it uses early warnings from sensors to avoid or soften problems.[1] Threats it watches for include the following.[2]
- Unauthorized access, meaning use by someone who is not allowed in.
- Virus infection and spread.
- Denial-of-service attacks.
Some authors add further properties.[6]
- Self-awareness, meaning the system knows its own state.
- Self-monitoring, meaning it tracks changing conditions.
- Self-adjustment, meaning it changes its own behavior to match.
How a self-managing system is built
IBM's design splits a self-managing system into the part being managed and the part doing the managing.[1][2]
Managed element and autonomic manager
A managed element is any hardware or software part that can be managed. Examples include a server, storage unit, database, application server, or application.[2]
Kephart and Chess call a managed element plus the manager that controls it an autonomic element. It usually has one or more managed elements and a single autonomic manager.[1]
The manager reaches the managed element through a touchpoint, which has two interfaces.[2]
- A sensor reports the element's state and changes in that state.
- An effector lets the manager change that state.
The control loop
The autonomic manager runs a loop of four steps that share a common store of knowledge.[2] This loop is called the MAPE-K loop, after its steps monitor, analyze, plan, and execute, plus knowledge.[2][7]
- Monitor. Collect details from the managed element, such as measurements, settings, and the layout of its parts. Filter and combine them into a symptom, a sign or pattern that may point to a problem or a needed change.[2]
- Analyze. Model the situation to decide whether a change is needed, such as when a policy is not being met. Tools include time-series forecasting and queuing models, which predict waiting lines and delays. The result is a change request.[2]
- Plan. Create or select a procedure to make the change. A plan can be anything from a single command to a complex workflow.[2]
- Execute. Carry out the plan through the effectors, and update the knowledge if needed.[2]
The knowledge includes symptoms, policies, change requests, and change plans. It can be kept in a shared knowledge source so that several managers can use it.[2]
Policies
Policies tell the manager what to aim for. Kephart and Chess define them as high-level statements of goals and limits, usually written as rules or utility functions.[1] The manager's job is to turn these goals into low-level actions.[1]
Layers of managers
IBM's reference design stacks managers in layers.[2]
- Touchpoint managers work directly on managed elements. A single element may have several, for example one per self-management property.
- Orchestrating managers coordinate several touchpoint managers, either of the same kind or of different kinds. They give the system-wide view.
- Manual managers are consoles through which IT staff manage the system or oversee the automatic managers.
Levels of automation
IBM's adoption model describes self-management as something added in stages.[2] It rates a system along three dimensions.[2]
- How much is automated.
- How wide the scope is, from a single part to a whole business system.
- Which IT processes are automated.
The degree of automation has five levels.[2]
| Level | What happens |
|---|---|
| 1. Manual | IT staff do all the management work. |
| 2. Instrument and monitor | Tools collect details from managed elements, so staff spend less time gathering information. |
| 3. Analysis | Tools find patterns across elements, predict the best configuration, and advise staff on what to do. |
| 4. Closed loop | The system takes actions on its own, based on what it knows about its state. |
| 5. Closed loop with business processes | Business policies and goals steer the IT system. People watch business processes and change the goals. |
Moving from level 3 to level 4 needs both better technology and growing trust. IBM says systems reach the closed-loop level as the technologies improve and as people become more comfortable with their advice.[2] Kephart and Chess expected people to hand over lower-level decisions first and to step in less often over time.[1]
Example: Kubernetes
Kubernetes, widely used software for running applications on clusters of machines, shows self-management in everyday use. It is built from many controllers, each a control loop that watches part of the cluster and moves its current state toward the desired state.[3]
Self-healing
Kubernetes documents several self-healing behaviors.[8]
- It restarts a container (a packaged, isolated running program) that fails, according to its restart policy.
- It replaces a failed pod (a unit of running software) to keep the requested number of copies.
- It can reattach stored data to a new pod on another machine when a machine fails.
- It stops sending traffic to a failed pod behind a service.
These behaviors have limits. Kubernetes can restart containers, but errors in the application itself must be fixed separately.[8]
Autoscaling
The Horizontal Pod Autoscaler is a self-optimizing loop that adds or removes copies of a pod to match demand.[9] It runs at intervals, every 15 seconds by default, rather than continuously.[9] It is one form of autoscaling.
Each time it runs, it calculates the number of copies it wants:[9]
- is the current number of copies.
- is the current value of the chosen measure. For targets given as averages, it is the average over all the copies.
- is the desired value of the measure, which must be greater than zero.
- means round up to the next whole number.
The table shows three cases worked out with the formula. Kubernetes gives the doubling and halving cases as examples.[9]
| Measured value vs. target | Starting copies | Calculation | Resulting copies |
|---|---|---|---|
| 2 times | 4 | 8 | |
| 0.5 times | 4 | 2 | |
| 1.5 times | 3 | 5 |
The autoscaler skips any action when the ratio is close to 1. The allowed gap, called the tolerance, is 0.1 by default.[9]
Avoiding flapping
A loop that reacts to every small change can keep adding and removing copies. Kubernetes calls this thrashing or flapping and compares it to hysteresis.[9]
Two settings guard against it.[9]
- The tolerance ignores small changes in the measure.
- A stabilization window makes the autoscaler use the highest recommendation from a recent period before scaling down. By default the window is 300 seconds for scaling down, and there is none for scaling up.
Defining self-management exactly
Researchers use the many "self-" terms loosely, so several have tried to define them exactly.[10]
A formal definition
Berns and Ghosh call self-management the parent of all the other self-* properties: a system is self-managing if it has at least one of them.[10] They give a template definition.
- is the set of all external actions that can affect the system, such as faults or attacks.
- is the subset of those actions the system is built to handle.
- is a property of the whole system's state that should hold, such as "all services are running".
Other properties come from limiting the three parts of the template.[10]
- Self-healing restores after certain faults.
- Self-optimization improves an objective function, a score that measures how well a goal is met.
- Self-protection maintains a property related to trust during some malicious actions.
A hierarchy of properties
In his 2009 thesis, Salehie arranged the self-* properties in three levels.[5]
- General level. Self-adaptiveness (changing behavior as conditions change) sits here alongside self-organizing. Self-adaptiveness includes self-managing, self-governing (directing its own operation), and self-maintenance (keeping itself working).
- Major level. The four IBM properties: self-configuring, self-healing, self-optimizing, and self-protecting.
- Primitive level. The base properties include self-awareness (the system knows its own state and behavior), self-monitoring (on which self-awareness rests), and context-awareness (the system knows its surroundings).
The two general properties differ in direction.[5]
| Property | Direction | How the behavior arises |
|---|---|---|
| Self-adaptiveness | Usually top-down | The system adjusts itself as a whole |
| Self-organizing | Bottom-up | Many interacting parts, each knowing little about the whole system, produce it together |
Related concepts
Self-management overlaps with several older and neighboring ideas.
- Self-adaptive systems are closed-loop systems that adjust themselves to changes while running.[4] Salehie places self-managing under self-adaptiveness.[5]
- Self-organization stresses decentralized control, meaning control shared across many parts instead of one central manager, and behavior that emerges from their interaction.[5]
- Self-stabilization, introduced by Edsger Dijkstra in 1974, is the ability of a system to recover to a correct state from any starting state.[10] It must recover after any temporary fault, while self-healing need only recover after certain faults.[10]
- Fault tolerance is closely linked. Berns and Ghosh view self-healing mostly as a form of fault tolerance that recovers from a fault instead of hiding it.[10]
Control theory gives formal tools for feedback loops. It judges loops by different properties than software research usually does, and the two sets are not easy to make consistent.[11]
| Field | What it judges a loop by |
|---|---|
| Control theory | Stability, and settling time (how long the output takes to settle near its target) |
| Self-adaptive software | Performance, reliability, and cost |
History
Self-management became a named research area through IBM's autonomic computing initiative.[1][6]
The IBM manifesto
In 2001, an IBM manifesto by Paul Horn warned of a software complexity crisis.[1][12] Applications and environments had grown to tens of millions of lines of code, and managing them was becoming almost impossible.[1]
Paul Horn, IBM's senior vice president of research, chose the word "autonomic" on purpose.[1] The autonomic nervous system controls heart rate and body temperature without conscious thought.[1] Horn described the goal as computer systems that regulate themselves the way that system regulates and protects the body.[12]
Growth of the field
Key steps followed over the next decade.
- In 2003, Kephart and Chess published "The Vision of Autonomic Computing" in IEEE Computer, setting out the four properties and the autonomic element.[1]
- In 2005, IBM published the third edition of its architecture blueprint, with the monitor, analyze, plan, execute loop and the adoption model.[2]
- Researchers extended the idea to networks as autonomic communications, an active topic especially in Europe with support from EU Framework programs.[6]
- In 2010, a review found many results, especially in enterprise and cloud computing, communications, and sensor networks.[6]
Self-management is now used in many practical applications. A 2022 survey of 184 people working in the field, in 21 countries, named two typical examples: cloud resources that grow or shrink with demand, and automated server management.[13]
The role of people and open challenges
Self-managing systems shift work from people to software, but they do not remove people.[1]
People set the goals
People must still give the system its policies, meaning the goals and limits on its actions.[1]
This makes errors in policies costly. Automation can cut many human errors, but it also increases the effect of any error in the goals.[1] Because policies shape behavior not directly but through the system's choices, a wrong policy is hard to trace and fix.[1]
Kephart and Chess drew two engineering tasks from this.[1]
- Make sure the goals are stated correctly in the first place.
- Make sure the system behaves sensibly even when they are not.
Goals are often complex, have many dimensions, and conflict with each other. Even "maximize utility" requires someone to write down a utility function over many features.[1]
Open problems
Several problems remain open.
- Emergent behavior. It is hard to predict how system-wide behavior arises from many interacting autonomic elements, and harder to design elements that produce a desired global behavior.[1] See emergence.
- Combining solutions. Researchers have built many point solutions, meaning fixes for single problems. Combining them into whole self-managing systems remains the larger task.[6]
- Security and trust. Self-managing systems face all the security, privacy, and trust issues of ordinary systems. They must follow security policies in a way that people can understand and that is fail-safe, meaning it stays safe when something goes wrong.[1]
- Learning inside the loop. Machine learning is mostly used to update adaptation rules and manage resources. Open problems include the performance of learning, managing its effects, and handling more complex goals.[7]
- Guarantees. Matching control-theory guarantees, such as stability, with software goals, such as performance and cost, is still an open problem.[11]
References
- The Vision of Autonomic Computing, Jeffrey O. Kephart and David M. Chess, IEEE Computer, 2003.
- An architectural blueprint for autonomic computing, third edition, IBM, 2005.
- Controllers, Kubernetes documentation, The Kubernetes Authors, 2025.
- Self-adaptive software: Landscape and research challenges, Mazeiar Salehie and Ladan Tahvildari, ACM Transactions on Autonomous and Adaptive Systems, 2009.
- A Quality-Driven Approach to Enable Decision-Making in Self-Adaptive Software, Mazeiar Salehie, PhD thesis, University of Waterloo, 2009.
- Fulfilling the Vision of Autonomic Computing, Simon Dobson, Roy Sterritt, Paddy Nixon, and Mike Hinchey, IEEE Computer, 2010.
- Applying Machine Learning in Self-Adaptive Systems: A Systematic Literature Review, arXiv, 2021.
- Kubernetes Self-Healing, Kubernetes documentation, The Kubernetes Authors, 2025.
- Horizontal Pod Autoscaling, Kubernetes documentation, The Kubernetes Authors, 2025.
- Dissecting Self-* Properties, Andrew Berns and Sukumar Ghosh, Third IEEE International Conference on Self-Adaptive and Self-Organizing Systems (SASO), 2009.
- Towards Bridging the Gap between Control and Self-Adaptive System Properties, arXiv, 2020.
- Autonomic Computing: Introduction, Motivations, Overview (tutorial slides), Rutgers University, 2003.
- Self-Adaptation in Industry: A Survey, Danny Weyns et al., arXiv, 2022.
