Aion:在事件时间流中迟到总比不来好
Aion: Better Late than Never in Event-Time Streams
摘要:
近实时处理数据流是一项越来越重要的任务。在事件时间戳数据的情况下,流处理系统必须立即处理在相应窗口已经被处理之后到达的迟到事件。要启用这种延迟处理,窗口状态必须保持很长一段时间。然而,当前的系统在存储器中保持这种状态,这要么强加最大容许延迟时间段,要么导致系统性能降级,甚至在系统存储器耗尽时崩溃。在本文中,我们提出了AION,这是一种以有效方式处理延迟事件的综合解决方案,在Flink之上实现。在设计AION时,我们超越了按需在内存和持久存储之间传输状态的天真解决方案。特别是,我们引入了一个积极的缓存方案,我们利用流处理的语义来预测需要将数据带到内存中。此外,我们提出了一个预测性的清理计划,永久丢弃窗口状态的基础上接收更多的晚事件的可能性,以防止存储消耗增长无限制。我们的评估表明,AION能够保持可持续的内存利用率水平,同时仍然保持高吞吐量,低延迟和低陈旧。
英文摘要:
Processing data streams in near real-time is an increasingly important task. In the case of event-timestamped data, the stream processing system must promptly handle late events that arrive after the corresponding window has been processed. To enable this late processing, the window state must be maintained for a long period of time. However, current systems maintain this state in memory, which either imposes a maximum period of tolerated lateness, or causes the system to degrade performance or even crash when the system memory runs out. In this paper, we propose AION, a comprehensive solution for handling late events in an efficient manner, implemented on top of Flink. In designing AION, we go beyond a naive solution that transfers state between memory and persistent storage on demand. In particular, we introduce a proactive caching scheme, where we leverage the semantics of stream processing to anticipate the need for bringing data to memory. Furthermore, we propose a predictive cleanup scheme to permanently discard window state based on the likelihood of receiving more late events, to prevent storage consumption from growing without bounds. Our evaluation shows that AION is capable of maintaining sustainable levels of memory utilization while still preserving high throughput, low latency, and low staleness.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。