RocksDB: Evolution of Development Priorities in a Key-value Store Serving Large-scale Applications
Open accessThe DOI matches its Crossref record; 30 of the 30 references it cites were found in a registry or an index.
Abstract
This article is an eight-year retrospective on development priorities for RocksDB, a key-value store developed at Facebook that targets large-scale distributed systems and that is optimized for Solid State Drives (SSDs). We describe how the priorities evolved over time as a result of hardware trends and extensive experiences running RocksDB at scale in production at a number of organizations: from optimizing write amplification, to space amplification, to CPU utilization. We describe lessons from running large-scale applications, including that resource allocation needs to be managed across different RocksDB instances, that data formats need to remain backward- and forward-compatible to allow incremental software rollouts, and that appropriate support for database replication and backups are needed. Lessons from failure handling taught us that data corruption errors needed to be detected earlier and that data integrity protection mechanisms are needed at every layer of the system. We describe improvements to the key-value interface. We describe a number of efforts that in retrospect proved to be misguided. Finally, we describe a number of open problems that could benefit from future research.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Bigtable: A Distributed Storage System for Structured Data
Chang, F., Dean, J., Ghemawat, S., Hsieh, W. C., Wallach, D. A., Burrows, M., Chandra, T., Fikes, A., & Gruber, R. E. (2008) · ACM Transactions on Computer Systems · doi:10.1145/1365815.1365816 · Cited by 3,460
End-To-End Arguments In System Design
And, S. R., Saltzer, J. H., Reed, D. P., & Clark, D. D. (1984) · Cited by 2,130
Ghemawat, S., Gobioff, H., & Leung, S.-T. (2003) · Proceedings of the nineteenth ACM symposium on Operating systems principles · doi:10.1145/945445.945450 · Cited by 1,423
The log-structured merge-tree (LSM-tree)
O’Neil, P., Cheng, E., Gawlick, D., & O’Neil, E. (1996) · Acta Informatica · doi:10.1007/s002360050048 · Cited by 1,317 · cited 2×
“Section 2 provides background on SSDs and Log-Structured Merge (LSM) trees [72].”
BackgroundMethod(2015) · KTH Publication Database DiVA (KTH Royal Institute of Technology) · Cited by 1,144
Spanner: Google’s Globally Distributed Database
Corbett, J. C., Dean, J., Epstein, M., Fikes, A., Frost, C., Furman, J. J., Ghemawat, S., Gubarev, A., Heiser, C., Hochschild, P., et al. (2013) · ACM Transactions on Computer Systems · doi:10.1145/2491245 · Cited by 729 · cited 1×
“There are numerous distributed storage systems [11, 15, 34, 35, 62, 91].”
A review of emerging non-volatile memory (NVM) technologies and applications
Chen, A. (2016) · Solid-State Electronics · doi:10.1016/j.sse.2016.07.006 · Cited by 668
Hekaton: SQL server's memory-optimized OLTP engine
Diaconu, C., Freedman, C., Ismert, E., Larson, P.-Å., Mittal, P., Stonecipher, R., Verma, N., & Zwilling, M. (2013) · ACM SIGMOD International Conference on Management of Data (SIGMOD) · doi:10.1145/2463676.2463710 · Cited by 576 · cited 4×
“This differs from systems with more general targets, or built for faster storage media [17, 50].”
BackgroundMethodInfluentialColumn-stores vs. row-stores: how different are they really?
Abadi, D. J., Madden, S. R., & Hachem, N. (2008) · Proceedings of the 2008 ACM SIGMOD international conference on Management of data · doi:10.1145/1376616.1376712 · Cited by 436 · cited 1×
“2); and (4) when columns are identified explicitly, data can be compressed more efficiently using techniques similar to those used in columnar databases [1].”
MethodPebblesDB: Building Key-Value Stores using Fragmented Log-Structured Merge Trees
Raju, P., Kadekodi, R., Chidambaram, V., & Abraham, I. (2017) · ACM SIGOPS Symposium on Operating Systems Principles (SOSP) · doi:10.1145/3132747.3132765 · Cited by 370 · cited 2×
“Write amplifications is often the primary optimization goal; e.g., WiscKey [56], PebblesDB [81], IAM-tree [42], and TRIAD [5].”
BackgroundTiDB: a Raft-based HTAP database
Huang, D., Liu, Q., Cui, Q., Fang, Z., Ma, X., Xu, F., Shen, L., Tang, L., Zhou, Y., Huang, M., et al. (2020) · Proceedings of the VLDB Endowment · doi:10.14778/3415478.3415535 · Cited by 327
WiscKey: Separating Keys from Values in SSD-Conscious Storage
Lu, L., Pillai, T. S., Gopalakrishnan, H., Arpaci-Dusseau, A. C., & Arpaci-Dusseau, R. H. (2017) · ACM Transactions on Storage · doi:10.1145/3033273 · Cited by 301 · cited 3×
“It is not uncommon for databases to store large objects separately for different reasons, including recent systems WiscKey [56] and ForrestDB [3].”
BackgroundSILT: a memory-efficient, high-performance key-value store
Lim, H., Fan, B., Andersen, D. G., & Kaminsky, M. (2011) · Proceedings of the Twenty-Third ACM Symposium on Operating Systems Principles · doi:10.1145/2043556.2043558 · Cited by 294 · cited 2×
“As early as 2011, SILT [54] proposed a key-value store that balanced be-tween memory efficiency, CPU, and performance.”
BackgroundSilent Data Corruptions at ScalePreprint
Dixit, H. D., Pendharkar, S., Beadon, M., Mason, C., Chakravarthy, T., Muthiah, B., & Sankar, S. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2102.11245 · Cited by 293 · cited 1×
“Second, integrity protection must cover the entire system to prevent silent hardware data corruptions [18, 45] from being exposed to RocksDB clients or spreading to other replicas (see Figure 5).”
BackgroundSamza: Stateful scalable stream processing at LinkedIn
Noghabi, S. A., Paramasivam, K., Pan, Y., Ramesh, N., Bringhurst, J., Gupta, I., & Campbell, R. H. (2017) · Proceedings of the VLDB Endowment · doi:10.14778/3137765.3137770 · Cited by 276
CockroachDB: The Resilient Geo-Distributed SQL Database
Taft, R., Sharif, I., Matei, A., VanBenschoten, N., Lewis, J., Grieger, T., Niemi, K., Woods, A., Birzin, A., Poss, R., et al. (2020) · Proceedings of the 2020 ACM SIGMOD International Conference on Management of Data · doi:10.1145/3318464.3386134 · Cited by 254 · cited 5×
“Besides being used as a storage engine for databases (e.g., MySQL [61], Rocksandra [44], CockroachDB [91], MongoDB [76], and TiDB [46]), RocksDB is also used for the following types of services with highly disparate characteristics, summarized in Table 1: • Stream processing : RocksDB is used to store staging data in…”
BackgroundMethodInfluentialHochschild, P. H., Turner, P., Mogul, J. C., Govindaraju, R., Ranganathan, P., Culler, D. E., & Vahdat, A. (2021) · Proceedings of the Workshop on Hot Topics in Operating Systems · doi:10.1145/3458336.3465297 · Cited by 214
An efficient design and implementation of LSM-tree based key-value store on open-channel SSD
Wang, P., Sun, G., Jiang, S., Ouyang, J., Lin, S., Zhang, C., & Cong, J. (2014) · European Conference on Computer Systems · doi:10.1145/2592798.2592804 · Cited by 193 · cited 1×
“LOCS [96], NoFTL-KV [95], and FlashKV [100] target Open-Channel SSDs for improved performance.”
BackgroundFOEDUS: OLTP Engine for a Thousand Cores and NVRAM
Kimura, H. (2015) · Proceedings of the 2015 ACM SIGMOD International Conference on Management of Data · doi:10.1145/2723372.2746480 · Cited by 180 · cited 1×
“This differs from systems with more general targets, or built for faster storage media [17, 50].”
BackgroundRealtime Data Processing at Facebook
Chen, G. J., Wiener, J. L., Iyer, S., Jaiswal, A., Lei, R., Simha, N. V. R., Wang, W., Wilfong, K., Williamson, T., & Yilmaz, S. (2016) · ACM SIGMOD International Conference on Management of Data (SIGMOD) · doi:10.1145/2882903.2904441 · Cited by 173 · cited 2×
“• Stream processing: RocksDB is used to store staging data in Apache Flink [10], Kafka Stream [51], Samza [69], and Facebook’s Stylus [13].”
MethodInfluentialBuilding workload-independent storage with VT-trees
Shetty, P., Spillane, R. P., Malpani, R., Andrews, B., Seyster, J., & Zadok, E. (2013) · File and Storage Technologies · doi:10.5555/2591272.2591275 · Cited by 164
SlimDB: a space-efficient key-value storage engine for semi-sorted data
Ren, K., Zheng, Q., Arulraj, J. J. P., & Gibson, G. A. (2017) · Proceedings of the VLDB Endowment · doi:10.14778/3151106.3151108 · Cited by 141 · cited 1×
“SlimDB [82] optimized LSM-trees for space efficiency; RocksDB also focuses on deleting dead data.”
MethodContinuous deployment at Facebook and OANDA
Savor, T., Douglas, M., Gentili, M., Williams, L., Beck, K., & Stumm, M. (2016) · Proceedings of the 38th International Conference on Software Engineering Companion · doi:10.1145/2889160.2889223 · Cited by 130 · cited 1×
“In light of continuous deployment [84], these software upgrades occur frequently; for example, RocksDB issues a new release once a month.”
Self-citationFile systems unfit as distributed storage backends: lessons from 10 years of Ceph evolution
Aghayev, A., Weil, S. A., Kuchnik, M., Nelson, M., Ganger, G. R., & Amvrosiadis, G. (2019) · ACM SIGOPS Symposium on Operating Systems Principles (SOSP) · doi:10.1145/3341301.3359656 · Cited by 104 · cited 19×
“Specifically, each SSTable block or WAL fragment has a checksum attached to it, generated when the data is created.”
MethodInfluentialScaling concurrent log-structured data stores
Golan-Gueta, G., Bortnikov, E., Hillel, E., & Keidar, I. (2015) · European Conference on Computer Systems · doi:10.1145/2741948.2741973 · Cited by 94 · cited 1×
“bLSM [85], VT-tree [88], and cLSM [41] optimize for the general performance of LSM-trees.”
MethodEnd-to-end data integrity for file systems: a ZFS case study
Zhang, Y., Rajimwale, A., Arpaci-Dusseau, A. C., & Arpaci-Dusseau, R. H. (2010) · File and Storage Technologies · doi:10.5555/1855511.1855514 · Cited by 91
Zhang, J., Lu, Y., Shu, J., & Qin, X. (2017) · ACM Transactions on Embedded Computing Systems · doi:10.1145/3126545 · Cited by 53
Efficient Reuse Distance Analysis of Multicore Scaling for Loop-Based Parallel Programs
Wu, M.-J., & Yeung, D. (2013) · ACM Transactions on Computer Systems · doi:10.1145/2427631.2427632 · Cited by 49
ForestDB: A Fast Key-Value Storage System for Variable-Length String Keys
Ahn, J.-S., Seo, C., Mayuram, R., Yaseen, R., Kim, J., & Maeng, S. (2015) · IEEE Transactions on Computers · doi:10.1109/tc.2015.2435779 · Cited by 47 · cited 1×
“It is not uncommon for databases to store large objects separately for different reasons, including recent systems WiscKey [56] and ForrestDB [3].”
BackgroundZettabyte reliability with flexible end-to-end data integrity
Zhang, Y., Myers, D. S., Arpaci-Dusseau, A. C., & Arpaci-Dusseau, R. H. (2013) · Digest of papers - IEEE Symposium on Mass Storage Systems · doi:10.1109/msst.2013.6558423 · Cited by 22 · cited 1×
“An established technique for detecting write corruptions early is to generate a handoff checksum on the data to be written to the underlying file system and pass it down along with the data, where it is verified by the lower layers [77, 101].”
Method
Metadata
- Authors
- Dong, S., Kryczka, A., Jin, Y., & Stumm, M.
- Venue
- ACM Transactions on Storage
- Published
- 2021-10-15
- Volume
- 17
- Issue
- 4
- Pages
- 1-32
- ISSN
- 1553-3077 (ISSN-L)
- 1553-3093
- OpenAlex
- W3207452942
- Cited by
- 223
- References
- 30
- FWCI
- 12.81
- Type
- journal article
- Language
- en
- Open access
- hybrid
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.