GeoTP:数据库中间件中感知延迟的地理分布式事务处理(扩展版)
GeoTP: Latency-aware Geo-Distributed Transaction Processing in Database Middlewares (Extended Version)
AI总结:
针对地理分布式数据库中间件因高网络延迟和长锁竞争导致的事务性能下降问题,本文提出GeoTP,通过去中心化准备、延迟感知调度及启发式优化减少往返与锁等待,并在ShardingSphere和ScalarDB上验证,最高获得17.7倍性能提升。
摘要:
数据库中间件被广泛用于支持分布式事务处理,在众多应用中十分普遍,异构数据源部署在国家和国际边界之间。然而,由于中间件与数据源之间的高网络延迟以及长锁竞争跨度(事务在等待并发事务持有的锁时可能被阻塞),事务处理性能显著下降。本文提出GeoTP,一种数据库中间件中感知延迟的地理分布式事务处理方法。GeoTP融合三种关键技术以提升地理分布式事务性能:首先,提出去中心化准备机制,减少分布式事务的网络往返需求;其次,设计感知延迟的调度器,通过策略性推迟锁获取时间点来最小化锁竞争跨度;第三,为调度器提出启发式优化以进一步减少锁竞争跨度。我们在先进中间件Apache Shardingsphere上实现GeoTP,并将其扩展到Apache ScalarDB。在YCSB和TPC-C上的实验结果表明,GeoTP相比Shardingsphere实现了高达17.7倍的性能提升。
英文摘要:
The widespread adoption of database middleware for supporting distributed transaction processing is prevalent in numerous applications, with heterogeneous data sources deployed across national and international boundaries. However, transaction processing performance significantly drops due to the high network latency between the middleware and data sources and the long lock contention span, where transactions may be blocked while waiting for the locks held by concurrent transactions. In this paper, we propose GeoTP, a latency-aware geo-distributed transaction processing approach in database middlewares. GeoTP incorporates three key techniques to enhance geo-distributed transaction performance. First, we propose a decentralized prepare mechanism, which diminishes the requirement of network round trips for distributed transactions. Second, we design a latency-aware scheduler to minimize the lock contention span by strategically postponing the lock acquisition time point. Third, heuristic optimizations are proposed for the scheduler to reduce the lock contention span further. We implemented GeoTP on Apache Shardingsphere, a state-of-the-art middleware, and extended it into Apache ScalarDB. Experimental results on YCSB and TPC-C demonstrate that GeoTP achieves up to 17.7x performance improvement over Shardingsphere.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。