arXiv:2605.19261cs.SEcs.AI2026-05

基于MAPE-K的自愈框架可自动检测并修复93%的Web应用故障,恢复速度提升超一半。

When Web Apps Heal Themselves: A MAPE-K Based Approach to Fault Tolerance and Adaptive Recovery

  • 用MAPE-K模型+AutoFix机制实现故障自愈
  • 故障检测F1值达90.7%,恢复成功率93.2%
  • 适合需高可用性的系统运维与研发团队

现代Web应用因系统复杂性和动态运行环境,可靠性与韧性保障面临挑战。本文提出一种基于监控-分析-规划-执行共享知识库(MAPE-K)模型的模块化自愈框架,并融合AutoFix机制实现自适应故障恢复。采用设计与开发研究方法,通过20种运行时故障场景的受控注入实验评估系统性能,包括服务崩溃、内存泄漏和数据库断连。结果表明,该框架平均故障检测F1得分为90.7%,恢复成功率达93.2%;AutoFix模块使平均恢复时间(TTR)缩短56.2%,降至3.92秒;故障期间系统吞吐量保持在88%~95%之间,响应时间仅增加3.1%。迭代反馈机制使恢复效率在多轮中提升18.6%。研究表明,该框架通过反馈驱动适配,为提升Web应用容错能力提供了实用且可扩展的方案。当前依赖预设恢复策略,但学习型反馈集成已为未来更自主的自愈系统奠定基础。

原文摘要 · Abstract (English)

Ensuring the reliability and resilience of modern web applications remains a critical challenge due to increasing system complexity and dynamic runtime environments. This study proposes a modular self-healing framework based on the monitor-analyze-plan-execute over a shared knowledge base (MAPE-K) model, integrated with an AutoFix-inspired mechanism for adaptive fault recovery. Using a design and development research (DDR) approach, the system was implemented and evaluated through controlled fault injection experiments across twenty runtime failure scenarios, including service crashes, memory leaks, and database disconnections. Experimental results demonstrate that the proposed framework achieved a mean fault detection F1-score of 90.7% and a recovery success rate of 93.2%. The AutoFix module reduced the average time-to-recovery (TTR) by 56.2%, achieving an average recovery time of 3.92 seconds. System throughput was maintained between 88% and 95% during fault conditions, with only a 3.1% increase in response time. Additionally, iterative feedback mechanisms improved recovery efficiency by 18.6% over multiple cycles. These findings indicate that the proposed framework provides a practical and extensible approach to enhancing fault tolerance in web applications through feedback-driven adaptation. While the current implementation relies on predefined recovery strategies, the integration of learning-oriented feedback establishes a foundation for future development of more autonomous self-healing systems.

自愈系统故障恢复MAPE-KWeb应用

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。