TxnSails:通过自适应隔离级别选择实现可串行化事务调度
TxnSails: Achieving Serializable Transaction Scheduling with Self-Adaptive Isolation Level Selection
AI总结:
提出中间层解决方案TxnSails,通过统一并发控制算法、深度学习预测最优隔离级别及跨隔离级别验证机制,以低开销实现自适应的可串行化事务调度,性能显著优于现有方案。
摘要:
实现可串行化隔离级别(被视为事务处理的黄金标准)代价高昂。近期研究表明,调整工作负载内的特定查询模式,即使在较低隔离级别下也能实现可串行化。然而,这些研究通常忽视了较低隔离级别的性能优势与维持可串行化所需开销之间的权衡,可能导致次优的隔离级别选择,无法最大化性能。本文提出TxnSails,一种中间层解决方案,旨在通过自适应隔离级别选择实现可串行化调度。首先,TxnSails采用统一的并发控制算法,以极小的额外开销在较低隔离级别下实现可串行化。其次,TxnSails利用深度学习方法刻画较低隔离级别相关的性能收益与开销之间的权衡,从而预测最优隔离级别。最后,TxnSails实现跨隔离级别验证机制,确保实时隔离级别转换期间的可串行化。大量实验表明,TxnSails优于最先进解决方案高达26.7倍,优于PostgreSQL可串行化隔离级别高达4.8倍。
英文摘要:
Achieving the serializable isolation level, regarded as the gold standard for transaction processing, is costly. Recent studies reveal that adjusting specific query patterns within a workload can still achieve serializability even at lower isolation levels. Nevertheless, these studies typically overlook the trade-off between the performance advantages of lower isolation levels and the overhead required to maintain serializability, potentially leading to suboptimal isolation level choices that fail to maximize performance. In this paper, we present TxnSails, a middle-tier solution designed to achieve serializable scheduling with self-adaptive isolation level selection. First, TxnSails incorporates a unified concurrency control algorithm that achieves serializability at lower isolation levels with minimal additional overhead. Second, TxnSails employs a deep learning method to characterize the trade-off between the performance benefits and overhead associated with lower isolation levels, thus predicting the optimal isolation level. Finally, TxnSails implements a cross-isolation validation mechanism to ensure serializability during real-time isolation level transitions. Extensive experiments demonstrate that TxnSails outperforms state-of-the-art solutions by up to 26.7x and PostgreSQL's serializable isolation level by up to 4.8x.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。