Skip to main content
QUICK REVIEW

[论文解读] KUBEDIRECT: Unleashing the Full Power of the Cluster Manager for Serverless Computing

Sheng Qi, Zhiquan Zhang|arXiv (Cornell University)|Jan 27, 2026
Cloud Computing and Resource ManagementComputer Science被引用 0
一句话总结

KUBEDIRECT 通过直接消息传递和分层写回缓存绕过 API Server 瓶颈,优化 Kubernetes 基于 FaaS 的性能,在保持 Kubernetes 兼容性的同时实现更低延迟。它增加了轻量级集成,并在 Knative 上实现 26.7× 的 latency 减少,与 Dirigent 相当。

ABSTRACT

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.

研究动机与目标

  • 识别在通过 API Server 的消息传递时,基于 Kubernetes 的 FaaS 平台出现的瓶颈。
  • 提出一个与 Kubernetes 兼容的扩展,能够在不重新设计堆栈的前提下实现高效的直接控制器通信。
  • 开发一种状态管理方案,在去中心化控制平面中保持端到端语义。
  • 演示与 Knative 的实际集成,并评估与现有解决方案相比的延迟改进。

提出的方法

  • 解耦动态和静态 API 对象属性,并使用动态物化实现最小、基于增量的消息传递。
  • 引入分层写回缓存,将状态变更向下游转发,同时向上游传播缓存失效以实现一致性。
  • 为在轻量级多跳环境中加入崩溃重启控制器并处理控制器/网络故障设计握手协议。
  • 提供一个像插件的库,集成 KUBEDIRECT 与基于 Kubernetes 的 FaaS 平台大约需要每个控制器 150 行代码。
  • 实现最小消息格式(每个对象 ≤64 字节)以降低通信开销并支持跨控制器的批处理。
  • 通过形式化推理和 TLA+ 验证展示收敛性保证和端到端语义。

实验结果

研究问题

  • RQ1一个基于 Kubernetes 的 FaaS 平台是否能够在不牺牲生态系统兼容性的前提下达到专用非 Kubernetes 集群管理器的效率?
  • RQ2如何安全实现直接的控制器间消息传递,以绕过 API Server 同时保持端到端生命周期语义?
  • RQ3在窄腰设计中需要哪些状态管理和故障处理机制来在连续控制器之间保持一致性?
  • RQ4与 Knative 和 Dirigent 相比,KUBEDIRECT 对函数服务延迟的性能影响如何?

主要发现

  • KUBEDIRECT 将函数服务延迟比 Knative 降低了 26.7×。
  • 它在与先进的无侵入式平台 Dirigent 的性能方面相当。
  • 在窄腰结构中大约每个控制器需要添加约 150 行代码来完成集成。
  • 动态物化和最小的 64 字节消息格式显著降低控制器之间的通信开销。
  • 分层写回缓存的硬失效和软失效实现了一致性并使状态收敛到目标状态。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。