[1]王锦,梁正和,王法强.表广播机制在MyCat 中的实现[J].计算机技术与发展,2018,28(03):42-46.[doi:10.3969/ j. issn.1673-629X.2018.03.009]
 WANG Jin,LIANG Zheng-he,WANG Fa-qiang.Realization of Table Broadcasting Mechanism in MyCat[J].,2018,28(03):42-46.[doi:10.3969/ j. issn.1673-629X.2018.03.009]
点击复制

表广播机制在MyCat 中的实现()
分享到:

《计算机技术与发展》[ISSN:1006-6977/CN:61-1281/TN]

卷:
28
期数:
2018年03期
页码:
42-46
栏目:
智能、算法、系统工程
出版日期:
2018-03-10

文章信息/Info

Title:
Realization of Table Broadcasting Mechanism in MyCat
文章编号:
1673-629X(2018)03-0042-05
作者:
王锦梁正和王法强
河海大学 计算机与信息学院,江苏 南京 211110
Author(s):
WANG JinLIANG Zheng-heWANG Fa-qiang
School of Computer and Information,Hohai University,Nanjing 211100,China
关键词:
表广播MyCat分布式数据库数据库中间件
Keywords:
table broadcast mechanismMyCatdistributed databasedatabase middleware
分类号:
TP311.133.1
DOI:
10.3969/ j. issn.1673-629X.2018.03.009
文献标志码:
A
摘要:
海量数据存储与访问是系统设计与使用的瓶颈问题,利用开源的分布式存储数据库 MyCat,通过对数据进行水平切分,将不同的表映射到不同的数据引擎上,从逻辑上实现了数据库容量的扩充。 但是,利用数据操纵语言 DML 访问 MyCat 的全局表时,如果遇到异常情况致使某个节点断开连接,可能导致出现多个不同分库数据不一致的问题。 针对 MyCat分布式数据库中间件的这一弱分布式事务问题,提出一种表广播机制的解决方案。 该方案通过改变原始 MyCat 在 DML 访问时对全局表的执行逻辑,将作用于所有节点的操作改成对主节点的操作,再通过表广播机制完成各节点间的数据同步,实现各节点间的数据一致性。 并利用通用的 DML 访问实现表广播机制的 MyCat 数据库中的数据对 MyCat 进行了性能测试,测试结果表明,基于 MyCat 的表广播机制在 SQL 高效率执行的同时,也保证了各数据节点间的数据一致性。
Abstract:
The storage and access of massive data is the bottleneck of system design and use. The MyCat,an open source distributed storage database,makes the different tables mapped to different data engines through the horizontal segmentation of the data,which realizes the capacity extension of database logically. However,when using the data manipulation language (DML) to access the global table of MyCat,if a node is disconnected due to an abnormal situation,it may lead to the inconsistencies in the number of different sub-library data. For the problem of weak distributed transaction in MyCat distributed database middleware,we put forward a kind of solution about table broadcast mechanism. By changing the execution logic of the global table while the original MyCat accessing to the DML,the program changes the operation of all nodes to that of the master node,and implements the data consistency between the nodes by data synchronization between the nodes of the table broadcast mechanism. Then the MyCat is tested by common DML accessing to achieve the data in MyCat database of table broadcast mechanism,which shows that the table broadcast mechanism based on the MyCat is efficient in SQL and also guarantees the data consistency between the nodes.
更新日期/Last Update: 2018-04-08