Prioritizing Microservice Requests via Retries
Ofek Lavi, Jhonatan Tavori, Hanoch Levy, Anat Bremler-Barr
Abstract
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.
Create a lesson
Related papers
Multi-Cell LTE-U/Wi-Fi Coexistence Evaluation Using a Reinforcement Learning Framework
José M. de C. Neto, Sildolfo F. G. Neto, Pedro M. de Santana et al.
A Multiarmed Bandit Approach for LTE-U/Wi-Fi Coexistence in a Multicell Scenario
Iago Diógenes do Rego, José M. de Castro Neto, Sildolfo F. G. Neto et al.
Wearable Data Profiling for NDN-Based Smart Healthcare: Performance Comparison with an IP Baseline
Mohammad R. Shakournia, Nasser Yazdani, Carlos T. Calafate
SPARC: Substation-to-Peering Assessment of Resilience and Cascades
Tanya Shreedhar, Kevin Vermeulen, Amreesh Phokeer et al.
An Experimental Study on the Functional Correctness of Network Device Configurations Produced by Large Language Models
Anastasios C. Politis
BIER-DC: Stateless Multicast for In-Orbit Space Data Centers in LEO Constellations
Mostafa Abdollahi, Wenjun Yang, Kousar Malekinasab et al.