Lion: Minimizing Distributed Transactions through Adaptive Replica Provision (Extended Version)

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Zheng, Qiushi, Zhao, Zhanhao, Lu, Wei, Yao, Chang, Chen, Yuxing, Pan, Anqun, Du, Xiaoyong
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914717964959744
author Zheng, Qiushi
Zhao, Zhanhao
Lu, Wei
Yao, Chang
Chen, Yuxing
Pan, Anqun
Du, Xiaoyong
author_facet Zheng, Qiushi
Zhao, Zhanhao
Lu, Wei
Yao, Chang
Chen, Yuxing
Pan, Anqun
Du, Xiaoyong
contents Distributed transaction processing often involves multiple rounds of cross-node communications, and therefore tends to be slow. To improve performance, existing approaches convert distributed transactions into single-node transactions by either migrating co-accessed partitions onto the same nodes or establishing a super node housing replicas of the entire database. However, migration-based methods might cause transactions to be blocked due to waiting for data migration, while the super node can become a bottleneck. In this paper, we present Lion, a novel transaction processing protocol that utilizes partition-based replication to reduce the occurrence of distributed transactions. Lion aims to assign a node with one replica from each partition involved in a given transaction's read or write operations. To ensure such a node is available, we propose an adaptive replica provision mechanism, enhanced with an LSTM-based workload prediction algorithm, to determine the appropriate node for locating replicas of co-accessed partitions. The adaptation of replica placement is conducted preemptively and asynchronously, thereby minimizing its impact on performance. By employing this adaptive replica placement strategy, we ensure that the majority of transactions can be efficiently processed on a single node without additional overhead. Only a small fraction of transactions will need to be treated as regular distributed transactions when such a node is unavailable. Consequently, Lion effectively minimizes distributed transactions while avoiding any disruption caused by data migration or the creation of a super node. We conduct extensive experiments to compare Lion against various transaction processing protocols. The results show that Lion achieves up to 2.7x higher throughput and 76.4% better scalability against these state-of-the-art approaches.
format Preprint
id arxiv_https___arxiv_org_abs_2403_11221
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Lion: Minimizing Distributed Transactions through Adaptive Replica Provision (Extended Version)
Zheng, Qiushi
Zhao, Zhanhao
Lu, Wei
Yao, Chang
Chen, Yuxing
Pan, Anqun
Du, Xiaoyong
Distributed, Parallel, and Cluster Computing
Databases
Distributed transaction processing often involves multiple rounds of cross-node communications, and therefore tends to be slow. To improve performance, existing approaches convert distributed transactions into single-node transactions by either migrating co-accessed partitions onto the same nodes or establishing a super node housing replicas of the entire database. However, migration-based methods might cause transactions to be blocked due to waiting for data migration, while the super node can become a bottleneck. In this paper, we present Lion, a novel transaction processing protocol that utilizes partition-based replication to reduce the occurrence of distributed transactions. Lion aims to assign a node with one replica from each partition involved in a given transaction's read or write operations. To ensure such a node is available, we propose an adaptive replica provision mechanism, enhanced with an LSTM-based workload prediction algorithm, to determine the appropriate node for locating replicas of co-accessed partitions. The adaptation of replica placement is conducted preemptively and asynchronously, thereby minimizing its impact on performance. By employing this adaptive replica placement strategy, we ensure that the majority of transactions can be efficiently processed on a single node without additional overhead. Only a small fraction of transactions will need to be treated as regular distributed transactions when such a node is unavailable. Consequently, Lion effectively minimizes distributed transactions while avoiding any disruption caused by data migration or the creation of a super node. We conduct extensive experiments to compare Lion against various transaction processing protocols. The results show that Lion achieves up to 2.7x higher throughput and 76.4% better scalability against these state-of-the-art approaches.
title Lion: Minimizing Distributed Transactions through Adaptive Replica Provision (Extended Version)
topic Distributed, Parallel, and Cluster Computing
Databases
url https://arxiv.org/abs/2403.11221