92 points · by eridal · 12y ago · 42 comments
EDIT: GitHub has more information. It's a scalable ordered key-value store (think a distributed version of Berkeley db.) Storage is based on RocksDB (a variant of LevelDB) and consensus is achieved using Raft. The database is written in Go. It's meant to "tolerate disk, machine, rack, and even datacenter failures with minimal latency disruption and no manual intervention."
What's not clear at all is where it sits CAP wise. It says it's available and strongly consistent. Which would be CA, which is not an option (especially for something claiming to be failure tolerant.) It must either sacrifice write availability or consistency in the event of a partition. No idea which way it leans.
Either you use a strongly consistent mode that can have poor performance under contention, or a strongly consistent mode that will have good performance under contention but lots of failed transactions. So you get to decide on performance vs availability.
To answer your question, it sacrifices availability, not consistency. It's an MVCC, after all.
If it's based on Raft, then it sacrifices availability if there aren't a quorum of nodes online.
And yeah, you kind of have to sacrifice availability if you want to stay consistent in the face of write skew...
And logical address space is still far in excess of what most disks or arrays can fit, right? 40 bits or so on linux?
EDIT: 47 bits, for 128TB -- http://stackoverflow.com/questions/2159456/whats-the-max-fil...
The author of LMDB makes pretty bold performance claims and people are too eager to believe them.
You shouldn't propagate those claims unless you've done benchmarking to verify them.
The author of LMDB doesn't really make bold claims, he actually just included LMDB (and the venerable Berkeley DB) in LevelDB's published benchmarks. The benchmarks were developed by the LevelDB team.
it seems like it uses Megastore http://www.cidrdb.org/cidr2011/Papers/CIDR11_Paper32.pdf
If you want to know how spanner works, read the paper. If you want to use it yourself, you'll need to build it on top of your own infrastructure, just like Google did.
Github project: https://github.com/cockroachdb/cockroach/
Servers go down every day, and data centers go down every month. This project solves a real problem.
Maybe you'll come back with a completely-bogus, typical hackernews-ish response, deluding yourself, saying that yes you like it when advertisers target you based on the data they collect about you because of reasons X Y and Z, something something "better for me". Ads targeted at you do not benefit you in any way unless you work for an advertising firm.
And are you seriously arguing that NSA et al do not peek into cloud storage? Have you been living under a rock?
They mean I don't have to pay every website that generates content in order to have them...you know...exist.