arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2006.00064cs.DC
收藏

用于有状态流媒体的云原生平台

A Cloud Native Platform for Stateful Streaming

Scott Schneider, Xavier Guerin, Shaohan Hu, Kun-Lung Wu

摘要:

我们展示了IBM Streams的云原生版本的架构,并将Kubernetes作为我们的目标平台。Streams是一个通用的流系统,它有自己的平台来管理应用程序和执行这些应用程序的计算集群。云原生流用Kubernetes取代了该平台。通过使用Kubernetes作为平台,Streams能够卸载作业管理、生存周期跟踪、地址转换、容错和调度。这种卸载是可能的,因为我们定义了原生集成到Kubernetes中的自定义资源,允许Streams将Kubernetes的事件系统作为自己的事件系统使用。我们使用四种设计模式来实现我们的系统:控制器,导体,协调器和因果链。组成控制器,导体和协调器允许我们建立一个异步分布式系统的确定性状态机。最终实现消除了75%的原始平台代码。我们的实验结果表明,Kubernetes的性能在大多数情况下是一个足够的替代品,但它存在超额订阅,网络延迟,垃圾回收和pod恢复的问题。

英文摘要:

We present the architecture of a cloud native version of IBM Streams, with Kubernetes as our target platform. Streams is a general purpose streaming system with its own platform for managing applications and the compute clusters that execute those applications. Cloud native Streams replaces that platform with Kubernetes. By using Kubernetes as its platform, Streams is able to offload job management, life cycle tracking, address translation, fault tolerance and scheduling. This offloading is possible because we define custom resources that natively integrate into Kubernetes, allowing Streams to use Kubernetes' eventing system as its own. We use four design patterns to implement our system: controllers, conductors, coordinators and causal chains. Composing controllers, conductors and coordinators allows us to build deterministic state machines out of an asynchronous distributed system. The resulting implementation eliminates 75% of the original platform code. Our experimental results show that the performance of Kubernetes is an adequate replacement in most cases, but it has problems with oversubscription, networking latency, garbage collection and pod recovery.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑