Unsafe Resilience4j policy exploration can increase user-visible failures
Original title: When Online Adaptation of Resilience Policies Hurts: Safe Exploration and Measurement Pitfalls in Resilience4j
A safe policy menu and bounded exploration beat the production default in every winnable fault scenario the authors tested.
Researchers test whether a contextual bandit can retune Resilience4j circuit breaker, retry, and bulkhead settings at runtime in Spring Boot 3 using Prometheus signals. A naive menu containing aggressive breakers scored worse than the default in three of four winnable fault scenarios. Restricting breakers to the latency SLO and bounding exploration lets AdaptR4j beat the default, outperform a fixed policy when faults change, and cut user-visible failures up to 3.7x versus the naive design. A context-free bandit on the same safe menu performs statistically indistinguishably.
- Safeguarded runs beat the default with p < 0.001 across three runs each.
- Run-to-run standard deviation was at most 0.03.
- An earlier harness made every breaker 100x too strict through a unit mismatch.
- That error hid rejected calls, so 94% of requests failed while metrics looked excellent.
From the original article
1 min read at arxiv.orgCircuit breaker, retry, and bulkhead settings in Java microservices are tuned once and frozen, although the best setting depends on the fault a dependency is currently showing. We study whether an online learner can pick these settings at runtime.
By Rajat M. Barot · arxiv.org
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.