FastFI: 通过故障注入增强基于微服务系统的API调用点鲁棒性
FastFI: Enhancing API Call-Site Robustness in Microservice-Based Systems with Fault Injection
AI总结:
FastFI通过动态故障注入和深度优先搜索求解器,有效提升微服务系统API调用点的鲁棒性,减少故障注入时间并识别高影响API。
摘要:
故障注入是评估软件可靠性的重要技术,能够主动检测系统缺陷,防止其在生产环境中显现。然而,随着微服务架构复杂性的增加,故障注入空间呈指数级增长,使得传统随机注入变得低效。最近的基于行踪的方法通过启发式剪枝缓解了这一问题,但面临两个限制。首先,组合故障发现仍受通用目的的SAT求解器限制,无法利用导出的CNF公式中的单调性和低重叠结构,通常依赖于故障大小的静态上界。其次,现有技术在报告检测到的故障之外,提供有限的注入后指导。为了解决这些挑战,我们提出了FastFI,一种故障注入引导的框架,以增强基于微服务系统的API调用点的鲁棒性。FastFI具有基于深度优先搜索的求解器和动态故障注入,以发现所有有效的组合故障,并利用故障注入结果来识别关键API,其调用点应被加固以提高鲁棒性。在四个代表性的微服务基准上的实验表明,与最先进的基线相比,FastFI将端到端的故障注入时间减少了平均76.12%,同时保持了可接受的资源开销。此外,FastFI准确识别了高影响的API,并提供了调用点加固的可操作指导。
英文摘要:
Fault injection is a key technique for assessing software reliability, enabling proactive detection of system defects before they manifest in production. However, the increasing complexity of microservice architectures leads to exponential growth in the fault-injection space, rendering traditional random injection inefficient. Recent lineage-driven approaches mitigate this problem through heuristic pruning, but they face two limitations. First, combinatorial-fault discovery remains bottlenecked by general-purpose SAT solvers, which fail to exploit the monotone and low-overlap structure of derived CNF formulas and typically rely on a static upper bound on fault size. Second, existing techniques provide limited post-injection guidance beyond reporting detected faults. To address these challenges, we propose FastFI, a fault-injection-guided framework to enhance the robustness of API call sites in microservice-based systems. FastFI features a DFS-based solver with dynamic fault injection to discover all valid combinatorial faults, and it leverages fault-injection results to identify critical APIs whose call sites should be hardened for robustness. Experiments on four representative microservice benchmarks show that FastFI reduces end-to-end fault-injection time by an average of 76.12\% compared to state-of-the-art baselines while maintaining acceptable resource overhead. Moreover, FastFI accurately identifies high-impact APIs and provides actionable guidance for call-site hardening.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。