arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.00972cs.SE
收藏

Cast:面向生产云服务系统的自动化容错测试

Cast: Automated Resilience Testing for Production Cloud Service Systems

School of Software Engineering Sun Yat-sen University(中山大学软件学院);Huawei Cloud(华为云)

Zhuangbin Chen, Zhiling Deng, Kaiming Zhang, Yang Liu, Cheng Cui, Jinfeng Zhong, Zibin Zheng

AI总结:

Cast通过自动化端到端测试框架,系统提升工业微服务系统的可靠性,发现并验证137个潜在容错漏洞。

摘要:

微服务架构的分布式特性引入了显著的容错挑战。传统测试方法受限于大量的手动工作和过于简化的测试环境,无法捕捉生产系统的复杂性。为解决这些局限性,我们提出了Cast,一种面向微服务容错测试的自动化、端到端框架。它通过回放生产流量,针对全面的应用级故障库,以锻炼内部错误处理逻辑,实现高测试保真度。为管理组合测试空间,Cast采用复杂性驱动策略,系统地修剪冗余测试并优先处理最关键的服务执行路径。Cast通过三个阶段的流水线(即启动、故障注入和恢复)自动化测试生命周期,并利用多方面的Oracle自动验证系统对细致标准的容错性。在华为云部署超过八个月,Cast已被许多服务团队采用,主动解决容错漏洞。对四个具有数百万轨迹的大规模应用的分析揭示出137个潜在漏洞,其中89个已由开发者确认。为进一步量化其性能,Cast在48个复现的bug基准集上进行评估,实现了90%的高覆盖率。结果表明,Cast是系统提高工业微服务系统可靠性的实用且有效的解决方案。

英文摘要:

The distributed nature of microservice architecture introduces significant resilience challenges. Traditional testing methods, limited by extensive manual effort and oversimplified test environments, fail to capture production system complexity. To address these limitations, we present Cast, an automated, end-to-end framework for microservice resilience testing in production. It achieves high test fidelity by replaying production traffic against a comprehensive library of application-level faults to exercise internal error-handling logic. To manage the combinatorial test space, Cast employs a complexity-driven strategy to systematically prune redundant tests and prioritize high-value tests targeting the most critical service execution paths. Cast automates the testing lifecycle through a three-phase pipeline (i.e., startup, fault injection, and recovery) and uses a multi-faceted oracle to automatically verify system resilience against nuanced criteria. Deployed in Huawei Cloud for over eight months, Cast has been adopted by many service teams to proactively address resilience vulnerabilities. Our analysis on four large-scale applications with millions of traces reveals 137 potential vulnerabilities, with 89 confirmed by developers. To further quantify its performance, Cast is evaluated on a benchmark set of 48 reproduced bugs, achieving a high coverage of 90%. The results show that Cast is a practical and effective solution for systematically improving the reliability of industrial microservice systems.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑