[Paper Review] KUBEDIRECT: Unleashing the Full Power of the Cluster Manager for Serverless Computing
KUBEDIRECT optimizes Kubernetes-based FaaS by bypassing API Server bottlenecks with direct message passing and a hierarchical write-back cache, achieving lower latency while maintaining Kubernetes compatibility. It adds lightweight integration and demonstrates 26.7× latency reduction over Knative and parity with Dirigent.
FaaS platforms rely on cluster managers like Kubernetes for resource management. Kubernetes is popular due to its state-centric APIs that decouple the control plane into modular controllers. However, to scale out a burst of FaaS instances, message passing becomes the primary bottleneck as controllers have to exchange extensive state through the API Server. Existing solutions opt for a clean-slate redesign of cluster managers, but at the expense of compatibility with existing ecosystem and substantial engineering effort. We present KUBEDIRECT, a Kubernetes-based cluster manager for FaaS. We find that there exists a common narrow waist across FaaS platform that allows us to achieve both efficiency and external compatibility. Our insight is that the sequential structure of the narrow waist obviates the need for a single source of truth, allowing us to bypass the API Server and perform direct message passing for efficiency. However, our approach introduces a set of ephemeral states across controllers, making it challenging to enforce end-to-end semantics due to the absence of centralized coordination. KUBEDIRECT employs a novel state management scheme that leverages the narrow waist as a hierarchical write-back cache, ensuring consistency and convergence to the desired state. KUBEDIRECT can seamlessly integrate with Kubernetes, adding ~150 LoC per controller. Experiments show that KUBEDIRECT reduces serving latency by 26.7x over Knative, and has similar performance as the state-of-the-art clean-slate platform Dirigent.
Motivation & Objective
- Identify the bottlenecks in Kubernetes-based FaaS platforms that arise from message passing through the API Server.
- Propose a compatible extension to Kubernetes that enables efficient direct controller communication without redesigning the stack.
- Develop a state management scheme that preserves end-to-end semantics in a decentralized control plane.
- Demonstrate practical integration with Knative and evaluate latency improvements against existing solutions.
Proposed method
- Decouple dynamic and static API object attributes and use dynamic materialization to enable minimal, delta-based message passing.
- Introduce a hierarchical write-back cache that forwards state changes downstream while propagating cache invalidations upstream to achieve consistency.
- Design a handshake protocol for joining crash-restarted controllers and handling controller/network failures in a lightweight, multi-hop setting.
- Provide a plug-in like library that requires ∼150 lines of code per controller to integrate KUBEDIRECT with Kubernetes-based FaaS platforms.
- Implement a minimal message format (≤64 bytes per object) to reduce communication overhead and support batching across controllers.
- Demonstrate convergence guarantees and end-to-end semantics through formal reasoning and TLA+ verification.
Experimental results
Research questions
- RQ1Can a Kubernetes-based FaaS platform achieve the efficiency of a dedicated, non-Kubernetes cluster manager without sacrificing ecosystem compatibility?
- RQ2How can direct inter-controller message passing be safely implemented to bypass the API Server while preserving end-to-end lifecycle semantics?
- RQ3What state management and failure-handling mechanisms are required to maintain consistency across sequential controllers in a narrow-waist design?
- RQ4What is the performance impact of KUBEDIRECT on function serving latency compared to Knative and Dirigent?
Key findings
- KUBEDIRECT reduces function serving latency by 26.7× over Knative.
- It achieves similar performance to the state-of-the-art clean-slate platform Dirigent.
- The integration requires about 150 lines of code added per controller in the narrow waist.
- Dynamic materialization and a minimal 64-byte message format substantially reduce inter-controller communication overhead.
- The hierarchical write-back cache with hard and soft invalidations ensures consistency and convergence to the desired state.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.