Routing Bursts Like Ligands: Collective Transport for Joint Vertical–Horizontal Autoscaling

Cloud services handle sudden traffic spikes in two ways. They can give running copies of a service more CPU or GPU share on their current machine (vertical scaling), which takes milliseconds but is capped by the machine's spare capacity. Or they can start new copies (horizontal scaling), which has no hard cap but takes tens of seconds to minutes. Hybrid autoscalers use the fast knob as a buffer while the slow one catches up. They share a quiet flaw. Each service asks its own machine for more headroom as if no other service were asking. When a burst hits several co-located services at once, their requests add up to more than the machine has. The buffer fails exactly when it is needed, and a separate horizontal controller reacts late and often in the opposite direction.

Computational biology has already solved a problem with the same structure. When inferring which cells signal to which from gene expression, scoring each ligand–receptor pair on its own overestimates signaling, because many ligands compete for the same receptors. COMMOT fixes this with collective optimal transport: a single joint solve that moves finite "ligand mass" from sender cells to finite "receptor capacity" on receiver cells. All competing molecular species are handled together, and transport is forbidden beyond a spatial distance cutoff. We propose to reuse that formulation directly. Excess demand from bursting services plays the role of ligand mass. Spare capacity on machines that already host a warm copy of that service plays the role of receptor capacity. Whatever demand the transport plan cannot place is, by construction, the amount of horizontal scale-out to order. One solve then produces three things that current systems decide separately: vertical boosts, load-balancer re-weighting toward warm replicas, and the horizontal scale-out signal.

Core Claim

Hybrid autoscalers fail under correlated bursts for two reasons. They allocate vertical headroom per service instead of collectively, and they treat the horizontal decision as an independent loop rather than as the residual of the vertical one. A capacity-constrained, multi-service transport problem fixes both. Its routes connect excess demand only to machines where that service is already warm, so no cold start is needed to use them. We expect fewer tail-latency violations than per-service vertical controllers at equal or lower CPU cost, and markedly less scale-up/scale-down thrashing. Thrashing is the conflict between proactive and reactive controllers that the scaling literature leaves open.

The biological direction does not serve as the application here. It supplies the method and an empirical warning. COMMOT's finding that pairwise scoring overstates signaling when more than 70% of ligands and 60% of receptors in Fantom5 have multiple partners is the analog of our hypothesis about per-service vertical scaling. CellChat adds a related lesson: modeling multi-subunit receptor complexes cut false positives by about 10–14%. The corresponding idea in our setting is that a GPU slice needs both compute and memory at once, so it should be treated as a joint capacity rather than two independent ones.

The Formulation

At each control tick, let $s_{a,i}$ be the excess demand of service $a$ at replica $i$, measured in cores (or GPU time-quota) needed to meet its latency target. Following Autothrottle, we estimate it from throttle ratios rather than raw utilization. Let $h_j$ be the free headroom on machine $j$. Let $C_{a,ij}$ be the cost of serving $a$'s overflow from $i$ on machine $j$. This cost is zero for a local vertical boost and equals the added network latency for a remote warm replica. It is infinite if $a$ has no warm replica on $j$ or if the hop exceeds a latency cutoff, which mirrors COMMOT's distance cutoff. We solve

$$\min_{P \ge 0}\; \sum_{a,i,j} C_{a,ij} P_{a,ij} \;-\; \varepsilon H(P) \;+\; \lambda \sum_{a,i} r_{a,i}, \quad r_{a,i} = s_{a,i} - \sum_j P_{a,ij} \ge 0,\;\; \sum_{a,i} P_{a,ij} \le h_j .$$

Here $P_{a,ij}$ is the demand of service $a$ moved from $i$ to $j$. $H$ is the entropy term that lets an entropic Sinkhorn-style solver run in well under a second. $\lambda$ prices one unit of unplaced demand at the expected SLO cost of waiting through a cold start. The column constraint is where competition happens. Every service draws on the same $h_j$, just as competing ligands draw on the same receptors.

The residuals $r_{a,i}$ become the horizontal action: ceil(residual / per-replica capacity) new replicas. A proactive forecaster adds its predicted demand to $s$. Because the forecaster feeds into this same solve instead of running as a separate controller, it cannot issue a scale-in while the reactive path is boosting.

Research Program

We will build the controller as a Kubernetes component. It has three actuators: cgroup CPU quotas for vertical changes, weights on the load balancer in front of each service for routing, and replica counts for horizontal changes. The per-service latency-to-throttle mapping comes from Autothrottle's lower layer. For GPU inference services we substitute SM partition and time-quota headroom as in HAS-GPU, and use its latency predictor's estimates to convert request rate into needed quota.

The analysis has three parts. First, we characterize how often bursts are correlated across co-located services in production traces, because the whole idea is pointless if correlation is rare. Second, we study how $\lambda$ and the latency cutoff trade cost against tail latency. Third, we test whether the residual-as-scale-out rule really removes oscillation, measured as the number of scale-in decisions reversed within five minutes.

Baselines

The naive reference is the Kubernetes Horizontal Pod Autoscaler with a 70% CPU target and no vertical layer. It shows how much any hybrid method buys. Faro reports 2.3x to 23x fewer SLO violations than this baseline on Azure Functions and Twitter traces, which gives a sanity range for the gap we should see.

The strongest existing method on microservice benchmarks is Autothrottle. It is a central bandit controller that sets per-service throttle targets, with per-service local controllers adjusting CPU quotas, paired with standard horizontal scaling. It is the most direct competitor because it is exactly a per-service vertical allocator with no collective constraint. It reports CPU savings of up to 93.84% while meeting latency SLOs on Train-Ticket, Hotel-Reservation and Social-Network. The file gives no per-application breakdown. We will run Autothrottle's released configuration on identical clusters, workloads and SLOs, and give its bandit the same warm-up period our controller gets. Beating it means fewer P99 SLO violations at no more than its CPU core-hours, or equal violations at measurably lower cost, on the bursty and production-trace workloads.

On TrainTicket driven by Alibaba traces, we compare against DRPC, a distributed teacher–student reinforcement-learning autoscaler. It reports response times held between 40 and 70 ms, 99% of requests within 210 ms, and an 85% lower failure rate than the Kubernetes default. Our target is its 99th-percentile bound and its failure rate under the same trace replay.

For GPU inference, the comparison is HAS-GPU, which reports 10.8x lower cost than KServe and 4.8x fewer SLO violations than FaST-GShare. Our variant replaces HAS-GPU's per-pod vertical-first policy with the collective solve. Every method gets the same tuning budget, measured in hours of trace replay.

Two ablations isolate the key ingredients. The first is a "pairwise" ablation that solves each service's transport separately, dropping the shared column constraint. It is the analog of independent ligand–receptor scoring, and it tests whether the competition term matters. The second is a "local-only" ablation that allows only vertical boosts on the current machine plus per-machine proportional sharing, with no cross-machine routing. It tests whether the transport, rather than the collective budgeting, carries the gain.

Why not just…?

Why not just water-fill each machine's headroom proportionally and let HPA handle the rest? This is the most serious alternative. If correlated bursts mostly resolve within one machine, it may match us. That is precisely what the local-only ablation measures. If it comes within noise of the full method, we will conclude that collective budgeting is the contribution and cross-machine routing is not, and narrow the claim accordingly. The method keeps a distinct advantage only when warm replicas on other machines have headroom the burst can use without a cold start.

Why not just solve an exact linear program instead of entropic transport? Without the entropy term, the problem above is a linear program, and the integer constraints that made INFaaS abandon exact solving appear only in the final replica rounding. We will run an off-the-shelf LP solver as a variant. If it is fast enough at the scale of our clusters, the entropic term is merely a convenience. We expect the entropic version to give smoother plans, which means fewer weight flips per tick. Faro found that its relaxation of hard SLO thresholds into smooth objectives was the single largest gain, up to 3.7x, which suggests smoothing helps stability, but this needs to be measured here.

Why not just extend Faro's global utility optimization? Faro optimizes replica counts per job on a homogeneous cluster. It has no vertical knob and no notion of which machine's headroom a burst can reach. Adding both amounts to our formulation. We compare against Faro on its own traces to show what the vertical and routing terms add.

Why not just use a centralized reinforcement-learning controller? DRPC shows that centralized learners such as FIRM pay heavy decision overhead (4×10⁻³ CPU units of decision time versus 6×10⁻⁵ for DRPC) and slow down during surges. Our solve is a fixed-iteration matrix scaling with no training, and we report its wall-clock time against DRPC's.

Proposed Experiments

The workloads are DeathStarBench Social Network and Hotel-Reservation (benchmark suite) and TrainTicket. They are driven by Alibaba cluster traces, the Azure Functions and Twitter traces, and the bursty World Cup trace. For GPU we use ResNet50 and BERT services under Azure traces as in HAS-GPU. To stress correlation directly, we add a synthetic regime where bursts hit k co-located services simultaneously, with k varied from 1 to 8.

The metrics are P99 SLO violation rate, CPU (or GPU-quota) core-hours, the fraction of burst demand absorbed without any new replica, the count of reversed scaling decisions, and controller solve time.

Three outcomes are decisive. The first is the pairwise ablation's violation rate as k grows. Our hypothesis predicts that it diverges from the full method as correlation increases and matches it at k=1. If the gap does not grow with k, the competition story is wrong. The second is the local-only ablation versus the full method, which decides whether routing matters. The third is thrashing counts against Autothrottle paired with HPA, which tests whether deriving horizontal actions as residuals actually removes conflict between the two loops.