Efficient and Available In-Memory KV-Store with Hybrid Erasure Coding and Replication

Author:

Chen Haibo1,Zhang Heng1,Dong Mingkai1,Wang Zhaoguo1,Xia Yubin1,Guan Haibing1,Zang Binyu1

Affiliation:

1. Shanghai Key Laboratory of Scalable Computing and Systems Institute of Parallel and Distributed Systems, Shanghai Jiao Tong University, Shanghai China

Abstract

In-memory key/value store (KV-store) is a key building block for many systems like databases and large websites. Two key requirements for such systems are efficiency and availability, which demand a KV-store to continuously handle millions of requests per second. A common approach to availability is using replication, such as primary-backup (PBR), which, however, requires M +1 times memory to tolerate M failures. This renders scarce memory unable to handle useful user jobs. This article makes the first case of building highly available in-memory KV-store by integrating erasure coding to achieve memory efficiency, while not notably degrading performance. A main challenge is that an in-memory KV-store has much scattered metadata. A single KV put may cause excessive coding operations and parity updates due to excessive small updates to metadata. Our approach, namely Cocytus, addresses this challenge by using a hybrid scheme that leverages PBR for small-sized and scattered data (e.g., metadata and key), while only applying erasure coding to relatively large data (e.g., value). To mitigate well-known issues like lengthy recovery of erasure coding, Cocytus uses an online recovery scheme by leveraging the replicated metadata information to continuously serve KV requests. To further demonstrate the usefulness of Cocytus, we have built a transaction layer by using Cocytus as a fast and reliable storage layer to store database records and transaction logs. We have integrated the design of Cocytus to Memcached and extend it to support in-memory transactions. Evaluation using YCSB with different KV configurations shows that Cocytus incurs low overhead for latency and throughput, can tolerate node failures with fast online recovery, while saving 33% to 46% memory compared to PBR when tolerating two failures. A further evaluation using the SmallBank OLTP benchmark shows that in-memory transactions can run atop Cocytus with high throughput, low latency, and low abort rate and recover fast from consecutive failures.

Funder

National Key Research 8 Development Program of China

China National Natural Science Foundation

Zhangjiang Hi-Tech program

Top-notch Youth Talents Program of China

Shanghai Science and Technology Development Fund

Publisher

Association for Computing Machinery (ACM)

Subject

Hardware and Architecture

Cited by 30 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Achieving Tunable Erasure Coding with Cluster-Aware Redundancy Transitioning;ACM Transactions on Architecture and Code Optimization;2024-09-14

2. Designing Non-uniform Locally Repairable Codes for Wide Stripes under Skewed File Accesses;Proceedings of the 53rd International Conference on Parallel Processing;2024-08-12

3. Advanced Elastic Reed–Solomon Codes for Erasure-Coded Key–Value Stores;IEEE Internet of Things Journal;2024-02-01

4. Enabling Efficient Erasure Coding in Disaggregated Memory Systems;IEEE Transactions on Parallel and Distributed Systems;2024-01

5. Hybrid fault tolerance in distributed in-memory storage systems;JUSTC;2024

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3