arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2111.13058cs.DC
收藏

STRETCH:面向可伸缩弹性流处理的虚拟无共享机制

STRETCH: Virtual Shared-Nothing Parallelism for Scalable and Elastic Stream Processing

Vincenzo Gulisano, Hannaneh Najdataei, Yiannis Nikolakopoulos, Alessandro V. Papadopoulos, Marina Papatriantafilou, Philippas Tsigas

摘要:

流处理应用程序通过数据分析任务的有向无环图从原始数据中提取价值。无共享(SN)并行是扩展流处理应用的事实标准。给定一个应用程序,SN并行实例化每个分析任务的几个副本,使每个实例负责整个分析的专用部分,并依赖于专用队列在连接的实例之间交换数据。一方面,SN并行性可以向上和向外扩展应用程序的执行,因为线程可以在进程/节点内和跨进程/节点运行任务实例。另一方面,它缺乏共享可能会导致不必要的开销,并阻碍扩展时,线程操作的数据,可以共同访问共享内存。这种权衡促使我们研究一种流处理应用程序利用共享内存并增强扩展(在横向扩展之前)的方法,同时坚持流处理应用程序广泛采用的基于SN的API。我们介绍了STRETCH,一个框架,最大限度地扩大规模,并提供即时的弹性重新配置(无状态转移)的流处理应用程序。我们提出了虚拟无共享(VSN)的并行性和弹性的概念,并提供了正式的定义和正确性证明的语义分析任务支持的STRETCH,显示他们扩展了常见的流处理引擎。我们还提供了一个完全实现的原型,并表明STRETCH的性能超过了最先进的框架,如Apache Flink,并提供了前所未有的超快重新配置,即使在配置数十个新任务实例时也不到40毫秒。

英文摘要:

Stream processing applications extract value from raw data through Directed Acyclic Graphs of data analysis tasks. Shared-nothing (SN) parallelism is the de-facto standard to scale stream processing applications. Given an application, SN parallelism instantiates several copies of each analysis task, making each instance responsible for a dedicated portion of the overall analysis, and relies on dedicated queues to exchange data among connected instances. On the one hand, SN parallelism can scale the execution of applications both up and out since threads can run task instances within and across processes/nodes. On the other hand, its lack of sharing can cause unnecessary overheads and hinder the scaling up when threads operate on data that could be jointly accessed in shared memory. This trade-off motivated us in studying a way for stream processing applications to leverage shared memory and boost the scale up (before the scale out) while adhering to the widely-adopted and SN-based APIs for stream processing applications. We introduce STRETCH, a framework that maximizes the scale up and offers instantaneous elastic reconfigurations (without state transfer) for stream processing applications. We propose the concept of Virtual Shared-Nothing (VSN) parallelism and elasticity and provide formal definitions and correctness proofs for the semantics of the analysis tasks supported by STRETCH, showing they extend the ones found in common Stream Processing Engines. We also provide a fully implemented prototype and show that STRETCH's performance exceeds that of state-of-the-art frameworks such as Apache Flink and offers, to the best of our knowledge, unprecedented ultra-fast reconfigurations, taking less than 40 ms even when provisioning tens of new task instances.

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

↑