# Agar: What-If Analysis for Microservice Applications

DevFeed: [Agar: What-If Analysis for Microservice Applications](<https://devfeed.tech/articles/agar-what-if-analysis-for-microservice-applications-104164.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.36636>)

Author: Saarth Deshpande, Neeraja J. Yadwadkar, Venkat Arun

Published: 2026-10-28T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Distributed Computing](<https://devfeed.tech/sources/arxiv-distributed-computing.md>)

Topics: [Cloud Native Operations](<https://devfeed.tech/topics/cloud-native-operations.md>), [Operations research and optimization](<https://devfeed.tech/topics/operations-research-and-optimization.md>), [digital experience monitoring](<https://devfeed.tech/topics/digital-experience-monitoring.md>)

Tags: [analysis](<https://devfeed.tech/tags/analysis.md>), [autoscalers](<https://devfeed.tech/tags/autoscalers.md>), [autoscaling](<https://devfeed.tech/tags/autoscaling.md>), [bugs](<https://devfeed.tech/tags/bugs.md>), [cost](<https://devfeed.tech/tags/cost.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [cs-dc](<https://devfeed.tech/tags/cs-dc.md>), [cs-os](<https://devfeed.tech/tags/cs-os.md>), [cs-pf](<https://devfeed.tech/tags/cs-pf.md>), [microservices](<https://devfeed.tech/tags/microservices.md>), [performance-analysis](<https://devfeed.tech/tags/performance-analysis.md>), [prediction](<https://devfeed.tech/tags/prediction.md>), [resource](<https://devfeed.tech/tags/resource.md>)

## AI overview

AGAR answers microservice what-if questions by composing per-component models that predict interpretable bounds on observed behavior instead of exact values. It uses those bounds to assess end-to-end SLO feasibility and frame autoscaling as finding the smallest resource allocation that meets an SLO. In evaluations across three applications, an AGAR-derived autoscaler reduced CPU allocation by up to 36.8% compared with state-of-the-art horizontal autoscalers while satisfying application SLOs. The abstract also reports that AGAR can estimate operational cost from workload traces, guide startup-time optimization, and localize performance bugs.

## Source excerpt

arXiv:2610.36636v1 Announce Type: new Abstract: Microservice operators must reason about how applications would behave under changes that have not yet occurred: different workloads, resource allocations, or SLO targets. Evaluating every alternative experimentally is expensive, but predicting such counterfactuals is difficult because microservices contain many interacting components. End-to-end models must learn behavior over a combinatorial space of conditions, but composing per-component predictors causes prediction errors to accumulate. We address this challenge by changing what each component model must predict. Rather than predicting exact values, we learn simple, interpretable bounds that contain every observed behavior while remaining tight enough to support useful end-to-end conclusions. We build AGAR, a counterfactual performance analysis tool that composes these models to answer end-to-end SLO-feasibility questions. This allows us to formulate autoscaling as a counterfactual query: what is the smallest resource allocation under which an SLO is met? Our evaluation demonstrates that across three microservice applications, AGAR's bounds are actionable: its derived autoscaler reduces CPU allocation by up to 36.8% over state-of-the-art horizontal autoscalers while satisfying application SLOs. Further, AGAR is able to predict operational cost given workload traces, provide guidance on which service's startup time to optimize and localize performance bugs within each application.