arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1307.3207cs.DC
收藏

不可靠网络上可扩展的最终一致计数器

Scalable Eventually Consistent Counters over Unreliable Networks

Paulo Sérgio Almeida, Carlos Baquero

摘要:

计数器是分布式计算中的重要抽象,并且在大规模地理复制系统中起核心作用,对诸如网页印象或社交网络“喜欢”的事件进行计数。由于CAP定理,传统的分布式计数器,强一致性,不能既可用又容忍分区,不适合大规模场景。本文定义了最终一致的分布式计数器(ECDC),并提出了一个实现的概念,Hanks计数器,这是可扩展的,工作在不可靠的网络。通过放弃经典分布式计数器的定序器方面,ECDC实现可以在CAP设计空间中进行AP,同时保留计数的本质。HANTIOR计数器是第一个基于CRDT(无重复数据类型)的机制,其通过管理身份以避免全局传播和垃圾收集临时条目来克服朴素CRDT(例如G计数器(其中状态大小与曾经递增计数器的独立参与者的数量成线性关系))中的身份爆炸问题。在Hanks计数器中使用的方法不限于计数器,更一般地适用于具有关联和交换操作的其他数据类型。

英文摘要:

Counters are an important abstraction in distributed computing, and play a central role in large scale geo-replicated systems, counting events such as web page impressions or social network "likes". Classic distributed counters, strongly consistent, cannot be made both available and partition-tolerant, due to the CAP Theorem, being unsuitable to large scale scenarios. This paper defines Eventually Consistent Distributed Counters (ECDC) and presents an implementation of the concept, Handoff Counters, that is scalable and works over unreliable networks. By giving up the sequencer aspect of classic distributed counters, ECDC implementations can be made AP in the CAP design space, while retaining the essence of counting. Handoff Counters are the first CRDT (Conflict-free Replicated Data Type) based mechanism that overcomes the identity explosion problem in naive CRDTs, such as G-Counters (where state size is linear in the number of independent actors that ever incremented the counter), by managing identities towards avoiding global propagation and garbage collecting temporary entries. The approach used in Handoff Counters is not restricted to counters, being more generally applicable to other data types with associative and commutative operations.

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

↑