Learning Recovery Strategies for Dynamic Self-healing in Reactive Systems
Mateo Sanabria, Ivana Dusparic, Nicolas Cardozo
TL;DR
The paper addresses recovering from unknown, unannounced failures in dynamic reactive systems by introducing runtime monitors that define fault predicates at any point in execution and by learning recovery strategies online through reinforcement learning. Learned recovery actions are instantiated as COP-based variations that override base behavior when fault states are detected, enabling autonomous healing without predefined hooks. Validation on an ASCII mouse-tracking example and the DeltaIoT self-healing exemplar shows the approach can detect faults and generate effective recovery sequences, with healing performance reaching up to 92.6% in some scenarios and comparable results to predefined strategies in DeltaIoT. The work expands self-healing to reactive systems and demonstrates continuous online learning of recovery actions, with potential for distributed monitoring and reduced design-time specification.
Abstract
Self-healing systems depend on following a set of predefined instructions to recover from a known failure state. Failure states are generally detected based on domain specific specialized metrics. Failure fixes are applied at predefined application hooks that are not sufficiently expressive to manage different failure types. Self-healing is usually applied in the context of distributed systems, where the detection of failures is constrained to communication problems, and resolution strategies often consist of replacing complete components. Our proposal targets complex reactive systems, defining monitors as predicates specifying satisfiability conditions of system properties. Such monitors are functionally expressive and can be defined at run time to detect failure states at any execution point. Once failure states are detected, we use a Reinforcement Learning-based technique to learn a recovery strategy based on users' corrective sequences. Finally, to execute the learned strategies, we extract them as COP variations that activate dynamically whenever the failure state is detected, overwriting the base system behavior with the recovery strategy for that state. We validate the feasibility and effectiveness of our framework through a prototypical reactive application for tracking mouse movements, and the DeltaIoT exemplar for self-healing systems. Our results demonstrate that with just the definition of monitors, the system is effective in detecting and recovering from failures between 55%-92% of the cases in the first application, and at par with the predefined strategies in the second application.
