NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Jiagu: Optimizing Serverless Computing Resource Utilization with Harmonized Efficiency and Practicability

Qingyuan Liu, Yanning Yang, Dong Du, Yubin Xia, Ping Zhang, Jia Feng, James R. Larus, Haibo ChenarXiv 2024 · DOI

TL;DR

Jiagu is a novel serverless system designed to bridge the massive efficiency gap in cloud resource utilization without compromising performance. By decoupling performance prediction from the scheduling path and introducing a dual-staged scaling mechanism, Jiagu improves deployment density by 54.8% and reduces cold start latency by up to 69% compared to state-of-the-art schedulers.

The Efficiency Gap in Serverless Computing

Serverless computing is prized for its "pay-as-you-go" model and seamless auto-scaling. However, cloud providers face a significant challenge: most serverless functions utilize only a fraction of their allocated resources. This inefficiency stems from two primary factors:

  1. Over-provisioning for QoS: To guarantee Quality-of-Service (QoS), users often request far more resources than necessary, creating "stranded" capacity.
  2. The Scaling Paradox: Providers aim to evict idle instances quickly to save costs, but doing so risks "cold starts"—latency spikes when a function must be re-initialized upon a new request.
The cumulative distribution function (CDF) of used vs. allocated resources highlights the significant underutilization of CPU and memory in production environments.

Existing research solutions often fail to balance accuracy and speed. Complex machine learning models are too slow for millisecond-sensitive scheduling, while simple heuristics lack the precision needed to pack instances tightly without causing performance interference.

The Jiagu Architecture

Jiagu harmonizes efficiency and practicability through two core innovations: Pre-decision Scheduling and Dual-staged Scaling.

Pre-decision Scheduling

Instead of performing complex performance inference while a request is waiting, Jiagu moves the "thinking" to an asynchronous background process. It calculates a node's capacity—the maximum number of instances a node can host without violating QoS—and stores this in a Capacity Table. When a new instance needs to be scheduled, the system follows a "fast path," simply checking the table rather than running live inference.

Dual-staged Scaling

Jiagu introduces a "release" phase between active use and total eviction. When load drops, the system stops routing requests to an instance (releasing its CPU/memory resources) but keeps the instance cached in memory. If load spikes again, it performs a "logical cold start"—re-enabling routing in less than 1ms—avoiding the heavy latency of a full restart.

The Jiagu system architecture features a decoupled control plane where the predictor operates asynchronously to enable a fast scheduling path and dual-staged scaling.

Key Insights

  • Asynchronous Prediction: By moving ML inference out of the critical scheduling path, Jiagu achieves the accuracy of model-based systems with the speed of heuristics.
  • Exploiting Replication: Real-world serverless workloads often involve highly replicated functions. Jiagu’s Capacity Table approach is particularly effective here, as the scheduler frequently encounters familiar function types.
  • "Neutral" vs. "Off": Dual-staged scaling treats instances like a car at a red light. Putting the engine in "neutral" (release) rather than turning it "off" (eviction) allows for aggressive resource reclamation without the fear of cold start penalties.

Performance Results

Evaluated against Kubernetes and state-of-the-art research schedulers using Huawei Cloud production traces and standard benchmarks, Jiagu demonstrated significant gains:

  • Instance Density: Achieved a 54.8% higher density than standard Kubernetes while maintaining strict QoS.
  • Scheduling Efficiency: Reduced scheduling overhead by 81.0%–93.7% compared to other model-based schedulers.
  • Cold Start Mitigation: Reduced cold start latency by 57.4%–69.3% through logical cold starts and proactive instance migration.

Conclusion

Jiagu proves that high resource utilization and low latency are not mutually exclusive in serverless environments. By strategically decoupling prediction from action and refining the instance lifecycle, Jiagu provides a practical path for cloud providers to reduce operational costs while maintaining the high performance expected by serverless users.

Summary updated

BibTeX
@misc{liu2024jiagu,
  author = {Qingyuan Liu and Yanning Yang and Dong Du and Yubin Xia and Ping Zhang and Jia Feng and James R. Larus and Haibo Chen},
  title = {{Jiagu: Optimizing Serverless Computing Resource Utilization with Harmonized Efficiency and Practicability}},
  year = {2024},
  eprint = {2403.00433},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.00433},
}
Figure