Abstract
The increased use of micro-services to build web applications has spurred the rapid growth of Function-as-a-Service (FaaS) or serverless computing platforms. While FaaS simplifies provisioning and scaling for application developers, it introduces new challenges in resource management that need to be handled by the cloud provider. Our analysis of popular serverless workloads indicates that schedulers need to handle functions that are very short-lived, have unpredictable arrival patterns, and require expensive setup of sandboxes. The challenge of running a large number of such functions in a multi-tenant cluster makes existing scheduling frameworks unsuitable. We present Archipelago, a platform that enables low latency request execution in a multi-tenant serverless setting. Archipelago views each application as a DAG of functions, and every DAG in associated with a latency deadline. Archipelago achieves its per-DAG request latency goals by: (1) partitioning a given cluster into a number of smaller worker pools, and associating each pool with a semi-global scheduler (SGS), (2) using a latency-aware scheduler within each SGS along with proactive sandbox allocation to reduce overheads, and (3) using a load balancing layer to route requests for different DAGs to the appropriate SGS, and automatically scale the number of SGSs per DAG. Our testbed results show that Archipelago meets the latency deadline for more than 99% of realistic application request workloads, and reduces tail latencies by up to 36X compared to state-of-the-art serverless platforms.
Introduction
Serverless computing, or Function-as-a-Service (FaaS), has become a dominant paradigm for micro-service architectures due to its promise of abstracting infrastructure management. However, the platform's performance is often hampered by significant latency overheads. Most serverless functions are extremely short-lived, yet the overhead of initializing execution environments—the "cold start" problem—can exceed the function's actual execution time.
Existing scheduling solutions face a trade-off between scalability and efficiency. Centralized schedulers provide a global view for resource reuse but become bottlenecks, while decentralized schedulers scale better but often lack the coordination needed to minimize cold starts. Furthermore, current platforms typically ignore the diverse latency requirements (deadlines) of different applications. Archipelago addresses these challenges by decoupling environment setup from request execution and employing deadline-aware scheduling.
Workload Characterization
To understand the requirements of modern serverless environments, we analyzed the top 50 applications in the AWS Serverless Application Repository (SAR). Our findings reveal that serverless workloads are characterized by extremely short execution times and small code sizes.
As shown in Figure 1, approximately 90% of functions execute in less than one second. This brevity makes the overhead of sandbox creation (cold starts) particularly impactful. Additionally, most functions have small memory footprints, suggesting that proactive resource management is feasible.
Archipelago Architecture
Archipelago introduces three core architectural innovations to achieve low-latency execution:
- Semi-Global Schedulers (SGS): Archipelago partitions the cluster into worker pools, each managed by an SGS. This hybrid approach offers a "middle ground" that maintains enough local state for efficient resource management while scaling beyond the limits of a single centralized scheduler.
- Proactive Sandbox Management: Instead of reactive allocation, Archipelago uses an estimator based on Poisson distributions and Exponentially Weighted Moving Averages to predict load and "pre-warm" sandboxes. It employs an Even Placement strategy, spreading sandboxes across workers to maximize statistical multiplexing and availability.
- Deadline-Aware Scheduling (SRSF): Applications are modeled as Directed Acyclic Graphs (DAGs). Archipelago uses a Shortest Remaining Slack First (SRSF) algorithm, prioritizing tasks with the least "slack" (time remaining until deadline minus expected execution time). This ensures that latency-sensitive foreground tasks are not delayed by background jobs.
Experimental Evaluation
We evaluated Archipelago on a 74-machine cluster and compared it against a centralized FIFO scheduler and decentralized baselines like Sparrow.
As shown in Figure 2, foreground tasks typically have much shorter execution times and tighter deadlines compared to background tasks. By using slack-based multiplexing, Archipelago can intelligently interleave these tasks. The accompanying table shows that while decentralized schedulers like Sparrow can scale, they often suffer from higher tail latencies compared to centralized FIFO in certain configurations; Archipelago's semi-global approach aims to bridge this gap.
Our results demonstrate that Archipelago reduces 99.9th percentile tail latency by up to 36x for bursty workloads compared to reactive baselines. Furthermore, the system met latency deadlines for over 99% of requests, whereas standard FIFO schedulers missed up to 33% of deadlines under high load. Proactive allocation also resulted in a 24x reduction in cold starts.
Discussion and Future Work
Archipelago demonstrates that by decoupling sandbox management from the request path and utilizing deadline-aware scheduling, serverless platforms can significantly reduce tail latency and improve reliability.
Key insights from our study include:
- Decoupling is Essential: Moving sandbox allocation out of the critical path effectively hides setup latency.
- Even Placement Benefits: Spreading sandboxes across the cluster improves statistical multiplexing, allowing the system to handle sudden bursts more effectively than dense packing.
- Soft Eviction: Treating sandboxes as "soft state" allows the system to handle temporary load fluctuations with zero-cost "un-eviction."
While proactive allocation introduces a memory trade-off, the small footprint of typical functions makes this a viable strategy. Future work will explore scaling the load-balancing layer and handling more complex, deep DAG structures.
Summary updated