华东师范大学学报(自然科学版) ›› 2023, Vol. 2023 ›› Issue (6): 28-38.doi: 10.3969/j.issn.1000-5641.2023.06.003

• 计算机科学 • 上一篇    下一篇

面向高冲突事务处理的架构设计和优化

连薛超1, 刘维2, 王清帅1, 张蓉1,*()   

  1. 1. 华东师范大学 数据科学与工程学院, 上海 200062
    2. 工业和信息化部电子第五研究所, 广州 511300
  • 收稿日期:2022-07-17 出版日期:2023-11-25 发布日期:2023-11-23
  • 通讯作者: 张蓉 E-mail:rzhang@dase.ecnu.edu.cn
  • 基金资助:
    国家自然科学基金(62072179); 2021 CCF-华为数据库创新研究计划; 基础软硬件性能与可靠性测评工业和信息化部重点实验室开放课题

Design and optimization of high-contention transaction processing architecture

Xuechao LIAN1, Wei LIU2, Qingshuai WANG1, Rong ZHANG1,*()   

  1. 1. School of Data Science and Engineering, East China Normal University, Shanghai 200062, China
    2. The Fifth Electronics Research Institute of the Ministry of Industry and Information Technology, Guangzhou 511300, China
  • Received:2022-07-17 Online:2023-11-25 Published:2023-11-23
  • Contact: Rong ZHANG E-mail:rzhang@dase.ecnu.edu.cn

摘要:

无共享架构的分布式数据库是为了应对互联网业务的高可扩展性和高可用性而诞生的. 目前无共享架构的分布式数据库虽然已经有了长足的进展, 但是对于一些采用无状态计算层的无共享架构分布式数据库而言, 往往存在着冲突检测链路过长的问题, 这一问题在高冲突的场景下会更加突出. 针对这一问题, 设计了预先加锁和本地缓存两个策略, 并开发了配套的高冲突检测模块, 可以实现快速检测冲突并启动对应的高冲突处理策略. 实验表明, 对高冲突事务处理的架构设计和优化可以提高分布式数据库系统在高冲突负载下的性能.

关键词: 事务处理, 高冲突, 分布式数据库

Abstract:

Shared-nothing distributed databases are designed for the high scalability and high availability request of Internet-based applications. There have been significant achievements in shared-nothing distributed databases, but for some shared-nothing databases with stateless computation layers, long conflict-detection paths challenge database performance under high-contention workloads. To solve this problem, we design two methods, pre-lock and local cache, together with a high-contention detection module that allow high-contention to be quickly detected and the corresponding high-contention-handling strategy applied. Experiments show that our design and optimization for high-contention transaction-processing architecture can improve the performance of distributed databases under high-contention workloads.

Key words: transaction processing, high-contention, distributed database

中图分类号: