当Web应用自我修复:基于MAPE-K模型的故障容忍与自适应恢复方法
When Web Apps Heal Themselves: A MAPE-K Based Approach to Fault Tolerance and Adaptive Recovery
AI总结:
本文提出一种基于MAPE-K模型的模块化自我修复框架,结合AutoFix机制实现自适应故障恢复,通过实验验证该框架在故障检测和恢复中的有效性,提高了Web应用的容错性和适应性。
摘要:
确保现代Web应用的可靠性和韧性仍然是一个关键挑战,由于系统复杂性和动态运行环境的增加。本研究提出了一种基于共享知识库的监控-分析-计划-执行(MAPE-K)模型的模块化自我修复框架,并整合了受AutoFix启发的自适应故障恢复机制。通过设计和开发研究(DDR)方法,该系统在二十种运行故障场景中进行了实施和评估,包括服务崩溃、内存泄漏和数据库断开。实验结果表明,所提出的框架实现了平均故障检测F1得分为90.7%,恢复成功率为93.2%。AutoFix模块将平均恢复时间(TTR)减少了56.2%,实现了平均恢复时间为3.92秒。系统吞吐量在故障条件下保持在88%至95%之间,响应时间仅增加了3.1%。此外,迭代反馈机制通过多个循环提高了恢复效率18.6%。这些发现表明,所提出的框架通过反馈驱动的适应性提供了一种实用且可扩展的方法,以通过反馈驱动的适应性增强Web应用的容错性。尽管当前实现依赖于预定义的恢复策略,但学习导向的反馈为未来更自主的自我修复系统的开发奠定了基础。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。