by dsl · 15y ago · 0 comments
- A framework for running a query across a lot of machines (a pretty much solved problem)
- Throw a metric fuckton of hardware at the problem
1b rows/sec isn't all that impressive when you find out they have 1.3 Tb of RAM and a $30,000 a month EC2 bill [1].1. "Our 40-instance (m2.2xlarge) cluster can scan, filter, and aggregate 1 billion rows in 950 milliseconds."
I also know that the size of the cluster is a fraction of 40 instances (especially if you don't include the subcluster of web crawlers).
By comparison, it doesn't seem super impressive. Tineye's metadata is stored in a sharded PostgreSQL database, the image index itself is a separate proprietary engine (also sharded).
Then again, we probably dealt with a smaller set of query types so we could optimize those scenarios much more heavily. Nonetheless, from my experience it feels like they could do better with any of the options they've tried. It's important to be aware where the bottleneck is. In our case, the IO of the EC2 storage disks was a bottleneck (which we mitigated by sharding). Once we moved the cluster off of AWS and shoved some nice SSD drives into the machines, the performance increase was dramatic (half the shards for twice the speed, pretty much).
http://perfcap.blogspot.com/2011/03/understanding-and-using-...
Somewhere there's an HN discussion for it too.