David Garlan

The idea of a system that adapts itself while it is running is as old as the notion of computation. But for many years the complexity of creating such systems hardly justified their value. Systems typically ran in predictable, stable environments, and their requirements and fault models were fairly well prescribed.

But over the past couple of decades, many things have driven system designers to reconsider the proposition of self-adapting software systems. Today systems must function in complex environments built out of infrastructure, components, services, and other systems that are not under direct control of the original system’s developers. Requirements may change. Environments change, particularly in the presence of mobility. System configurations must be optimized to satisfy multiple (often conflicting) quality goals dictated by business context. And, at the same time, the need to deploy systems with 24/7 availability has moved out of the niche system category (telephone system, energy grid, etc.) into mainstream software.

About a decade and a half ago, people began to realize that to account for this new reality, it was important to understand how to make systems more resilient, more malleable, and more extensible, without compromising quality, cost of development, and cost of deployment—and, significantly, without taking systems offline. Old solutions of simply throwing more system administrators at the problem were becoming increasingly cost-prohibitive. And engineering fault tolerance and system reconfiguration directly into the system was leading to unsustainable complexity.

What emerged was a blossoming of a new focus on the software engineering of self-adaptive systems that could rise to the challenges of modern contexts. Almost simultaneously there emerged new venues for discussing such issues: the ACM Workshops on Self-Healing Systems (WOSS), the International Conference on Autonomic Computing (ICAC), the international workshop on self-adaptive software (IWSAS), and others. And, within the domain of commercial systems, we began to see myriad new (albeit special-purpose) mechanisms for adaptation: automated server monitoring and repair in Internet-based systems, adaptive performance through cloud computing platforms, and micro-services to support rapid, and frequent, deployment of functional enhancements.

Additionally, a major advance in our thinking about such systems emerged through the recognition that one way to address the challenges of self-adaptation was to take a control systems perspective on the problem. Specifically, a system could be made self-adaptive by adding sensors to monitor its runtime state, actuators to change it at runtime, and a separate reasoning mechanism to decide when it is appropriate to adapt the system, and how best to do so. This was famously referred to (in some circles) as the MAPE-K loop, or monitor-analyze-plan-execute using a shared base of knowledge.

This perspective (among others) helped researchers and developers consider the architectures of self-adaptive systems as first-class areas of study. And while the overall MAPE-K control architecture tends to encompass most such efforts, numerous new challenges emerge in order to get the details right.

Monitoring : What does it mean to have sufficient situational awareness, and what can one do when such information is unavailable or highly uncertain? How can one sift through large volumes of low-level system observations to derive higher-level views of system behavior and state?

Analysis : How can a system determine when adaptation is necessary? How can it identify the part of the system that needs to be adapted? How do you prioritize the possible problems that need to be addressed when several are detected? To what extent should the system focus on faults, and to what extent on homeostatic improvement? What are appropriate measures of system quality that take into account multiple dimensions of concern (e.g., cost, performance, security, availability)? How do you recognize “softer” problems, where the system is out of balance with respect to competing quality attributes (e.g., sacrificing deployment cost to improve performance)?

Planning : How can one determine an appropriate adaptation strategy that considers the inherent trade-offs between different quality dimensions that might be affected? How can one balance the need for rapid response to critical problems, while still support longer-range system improvement? How can one provide assurance that adaptation will make a system better, and not worse? How can one provide guarantees about coverage of potential problems? How can one build planning mechanisms that are proactive in anticipating problems and correcting them before they do damage? How do you reason about uncertainty, given the fact that we may not know precisely the state of the system, environment, or even the outcomes of repair actions?

Execution : How can you build systems so their actuation interface provides more flexibility to the adaptive process? How can you support concurrent adaptations of the same system?

Knowledge : What kinds of information are most useful to the adaptation process? How can you strike a balance between abstract views of the system and detailed enough information to make informed decisions about adaptation? Can cooperating adaptive systems share knowledge to improve the adaptation behavior of the ensemble?

In addition to these kinds of challenges, new forces in technology are raising interesting questions about positioning adaptive systems in today’s ecosystems. For example, increasingly computing systems must work in the context of physical devices and technologically rich environments. Such systems, sometimes referred to as the Internet of Things or cyber-physical systems, raise the question of how to combine what we have learned about software adaptation with more traditional disciplines of physical control. As another example, systems today must take into account the capabilities of the humans that interact with them. Humans may be clients of the adaptive system, but also might be viewed as components in the overall adaptation process. Indeed, in principle humans can serve in any of the MAPE-K roles—for example, providing contextual information to the system, assisting with adaptation, or performing physical actions to achieve some desired result.

It is clear that much remains to be done, and what we do know today will need to evolve with the shifting landscape of technology and its use in our world. The chapters in this book span the entire field: from engineering of adaptive systems, to reasoning about them, to exploring their use in emerging frontiers. Despite this diversity, however, across all of these chapters is a broad concern with the question of balancing trade-offs. The moment you go down the path of adaptation, you are faced with questions about how best to reconcile conflicting goals and requirements: of timely response with optimal repair, of multiple system qualities that must be balanced to provide overall utility, of automated versus human-assisted adaptation, of localized versus distributed control, of human-assisted versus stand-alone adaptation. Balancing trade-offs thus provides a common theme underlying these chapters, and, in fact, any serious treatment of self-adaptation. As such, this book provides both a broad perspective and deep exploration of many of these issues, serving as an excellent starting point for someone who wants to know more about the field, as well for researchers and practitioners who want a more in-depth examination of recent research and its potential.