MDCC:多数据中心一致性
MDCC: Multi-Data Center Consistency
摘要:
跨多个数据中心复制数据不仅可以将数据移动到更靠近用户的位置,从而减少应用程序的延迟,而且还可以在数据中心发生故障时提高可用性。因此,谷歌、雅虎和Netflix等公司已经在不同地理区域复制用户数据也就不足为奇了。但是,跨数据中心的复制成本很高。数据中心间的网络延迟为数百毫秒,并且差异很大。因此,同步广域复制被认为是不可行的强一致性和当前的解决方案要么解决异步复制,这意味着在发生故障时丢失数据的风险,限制小分区的一致性,或完全放弃一致性。与MDCC(多数据中心一致性),我们描述了第一个乐观的提交协议,不需要一个主或分区,是强一致的成本类似最终一致的协议。在正常操作情况下,MDCC可以在数据中心之间的单次往返中提交事务。我们进一步提出了一个新的编程模型,使应用程序开发人员能够处理更长的和不可预测的延迟所造成的数据中心间的通信。我们的评估使用TPC-W基准与MDCC部署在5个地理位置不同的数据中心表明,MDCC是能够实现吞吐量和延迟类似于最终一致的仲裁协议,MDCC是能够维持数据中心中断没有显着影响响应时间,同时保证强一致性。
英文摘要:
Replicating data across multiple data centers not only allows moving the data closer to the user and, thus, reduces latency for applications, but also increases the availability in the event of a data center failure. Therefore, it is not surprising that companies like Google, Yahoo, and Netflix already replicate user data across geographically different regions. However, replication across data centers is expensive. Inter-data center network delays are in the hundreds of milliseconds and vary significantly. Synchronous wide-area replication is therefore considered to be unfeasible with strong consistency and current solutions either settle for asynchronous replication which implies the risk of losing data in the event of failures, restrict consistency to small partitions, or give up consistency entirely. With MDCC (Multi-Data Center Consistency), we describe the first optimistic commit protocol, that does not require a master or partitioning, and is strongly consistent at a cost similar to eventually consistent protocols. MDCC can commit transactions in a single round-trip across data centers in the normal operational case. We further propose a new programming model which empowers the application developer to handle longer and unpredictable latencies caused by inter-data center communication. Our evaluation using the TPC-W benchmark with MDCC deployed across 5 geographically diverse data centers shows that MDCC is able to achieve throughput and latency similar to eventually consistent quorum protocols and that MDCC is able to sustain a data center outage without a significant impact on response times while guaranteeing strong consistency.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。