Abstract
Serverless computing promises rapid scaling and pay-as-you-go efficiency, yet modern platforms often suffer from a significant "orchestration tax." This overhead, primarily due to legacy container management systems like Kubernetes, can cause end-to-end scheduling latencies to reach seconds. This paper presents Dirigent, a clean-slate serverless orchestrator designed for high-churn FaaS environments. By utilizing minimalist abstractions, a persistence-free critical path, and monolithic control and data planes, Dirigent achieves 1250× higher cold-start throughput than Knative and reduces tail scheduling latency by 2.79× compared to AWS Lambda.
Introduction: The Orchestration Tax
In Function-as-a-Service (FaaS) environments, the raw time to start a function sandbox is typically between 10 and 100 milliseconds. However, users often experience end-to-end scheduling latencies that are orders of magnitude higher. The authors identify the root cause as the "orchestration tax" imposed by platforms built on top of Kubernetes (K8s). K8s was designed for long-running services, not the rapid creation and destruction of thousands of sandboxes per second.
K8s-based systems like Knative suffer from heavy metadata abstractions, persistent database bottlenecks (e.g., synchronous etcd writes), and high communication overhead between internal microservices. As shown in Figure 1, the control plane's contribution to total latency grows significantly as the number of concurrent sandbox creations increases.
Design and Implementation
Dirigent addresses these inefficiencies through three core design principles:
- Minimalist Abstractions: Dirigent replaces complex K8s objects (Pods, Deployments) with four simple types: Function, Sandbox, DataPlane, and WorkerNode. This drastically reduces metadata overhead; a sandbox state in Dirigent is only 16 bytes, compared to up to 17KB for a K8s Pod definition.
- Persistence-Free Critical Path: Recognizing that FaaS functions are ephemeral and stateless, Dirigent avoids persisting sandbox locations to a database during cold starts. Instead, it reconstructs the cluster state by querying worker nodes if the control plane crashes, removing slow database writes from the critical path.
- Monolithic Planes: Dirigent replaces the microservices-based control plane with a monolithic design. This allows internal modules, such as the placer and autoscaler, to share state via fast in-memory channels rather than slow network RPCs.
Evaluation and Results
The authors evaluated Dirigent using production traces from the Azure Functions Public Dataset (2019) and microbenchmarks, comparing it against Knative, OpenWhisk, and AWS Lambda.
Key Performance Metrics
- Throughput: Dirigent can spin up 2,500 sandboxes per second at low latency. In contrast, Knative saturates at just 2 per second.
- Tail Latency: On the Azure production trace, Dirigent reduced the 99th percentile (p99) per-function scheduling latency by 403× compared to Knative and 2.79× compared to AWS Lambda.
- Resource Efficiency: The Dirigent control plane used only 3% CPU to handle bursts that drove Knative's CPU usage above 75%.
- Fault Tolerance: Dirigent can detect a leader failure and elect a new one in just 10ms, significantly faster than K8s-based systems.
Conclusion
Dirigent demonstrates that by stripping away legacy "software bloat" and redesigning the orchestrator specifically for FaaS requirements, it is possible to achieve massive improvements in throughput and latency. While currently lacking some mature features like function versioning and complex workflow support, its architecture provides a high-performance foundation for future serverless systems. Future work will explore advanced caching techniques for container images and VM snapshots to further reduce cold-start delays.
Summary updated