现代软件系统往往必须应对不确定的运行条件,例如不断变化的工作负载或无线网络中波动的干扰。为确保这些系统实现其目标,必须缓解这些不确定性。实现这一点的一种方法是自适应,即为系统配备反馈回路。该反馈回路实现四个核心功能——监控、分析、规划和执行——它们以运行时模型的形式共享知识。对于具有大量适应选项(即大型适应空间)的系统,决定选择哪个选项进行适应可能非常耗时,甚至在可用于作出适应决策的时间窗口内不可行。当使用严格分析技术来选择适应选项时尤其如此,例如被广泛采用的运行时形式化验证。处理大量适应选项分析的一种技术是利用机器学习缩减适应空间。现有技术已经展示了该技术的有效性,但仍缺乏一种能够处理不同类型目标的系统性解决方案。本文提出 ML2ASR+,即 Machine Learning to Adaptation Space Reduction Plus(机器学习驱动的适应空间缩减增强版)的缩写。ML2ASR+ 的核心是一个可配置的机器学习流水线,支持针对阈值目标、优化目标和设定值目标对大型适应空间进行有效分析。我们在两个具有不同适应空间规模的应用上评估了 ML2ASR+:一个物联网应用和一个基于服务的系统。结果表明,ML2ASR+ 可用于处理不同类型的目标,并能够缩减适应空间,从而将作出适应决策的时间减少超过 90%,同时对适应目标的实现影响可忽略不计。
英文摘要:
Modern software systems often have to cope with uncertain operation conditions, such as changing workloads or fluctuating interference in a wireless network. To ensure that these systems meet their goals these uncertainties have to be mitigated. One approach to realize this is self-adaptation that equips a system with a feedback loop. The feedback loop implements four core functions -- monitor, analyze, plan, and execute -- that share knowledge in the form of runtime models. For systems with a large number of adaptation options, i.e., large adaptation spaces, deciding which option to select for adaptation may be time consuming or even infeasible within the available time window to make an adaptation decision. This is particularly the case when rigorous analysis techniques are used to select adaptation options, such as formal verification at runtime, which is widely adopted. One technique to deal with the analysis of a large number of adaptation options is reducing the adaptation space using machine learning. State of the art has showed the effectiveness of this technique, yet, a systematic solution that is able to handle different types of goals is lacking. In this paper, we present ML2ASR+, short for Machine Learning to Adaptation Space Reduction Plus. Central to ML2ASR+ is a configurable machine learning pipeline that supports effective analysis of large adaptation spaces for threshold, optimization, and setpoint goals. We evaluate ML2ASR+ for two applications with different sizes of adaptation spaces: an Internet-of-Things application and a service-based system. The results demonstrate that ML2ASR+ can be applied to deal with different types of goals and is able to reduce the adaptation space and hence the time to make adaptation decisions with over 90%, with negligible effect on the realization of the adaptation goals.
Report on A Formally-Founded Model-Based Approach to Engineer Self-Adaptive Systems
自适应系统管理自己,以处理只能在操作过程中解决的不确定性。实现自适应的一种常见方法是在系统中添加一个反馈回路,该反馈回路监视系统并使其适应以实现一组适应目标。ActivFORMS(Active FORmal Models for Self-adaptation)为工程自适应系统提供了一种端到端的方法。ActivFORMS依赖于反馈回路,该反馈回路由正式验证的模型组成,这些模型在运行时直接部署和执行,以实现自适应。在运行时,该方法依赖于统计验证技术,允许有效的分析可能的适应选项。此外,ActivFORMS支持适应目标的动态更改和验证模型的更新,以满足新的目标。ActivFORMSi提供了一个工具支持的ActivFORMS实例。该方法已使用物联网应用程序进行验证,用于建筑安全监控。本报告为论文“ActivFORMS:一种正式建立的基于模型的自适应系统工程方法”[Weyns and Iftikhar 2019]提供了补充材料。
Towards Better Adaptive Systems by Combining MAPE, Control Theory, and Machine Learning
KU Leuven(鲁汶大学);Linnaeus University(林奈大学);Carnegie Mellon University(卡内基梅隆大学);National Institute of Informatics(信息学研究所);Politecnico di Milano(米兰理工大学);York University(约克大学);University of Michigan(密歇根大学);University of York(约克大学);Waseda University(早稻田大学)