arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.20567cs.NIcs.CRcs.DC
收藏

通过重试操作对微服务请求进行优先级排序

Prioritizing Microservice Requests via Retries

Tel Aviv University(特拉维夫大学);Columbia University(哥伦比亚大学)

Ofek Lavi, Jhonatan Tavori, Hanoch Levy, Anat Bremler-Barr

AI总结:

针对微服务架构中重试操作引发的问题,提出DiffTry差异化重试机制,通过轻量无状态设计实现请求优先级排序,可降低过载影响,经模拟与Kubernetes部署验证有效。

摘要:

云服务正快速转向独立管理的微服务架构,这种独立性可能导致微服务间出现临时协调失误,进而引发有价值事务的过载与拒绝,攻击者还可利用这一弱点发起过载攻击,造成性能与成本损失。重试操作是应对少量请求被拒的关键机制,但在过载期间,它既无法保护有价值事务免遭拒绝,还会引发大规模、降低性能的重试风暴。我们对重试操作进行了简单修改,将重试转化为拒绝优先级排序机制DiffTry(差异化重试),以克服上述缺陷。该机制基于简单、轻量、分布式且无状态的设计,既无需过载感知,也无需微服务协调。我们开发了分析模型,捕捉DiffTry在串联双服务场景下的有效性,随后将其推广至服务网络场景。该理论框架可让从业者针对给定网络量化生成的优先级排序与拒绝率,并提供形式化保证,证明DiffTry可大幅降低偶然及攻击者策划的过载影响。我们在模拟环境与实际Kubernetes部署中验证了这些预测,DiffTry是一款简单的即插即用服务网格插件,无需修改应用程序,实测拒绝率与分析结果高度吻合。

英文摘要:

Cloud services rapidly shift towards independently-managed microservices architectures. This independence may lead to temporary microservices miscoordination, resulting in overloads and rejections of valuable transactions. This weakness may further be exploited by attackers to launch overload attacks inflicting performance and cost damages. Retry operations are a key machinery aiming at overcoming seldom rejections. However, during overload periods they: a) Fail protecting valuable transactions from rejections, and b) Trigger large-scale performance-degrading retry storms. We propose simple modifications in retry operations, overcoming these deficiencies by transforming retries into a rejection prioritization mechanism, DiffTry (Differential Retries). It is based on a simple, lightweight, distributed and stateless design and requires neither overload sensing nor microservices coordination. We develop an analytical model capturing DiffTry's effectiveness for two services in tandem, then generalize it to networks of services. Our theoretical framework lets practitioners quantify, for a given network, the resulting prioritization and rejection rates, and yields formal guarantees that DiffTry substantially reduces the impact of both incidental and adversarial orchestrated overloads. We validate these predictions in simulation and on a live Kubernetes deployment, where DiffTry is a simple drop-in service-mesh plugin requiring no application changes; the measured rejection closely matches the analysis.

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

↑