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

Efficient Serverless Function Scheduling at the Network Edge

Jiong Lou, Zhiqing Tang, Shijing Yuan, Jie Li, Chengtao Wu, Weijia JiaarXiv 2023 · DOI

Executive Summary

This paper introduces ESFF (Enhanced Shortest Function First), a novel scheduling algorithm designed to minimize response times for serverless functions at the resource-constrained network edge. By judiciously balancing the "cost" of cold starts against the "penalty" of request blocking, ESFF outperforms existing baselines by up to 40%, ensuring that short, urgent tasks aren't stuck behind long-running processes.

The Challenge: Serverless at the Edge

Serverless computing, or Function-as-a-Service (FaaS), is ideal for the network edge due to its lightweight nature and rapid scalability. However, edge servers face significant resource constraints compared to cloud data centers, leading to two primary issues:

  1. Cold Start Latency: Initializing new function instances is time-consuming. At the edge, starting a new function often requires evicting an existing one, which compounds delays.
  2. Request Blocking: Traditional First-In-First-Out (FIFO) schedulers can cause "head-of-line blocking." A long-running "heavy" function (e.g., image processing) can block multiple "light" functions (e.g., sensor logging), drastically increasing average response times.

Existing platforms like OpenWhisk or AWS Lambda, designed for the "infinite" resources of the cloud, struggle to manage these trade-offs in resource-limited edge environments.

The ESFF Algorithm

The authors prove that the Serverless Function Scheduling (SFS) problem is NP-hard. To address this, they developed the ESFF algorithm, which utilizes two core real-time policies:

  • Function Creation Policy (FCP): Instead of automatically starting a new instance upon request arrival, FCP evaluates if the cold start time is justified. If waiting for an existing instance to become free is faster than a cold start, the system waits.
  • Function Replacement Policy (FRP): Upon task completion, FRP determines whether to retain the instance for the next queued request or evict it to prioritize a more urgent function.

The core of ESFF is a Function Weight (urgency score), calculated as: $$\text{Weight} = \text{Execution Time} + \frac{\text{Startup Cost}}{\text{Number of Waiting Requests}}$$ By prioritizing functions with the lowest weights, ESFF favors shorter tasks while amortizing cold start costs across multiple requests.

Comparison of scheduling timelines between OpenWhisk, OpenWhisk V2, and ESFF. ESFF optimizes the sequence to reduce overall response time by reordering tasks.

Evaluation and Results

The researchers evaluated ESFF using real-world serverless request traces from Azure, comprising approximately 2.2 million requests. Simulations focused on the first 600,000 requests, with cold start times assigned based on industry benchmarks (0.5s to 1.5s).

Key Findings

  • Reduced Response Time: ESFF reduced average response times by 18% to 40% compared to the Shortest Function First (SFF) baseline.
  • Improved Tail Latency: Cumulative Distribution Function (CDF) analysis showed significant improvements in P95 and P99 latencies, meaning worst-case wait times were substantially reduced.
  • Resource Efficiency: ESFF maintained high performance even under extreme resource scarcity (e.g., capacity for only 12–16 concurrent instances).

Insights and Future Directions

The "amortization" insight is central to ESFF: a cold start's cost per request decreases as the queue for that function grows. Unlike standard schedulers that might keep a function alive simply because it is already loaded, ESFF is willing to replace an instance if a "lighter" function's weight is lower.

While the current model focuses on single-server scheduling, future work aims to address:

  • Distributed Edge Deployments: Modeling complex networking across multiple edge nodes.
  • Function Dependencies: Scheduling workflows where functions have Directed Acyclic Graph (DAG) dependencies.
  • Hybrid Cloud-Edge Strategies: Offloading heavy bursts of long-running requests to the cloud.

Summary updated

BibTeX
@misc{lou2023efficient,
  author = {Jiong Lou and Zhiqing Tang and Shijing Yuan and Jie Li and Chengtao Wu and Weijia Jia},
  title = {{Efficient Serverless Function Scheduling at the Network Edge}},
  year = {2023},
  eprint = {2310.16475},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.16475},
}
Figure