arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1804.01942cs.DCcs.DB
收藏

使用操作划分横向扩展Acid应用程序

Scaling Out Acid Applications with Operation Partitioning

Habib Saissi, Marco Serafini, Neeraj Suri

摘要:

具有无法由单个服务器提供服务的高工作负载的OLTP应用程序需要横向扩展到多个服务器。通常,向外扩展需要将应用程序状态的不同分区分配给每个服务器。但是,数据分区与ACID事务的强一致性保证(许多OLTP应用程序的基本构建块)不一致。我们越是将数据扩展和分散到多个服务器上,访问不同服务器上数据的分布式事务就越频繁。对于大量的服务器,分布式事务的高成本使得向外扩展无效甚至有害。在本文中,我们提出了操作分区,一种新的范式来扩展OLTP应用程序,需要ACID保证。操作分区通过静态分析对应用程序的操作进行分区,从而间接地跨服务器对数据进行分区。这种操作划分产生了用于分布式协调的无锁传送带协议,该协议可以扩展在未修改的数据库管理系统上运行的未修改的应用程序。我们在一个名为Elia的系统中实现了该协议,并使用它扩展了两个应用程序,TPC-W和RUBiS。我们的实验表明,Elia可以将最大吞吐量提高4.2倍,并将延迟降低58.6倍,同时提供更强的隔离保证(可串行化而不是读取提交)。

英文摘要:

OLTP applications with high workloads that cannot be served by a single server need to scale out to multiple servers. Typically, scaling out entails assigning a different partition of the application state to each server. But data partitioning is at odds with preserving the strong consistency guarantees of ACID transactions, a fundamental building block of many OLTP applications. The more we scale out and spread data across multiple servers, the more frequent distributed transactions accessing data at different servers will be. With a large number of servers, the high cost of distributed transactions makes scaling out ineffective or even detrimental. In this paper we propose Operation Partitioning, a novel paradigm to scale out OLTP applications that require ACID guarantees. Operation Partitioning indirectly partitions data across servers by partitioning the application's operations through static analysis. This partitioning of operations yields to a lock-free Conveyor Belt protocol for distributed coordination, which can scale out unmodified applications running on top of unmodified database management systems. We implement the protocol in a system called Elia and use it to scale out two applications, TPC-W and RUBiS. Our experiments show that Elia can increase maximum throughput by up to 4.2x and reduce latency by up to 58.6x compared to MySQL Cluster while at the same time providing a stronger isolation guarantee (serializability instead of read committed).

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑