将无锁链表转换为分布式无锁链表
Lock-free Asynchronously Distributed Linked Lists
AI总结:
本文提出DiLi,一种条件无锁、可分布的链表,实现动态负载平衡和横向扩展,提升并发与分布式数据结构性能。
摘要:
现代数据库使用动态搜索结构来存储大量数据,并经常使用多线程算法来支持日益增长的吞吐量需求。当这种吞吐量需求超过主机机器的容量时,要么需要更换底层硬件(通常不可行且会引入长时间停机),要么需要将数据结构分布式。静态划分数据结构进行分布并不理想,因为随着时间的推移,负载分布容易不均,后来需要更改划分方案将需要停机。本文的目标是将并发数据结构扩展为分布式数据结构,以提供动态负载平衡,同时保留诸如无锁性等重要属性。基于这一直觉,首先,我们引入了条件无锁性的概念,扩展了无锁计算的概念,加入对进程之间通信的合理假设。然后,我们介绍了DiLi,一种条件无锁、线性可变和可分布的链表,可以异步且动态地(1)划分为多个子链表和(2)通过将子链表分布到多个机器上进行负载平衡。DiLi包含这些操作的原语,同时保持底层支持find、remove和insert键的搜索结构的无锁属性。我们展示了DiLi在并发数据结构和分布式数据结构之间的桥梁作用。具体来说,DiLi在并发环境中搜索最快的结构(如skip列表)提供可比(甚至在写入密集型工作负载中更好)的性能。此外,它通过允许在分布式环境中动态负载平衡,提供了横向扩展。
英文摘要:
Modern databases use dynamic search structures that store an enormous amount of data, and often serve them using multi-threaded algorithms to support the ever-increasing throughput needs. When this throughput need exceeds the capacity of the machine hosting the structure, one either needs to replace the underlying hardware (an option that is typically not viable and introduces a long down time) or make the data structure distributed. Static partitioning of the data structure for distribution is not desirable, as it is prone to uneven load distribution over time, and having to change the partitioning scheme later will require downtime. The goal of this paper is to extend a concurrent data structure to distributed data structures that provide dynamic load balancing while preserving important properties such as lock freedom. With this intuition, first, we introduce the notion of conditional lock-freedom which extends the notion of lock-free computation with reasonable assumptions about communication between processes. Then, we present DiLi, a conditional lock-free, linearizable, and distributed linked list that can be asynchronously and dynamically (1) partitioned into multiple sublists and (2) load balanced by distributing sublists across multiple machines. DiLi contains primitives for these that also maintain the lock-free property of the underlying search structure that supports find, remove, and insert of a key as the client operations. We show that DiLi bridges the gap between concurrent data structures and distributed data structures. Specifically, DiLi provides comparable (and better in write-intensive workloads) performance to skip lists (which are typically the fastest data structures for search in a concurrent environment). In addition, it provides horizontal scaling with dynamic load balancing in a distributed environment.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。