cuckoo heavy keeper 以及在流处理中维持 heavy hitters 的平衡艺术
Cuckoo Heavy Keeper and the balancing act of maintaining heavy hitters in stream processing
AI总结:
CHK 提出了一种并行化方法,通过倒置过程区分频繁和不频繁项,提升流处理中 heavy hitters 的检测吞吐量和准确性
摘要:
在数据库和数据流中发现 heavy hitters 是一个基础性问题,其应用范围从网络监控到数据库查询优化、机器学习等。近似算法提供了实用的解决方案,但它们在吞吐量、内存使用和准确性之间存在权衡。此外,现代应用进一步复杂化这些权衡,因为它们要求超越顺序处理的能力,需要并行扩展和对并发查询和更新的支持。分析这些权衡导致我们提出了所提出流算法 Cuckoo Heavy Keeper (CHK) 的核心思想。该方法引入了一种倒置过程来区分频繁和不频繁的项目,从而解锁了之前传统方法无法访问的新算法协同效应。通过进一步分析竞争指标,重点关注并行性,我们提出了一种算法框架,该框架平衡了可扩展性方面,并根据其相对频率提供优化查询和插入效率的选择。该框架能够并行化任何 heavy-hitter 检测算法。除了算法的分析,我们还展示了在真实世界和合成数据上广泛分布和查询选择性的广泛评估。与最先进的方法相比,CHK 在低偏斜数据和紧内存约束下,吞吐量提高了1.7-5.7倍,准确性提高了多达十倍。这些特性使得其并行实例能够在高查询率下实现接近线性的扩展和低延迟的 heavy-hitter 查询。我们预计 CHK 及其并行实例的多功能性将影响大规模数据分析和流处理系统中的广泛工具和应用
英文摘要:
Finding heavy hitters in databases and data streams is a fundamental problem with applications ranging from network monitoring to database query optimization, machine learning, and more. Approximation algorithms offer practical solutions, but they present trade-offs involving throughput, memory usage, and accuracy. Moreover, modern applications further complicate these trade-offs by demanding capabilities beyond sequential processing that require both parallel scaling and support for concurrent queries and updates. Analysis of these trade-offs led us to the key idea behind our proposed streaming algorithm, Cuckoo Heavy Keeper (CHK). The approach introduces an inverted process for distinguishing frequent from infrequent items, which unlocks new algorithmic synergies that were previously inaccessible with conventional approaches. By further analyzing the competing metrics with a focus on parallelism, we propose an algorithmic framework that balances scalability aspects and provides options to optimize query and insertion efficiency based on their relative frequencies. The framework is capable of parallelizing any heavy-hitter detection algorithm. Besides the algorithms' analysis, we present an extensive evaluation on both real-world and synthetic data across diverse distributions and query selectivity, representing the broad spectrum of application needs. Compared to state-of-the-art methods, CHK improves throughput by 1.7-5.7$\times$ and accuracy by up to four orders of magnitude even under low-skew data and tight memory constraints. These properties allow its parallel instances to achieve near-linear scale-up and low latency for heavy-hitter queries, even under a high query rate. We expect the versatility of CHK and its parallel instances to impact a broad spectrum of tools and applications in large-scale data analytics and stream processing systems
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。