← Latest papers
💻 computer science

BudgetFunnel: Coarse-to-Fine Global Budget Allocation for Trace-Driven Serverless Cold-Start Mitigation

BudgetFunnel is a trace-driven, coarse-to-fine framework that allocates a shared warm-retention budget across heterogeneous serverless functions using lightweight screening and a precedence-aware greedy allocator, achieving near-optimal cold-start mitigation with significantly reduced evaluation overhead compared to full-evaluation and existing baseline strategies.

Original authors: xuming wu, Zhipeng Ye, Gaoyuan Zhao, Zihao Lu, Jiayi Hong, Wen-Yu Peng, Zhibin Shao, Yan Cao

Published 2026-10-01
📖 5 min read🧠 Deep dive

Original authors: xuming wu, Zhipeng Ye, Gaoyuan Zhao, Zihao Lu, Jiayi Hong, Wen-Yu Peng, Zhibin Shao, Yan Cao

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). ✨ This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

In the modern cloud, a vast number of applications run on a model called serverless computing. Instead of keeping a computer server running constantly to handle requests, the system wakes up a fresh, empty environment only when a user needs it, performs the task, and then lets it go to sleep. This approach saves money and reduces waste, but it has a frustrating flaw: the first time a user asks for a service, the system must build that environment from scratch. This process, known as a "cold start," causes a noticeable delay. To fix this, system administrators can keep some of these environments awake and ready, a strategy called "prewarming." However, keeping too many environments awake wastes the very resources the system was designed to save. The challenge lies in deciding exactly which functions to keep warm and for how long, especially when there are thousands of different functions competing for a limited pool of resources.

Researchers have developed a new method called BudgetFunnel to solve this balancing act. The core idea is to treat the total time available for keeping environments awake as a shared budget that must be spent wisely across a massive workload. In a typical cloud system, there might be thousands of different functions, each with its own unique pattern of use. Some are used constantly, while others are used rarely or in sudden, unpredictable bursts. If an administrator tries to calculate the perfect "keep-alive" time for every single function to minimize delays, the calculation itself takes so long that it becomes impractical. BudgetFunnel addresses this by using a two-step process that first filters the problem down to its most critical parts.

The researchers tested their method using real-world data logs from two major cloud providers, one from Microsoft Azure and another from Alibaba. These logs contained millions of records showing when different functions were called. The team first used a simple, fast check to identify which functions were likely to cause the most delays if they were allowed to go cold. They looked at basic patterns, such as how often a function was used, how irregular its usage was, and whether it followed a daily rhythm. Based on these simple clues, they selected only the top ten percent of functions as "candidates" for detailed analysis. The remaining ninety percent were left with a default setting of zero, meaning the system would not try to keep them warm.

Once the candidates were identified, the researchers ran a detailed simulation on just this small group. They tested various durations for keeping these specific functions awake, calculating exactly how much delay would be saved versus how much resource cost would be incurred for each option. Finally, they used a greedy algorithm to distribute the total available "warm time" budget among these candidates. This algorithm worked like a careful shopper with a fixed amount of money, choosing the upgrades that offered the biggest reduction in delays for the smallest cost. The result was a tailored plan that assigned specific keep-alive times to the most important functions while ignoring the rest.

The findings showed that this focused approach was remarkably effective. By evaluating only ten percent of the functions, the system achieved a nine-fold increase in speed compared to trying to calculate the best settings for every single function. Despite this massive reduction in calculation time, the quality of the result remained very high. The number of delayed requests, measured as a percentage of total traffic, stayed within just 1.54 percent of the result produced by a full-evaluation greedy approach (which analyzes all functions) on the Azure data, and within 1.93 percent on the Alibaba data. In other words, the system saved almost all the potential performance benefits while avoiding the heavy computational cost of analyzing everything.

The study also compared this method against other common strategies, such as keeping all functions warm for the same fixed amount of time or using average wait times to guess how long to keep them. BudgetFunnel significantly outperformed these standard approaches, reducing the rate of cold starts by up to 39 percent on the Alibaba workload. The researchers confirmed that their method was robust, meaning it worked well even when they changed the way they counted delays or adjusted the specific time intervals they tested. They also verified that the greedy algorithm they used was very close to the mathematically optimal solution for smaller test cases, differing by less than 2.6 percent from the certified optimum.

This work demonstrates that in complex systems, it is often possible to find a near-optimal solution without examining every single detail. By using a coarse filter to identify the most critical elements and then applying detailed analysis only where it matters, administrators can manage resources efficiently without getting bogged down in impossible calculations. The BudgetFunnel framework offers a practical way to keep serverless applications fast and responsive without breaking the bank, proving that a little bit of smart filtering can go a long way in managing the invisible machinery of the cloud.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →