arXiv:2610.35073cs.DCOct 2026

Manuscript Offprint

arXiv:2610.35073

Priority-Aware Scheduler for Serverless Functions Provision and Load Balancing

Cheryl Lee, Zishan Su, Zhouruixing Zhu, Tianyi Yang, Yuxin Su, Pinjia He, Michael R. Lyu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Serverless computing has emerged as a pivotal cloud deployment paradigm due to its efficient utilization of on-demand resources. However, the persistent cold start problem continues to hinder system performance. Current strategies often employ oversimplified preloading/unloading mechanisms that inadequately exploit invocation patterns, failing to optimize the critical trade-off between startup latency and resource efficiency. Furthermore, existing approaches disregard practical constraints of memory-limited multi-worker environments, exacerbating function eviction and load imbalance issues. To address these limitations, we present SPES-Ext, a rule-based priority-aware scheduler designed for memory-constrained distributed worker nodes. Our methodology stems from two key observations: (1) serverless systems exhibit concentrated invocation patterns enabling behavioral predictability, and (2) these patterns permit function categorization for granular instance management. This insight posits that characteristic-driven prioritization enables optimal scheduling rules, leading to our system design, which integrates three coordinated components: predictive function provisioning, eviction optimization, and dynamic load balancing. Experimental validation demonstrates the superiority of SPES-Ext over state-of-the-art solutions: 80% reduction in 75th75^{th}-percentile cold starts, 83.92% decrease in memory waste, and 52.49% improvement in worker load variance.

Keywords: Cloud computing, serverless computing, cold start, function categorization, function scheduler

1 Introduction

Function-as-a-Service (FaaS) constitutes the core implementation model of serverless computing, facilitating streamlined cloud resource utilization while abstracting infrastructure complexities. Prominent cloud platforms, including AWS Lambda, Google Cloud Functions, and Azure Functions, have implemented FaaS solutions supporting diverse applications: web services [1, 2], machine learning algorithms [3, 4], and other distributed computing frameworks [5, 6]. This paradigm shifts infrastructure management responsibilities from developers to providers [7], enabling focused application logic development. FaaS architectures exhibit three principal advantages: (1) native support for stateless event-driven operations enabling agile deployment cycles, (2) elastic resource allocation synchronized with runtime demand [8], and (3) granular cost optimization to customers through pay-per-execution billing. A representative application architecture is demonstrated in Figure 1.

Figure

Fig. 1: A weather inquiry website based on a serverless web application.

Despite its advantages, serverless computing introduces significant cold start challenges that create tension between latency optimization and resource efficiency. Functions are instantiated ephemerally with execution durations typically spanning milliseconds to seconds [9], yet initializing fresh instances (cold starts) requires non-trivial environment preparation latency [10] compared to reusing preloaded warm instances. Empirical studies indicate cold starts contribute over 80% of total response latency [11], directly impacting user experience and service economics [12]. Meanwhile, maintaining warm instances for all functions proves impractical for two fundamental reasons: (1) Most functions experience low invocation frequencies [13], making persistent memory retention economically unjustifiable due to unbilled idle allocation. (2) Providers achieve server consolidation through colocating thousands of short-lived functions, but preloading all instances would require hundreds of GBs of memory [14], exceeding typical server capacities. This dual constraint establishes the core optimization challenge: achieving cold start mitigation while preventing memory bloat [3, 15, 16].

Existing mitigation approaches can be categorized as: (1) system-layer optimizations accelerating environment initialization [17–19] and (2) occurrence mitigation strategies through instance management [13, 20, 21]. This work focuses on the latter category, specifically investigating non-intrusive cold start reduction within existing infrastructure constraints. Prior instance management techniques [13, 20, 21] employ either fixed-duration instance retention or basic interval-based heuristics, exhibiting three critical limitations: (1) Pattern Oversight: Failure to account for event-driven invocation triggers and their temporal correlations. (2) Sparse Invocation Neglect: Ineffective handling of infrequently called functions due to static retention policies. (3) Resource Agnosticism: Ignorance of memory-constrained multi-worker environments requiring coordinated load distribution.

In this context, we aim to design a predictive, non-intrusive scheduling framework that synergistically addresses these gaps. We identify four challenges in developing such a method:

  • Low-Latency: Operational constraints demand subsecond provisioning decisions given FaaS platforms process thousands of concurrent invocations across millions of functions per minute [22], with typical execution windows under one second.

• Burst Tolerance with Multi-Worker Scalability: Scheduling mechanisms must exhibit (1) sublinear complexity growth to accommodate request burst [2], and (2) elastic coordination across dynamically scaled worker pools without architectural modification.

• Skewed Invocation Distribution: Invocation data can be sparse, where 95% of functions experience less than one invocation per day [13], limiting training data availability. Plus, the inherent invocation heterogeneity creates significant memory utilization variance across workers, making load balancing nontrivial.

• Temporal Concept Drift: The lightweight nature of FaaS makes applications evolve faster than traditional software, so scheduling strategies must withstand both short-term concept drift (e.g., hourly user activity fluctuations affecting) and long-term distribution shifts (e.g., quarterly software updates), altering function call patterns and complicating predictive modeling.

Insight: The event-driven paradigm of serverless architectures enables systematic identification of recurrent invocation patterns, permitting optimized function categorization and strategic provisioning. Three empirical observations grounded in both domain expertise and data analysis substantiate this premise: Trigger-Pattern Correlation: 82% of functions exhibit predictable execution sequences tied to specific event triggers (e.g., scheduled data processing workflows), as verified through analysis of production traces (in Section 3). Behavioral Convergence: functions within an application often display behavior convergence. For example, functions within a multi-stage processing workload are typically invoked in turn. Transient Temporal Locality: Even irregular functions can exhibit temporal locality, maintaining a short execution window during peak activity periods, permitting cost-effective transient retention. These observations demonstrate that functions can present limited predictable patterns, facilitating a dual-phase scheduling mechanism: 1) anticipate invocations through trigger-pattern mapping and historical sequence analysis to minimize cold starts with minimal memory influence; 2) implement priority-based placement across distributed workers, considering both temporal urgency and memory constraints to reduce loading variances.

We therefore present SPES-Ext, a Extension versions of the Scheduler for Provisioning runtimeE Serverless functions. This is a pattern-aware adaptive scheduler that optimizes the latency-resource tradeoff while enforcing load balancing across memory-constrained distributed workers. The design synthesizes three key innovations: (1) We summarize five dominant invocation patterns driven by the empirical analysis of production traces, supplemented by three adaptive retention policies for function patterns that are less predictive. (2) We propose a computationally lightweight yet effective metric-co-occurrence rate-that quantifies inter-function dependencies, enabling predictive chaining of related invocations, i.e., highly correlated functions can be predictive indicators of each other. (3) We design dynamic policy adjustments for continuous pattern recalibration to address concept drift as FaaS evolves. In this way, SPES-Ext operates through two coordinated phases. It anticipates invocations using pattern matching and correlation analysis to pre-load functions with fine-grained strategies. When the invocations come, SPES-Ext orchestrates the load and distribution of functions toward workers. As a result, our rule-based SPES-Ext addresses all the above challenges. Its tailored strategies can handle diverse functions with remarkable scalability and adaptivity, introducing a small computation overhead.

We evaluate SPES-Ext on the most widely used industrial dataset released by Microsoft Azure [13]. Experiments demonstrate the superiority of SPES-Ext, which achieves both-side improvement: reducing the 75th75^{th}-percentile cold start rate by 80%–90% and the wasted memory time by 83.92%–88.82% compared to baselines, and also reducing the proportion of “always-cold” functions significantly. Meanwhile, SPES-Ext lowers the mean variances of workers space by 52.49%–96.14%. Extensive ablation studies further confirm the effectiveness of our designs of inter-function connection and adaptive strategies in our provision policy, as well as the validity of our load-balancing scheduling.

In summary, the main contributions of this paper are:

  • We present SPES-Ext, the first rule-based priority-aware scheduler for memory-constrained distributed worker clusters, integrating three modules, i.e., function provision, eviction decision, and load-balancing.

  • We summarize typical invocation patterns and categorize functions accordingly as the basis of our novel differentiated provision strategy. We also create an effective “co-occurrence” metric to gauge inter-function correlations. Contributions of designs for adaptivity and unseen functions have also been validated.

  • We conduct extensive experiments under both a single-worker scenario without memory constraint and a multi-worker scenario with memory limitation to demonstrate the significant improvement of SPES-Ext in the cold start and wasted memory reduction, as well as the improvement in load balancing effects.

Part of the results in this paper has been reported in SPES [23], published at ICDE. For clarity, we should point out that SPES represents the provision policy we propose in [23], and SPES-Ext refers to the general scheduler we propose in this paper that involves provision, eviction, and load-balancing. For readers who have read the conference version, this extension mainly includes a general scheduler that couples both provisioning and load-balancing (See Section 4), and new experiments under the memory-limited, multi-worker scenario (See Section 5.2). We also include a more comprehensive background, preliminary analysis, discussion, and related work version.

References (59)