A Comparative Study of Consistent Snapshot Algorithms for Main-Memory Database Systems
- 25 July 2019
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Knowledge and Data Engineering
- Vol. 33 (2) , 316-330
Abstract
In-memory databases (IMDBs) are gaining increasing popularity in big data applications, where clients commit updates intensively. Specifically, it is necessary for IMDBs to have efficient snapshot performance to support certain special applications (e.g., consistent checkpoint, HTAP). Formally, the in-memory consistent snapshot problem refers to taking an in-memory consistent time-in-point snapshot with the constraints that 1) clients can read the latest data items and 2) any data item in the snapshot should not be overwritten. Various snapshot algorithms have been proposed in academia to trade off throughput and latency, but industrial IMDBs such as Redis adhere to the simple fork algorithm. To understand this phenomenon, we conduct comprehensive performance evaluations on mainstream snapshot algorithms. Surprisingly, we observe that the simple fork algorithm indeed outperforms the state-of-the-arts in update-intensive workload scenarios. On this basis, we identify the drawbacks of existing research and propose two lightweight improvements. Extensive evaluations on synthetic data and Redis show that our lightweight improvements yield better performance than fork, the current industrial standard, and the representative snapshot algorithms from academia. Finally, we have opensourced the implementation of all the above snapshot algorithms so that practitioners are able to benchmark the performance of each algorithm and select proper methods for different application scenarios.Keywords
Funding Information
- Hong Kong RGC GRF (16214716)
- National Grand Fundamental Research 973 Program of China (2014CB340303)
- National Natural Science Foundation of China (61729201)
- Science and Technology Planning Project of Guangdong Province (2015B010110006)
- Webank Collaboration Research Project
- Microsoft Research Asia Collaborative Research
- National Natural Science Foundation of China (U1401256, 61732003, 61332006, 61729201)
- National Natural Science Foundation of China (61872072, 61572119, 61622202)
- Fundamental Research Funds for the Central Universities (N150402005)
This publication has 26 references indexed in Scilit:
- In-Memory Big Data Management and Processing: A SurveyIEEE Transactions on Knowledge and Data Engineering, 2015
- Staring into the abyssProceedings of the VLDB Endowment, 2014
- Speedy transactions in multicore in-memory databases2013
- SAP HANAProceedings of the VLDB Endowment, 2013
- Lightweight locking for main memory database systemsProceedings of the VLDB Endowment, 2012
- SAP HANA databaseACM SIGMOD Record, 2012
- An evaluation of checkpoint recovery for massively multiplayer online gamesProceedings of the VLDB Endowment, 2009
- A common database approach for OLTP and OLAP using an in-memory column database2009
- H-storeProceedings of the VLDB Endowment, 2008
- Understanding failures in petascale computersJournal of Physics: Conference Series, 2007