华东师范大学学报(自然科学版) ›› 2018, Vol. 2018 ›› Issue (5): 91-106.doi: 10.3969/j.issn.1000-5641.2018.05.008

• 高性能数据库管理 • 上一篇    下一篇

一致性协议在分布式数据库系统中的应用

赵春扬, 肖冰, 郭进伟, 钱卫宁   

  1. 华东师范大学 数据科学与工程学院, 上海 200062
  • 收稿日期:2018-06-27 出版日期:2018-09-25 发布日期:2018-09-26
  • 通讯作者: 钱卫宁,男,教授,博士生导师,研究方向为社交媒体数据管理与分析、与基准评测、基于开放信息的知识图谱构建与利用等.E-mail:wnqian@dase.ecnu.edu.cn. E-mail:wnqian@dase.ecnu.edu.cn
  • 作者简介:赵春扬,男,硕士研究生,研究方向为数据库系统.E-mail:zhaochunyang@stu.ecnu.edu.cn.
  • 基金资助:
    国家自然科学基金重点项目(61332006);国家863计划项目(2015AA015307)

Application of the consistency protocol in distributed database systems

ZHAO Chun-yang, XIAO Bing, GUO Jin-wei, QIAN Wei-ning   

  1. School of Data Science and Engineering, East China Normal University, Shanghai 200062, China
  • Received:2018-06-27 Online:2018-09-25 Published:2018-09-26

摘要: 近年来分布式数据库产品层出不穷,但分布式数据库较于单机数据库更复杂,为了让系统可用,设计者需要采用一致性协议来保证分布式数据库系统中的可用性和一致性这两个重要特性.保证一致性需要使用一致性协议为并发的事务更新操作确定一个全局的执行顺序,并协调局部状态和全局状态不断的达成动态一致;保证可用性需要一致性协议协调多副本之间的一致来实现主备节点的无缝切换.因此分布式一致性协议是实现分布式数据库系统的重要基础.详细介绍了经典的分布式一致性协议以及在目前常见的几种分布式数据库系统中一致性协议的应用,并从读写操作、节点类型与网络通信等方面进行对比分析.

关键词: 分布式数据库, 分布式一致性协议, 可用性, 一致性

Abstract: In recent years, many distributed database products have emerged in the market; yet, distributed databases are still more complex than centralized databases. In order to make the system useable, designers need to adopt the consistency protocol to ensure two important features of distributed database systems:availability and consistency. The protocol ensures consistency by determining the global execution order of operations for concurrent transactions and by coordinating local and global states to achieve continuous dynamic agreement; The consistency protocol ensures availability by coordinating consistency between multiple copies to achieve seamless switching between master and standby nodes. Hence, the distributed consensus protocol is the fundamental basis for the distributed database system. This paper reviews, in detail, the classic distributed consistency protocol and the application of the consistency protocol to current mature distributed database. The study also provides analysis and a comparison between the two approaches considering factors like read-write operation, node type, and network communication.

Key words: distributed database, distributed consistency protocol, consistency, availability

中图分类号: