168 points · by royguo1988 · 5y ago · 78 comments
RocksDB is a fork of Google's LevelDB [1] at Facebook. Optimized to exploit many CPU cores, and make efficient use of fast storage, such as solid-state drives (SSD), for input/output (I/O) bound workloads.
LevelDB [2] is an open-source on-disk key-value store written by Google fellows Jeffrey Dean and Sanjay Ghemawat. Inspired by Bigtable.
Bigtable [3] is a compressed, high performance, proprietary data storage system built on Google File System, Chubby Lock Service, SSTable (log-structured storage like LevelDB) and a few other Google technologies.
I hope the info above is useful for others as I dont have the slightest idea what RockDB is, but I do know LevelDB.
[1] https://en.wikipedia.org/wiki/RocksDB
[0] https://github.com/cockroachdb/pebble
[1] https://www.cockroachlabs.com/blog/pebble-rocksdb-kv-store/
I am one of the maintainers of this project you can ask any question here.
But now when I look at the new repo and the online doc there is no mention of succinct data struct anywhere.
Also, the benchmarks back then claimed 10x or more faster than RocksDB. Now the performance claim is much more modest.
Does that mean TerarkDB no longer uses succinct data struct? Or are you just open sourcing a lower-end version of the software without the secret sauce?
Can you talk about what makes TerarkDB faster than RocksDB?
Here's the reasons: 1. Our `all-in-one` docs are still under writing, we will cover that part later. 2. For the performance part, we are now showing real-world cases, not a well-designed benchmark.(We selected the best result to show our work few years ago, don't want to do it anymore) 3. About why TerarkDB is faster than RocksDB will be explained in our `all-in-one docs` in one week, and most of the reasons are not magic, just engineering efforts
Thanks again for your remembering us.
So... You're saying there is magic? :)
What are the reasons for the perf improvements we see here?
"An error occurred. This browser is not supported, click here to learn more."
[1] https://bytedance.feishu.cn/docs/doccnZmYFqHBm06BbvYgjsHHcKc
1. We changed the source code too much that we are not able to merge it back to RocksDB easily (This project started at 2016 as an close-source project) 2. We have different road path with RocksDB (e.g. We will remove a lot of un-used code to make TerarkDB much more light-weight than current version in the future) 3. We have lots of third-party partners (e.g. Intel, on Opatane SSD/Memory and others with ZNS...) may participant in this project so we want to handle all commits ourself to make sure everything is under control.
The comparison figures presented looked really impressive, thanks for sharing it.
EDIT: Detrimental to the original. Eg. Amazon forking and selling MongoDB.
So RocksDB came from LevelDB and here we go again.
I want to address that we are not meant to "get rid of" RocksDB (which lots of KV engine claimed). What we want to do is provide another solution for storage engine users with different road path (focusing on new hardware and heavy-write workloads).
For simple use cases, there will be no difference no matter what engine you use.
And for most cases, upgrade your hardware (e.g. SATA SSD to NVMe SSD) or tuning your RocksDB parameters would save you lots time, just make sure you understand what you are doing.
There's no cue for every workloads, try TerarkDB if RocksDB happens not fit your scenario.
Hopefully, that will also brings better Java test coverage and integration.
I would be happy to be contacted about specific Java API issues with RocksDB; Maybe I can help.
I remembered that we tried it on Flink in early versions are the result is pretty good.
By separating out large values there's less write amplification and things get faster because more of the SSTs fit in RAM cache. RocksDB wasn't historically a great choice to hold things like file uploads - you'd use the traditional filesystem for that. But that's quite constraining. When large values work better, it not only is a performance increase, but it enables new software designs too.
[1] https://www.usenix.org/system/files/conference/fast16/fast16...
Why not explain your project to me first? Assume I know nothing about the project and followed a link from HN.
"TerarkDB is a RocksDB replacement"
doesn't help me, what is RocksDB?
This is a huge missed chance for projects to get new users. Start every release note with a sentence explaining your project. Assume people reading your release notes are non-users.
There's probably a mutually beneficial filter being applied here by not letting beginners stumble in.
In an organization, it's easy to recognize consumers -- they typically say things like: "I don't understand this. Is there a training course for this that I can sign up for?" and expect to be assigned to an internal training session or to some external course.
An autodidact on the other hand goes: "I don't understand this. Let me do some research on my own and try to teach myself."
I've been both at various junctures in my life but I've learned that in order to progress to higher levels, it's better to be an autodidact instead of a consumer. When it comes to new knowledge, there's rarely someone who will feed it to me -- I have to take the initiative to learn it myself.
There's nothing wrong in asking for a clarifying blurb (good marketing aims to make things frictionless for potential customers). But RocksDB is its own universe and it's actually pretty well known. I don't work in this space, and even I know what RocksDB is because it has come up a lot in technical discussions about storage engines. When I first encountered it, I had no idea what it was, but I gathered from comments that people were excited about it, so I googled "wiki rocksdb". It took 2 seconds.
Truly curious people are autodidacts, not consumers.
p.s. the HN comment section is a great venue to "overhear" what the community is talking about and what they find exciting. It provides a good signal to dive into certain topics. Knowledge acquisition is very much a sociological exercise as much as it is an individual one.
I'm saying that unless you've used and hit the limits of RocksDB - and it's already absurdly fast - there's zero reason to utilize this project.
Maybe it'll mature one day, have multiplatform support and a wide array of client libraries, and be to RocksDB what RocksDB was to LevelDB. But today is not that day.
For now, developers that don't immediately understand what this project is for would best be served with a simple link to RocksDB.
So things I don't know exactly about are not for me? That seriosly hinders my personal development.
As a two decade CTO I think I should be interested in things I don't know about.