Batch Processing Millions and Millions of Images
codeascraft.com
codeascraft.com
But here’s the spoiler… We did it in nine days. Every single image."
TL;DR: Computers are faster than humans.
I had a similar problem as the OP: millions of images stored on S3 that each needed to be rescaled to a set of four new dimensions. Etsy's work encouraged me to dive in with the hope that I could accomplish my task with relatively little pain.
Indeed, I was able to write some multi-threaded Python that ran on a single XXL EC2 instance and was able to rip through every image in less than 48 hours.
Thanks to Mike, and the folks at Etsy, for posting about your experiences!
I was looking to submit an article [1] that was an intensely fun read. Before I did I looked for previous submissions, and found this: [2] and this [3]
Given the seriously low scores these stories had vs how good the article was, I assumed it just got unlucky, so I posted it again.
In response to my POST, Hacker News sent me a 302 redirect to [3].
Ok, that must be because the url refers to the same story. Which I figured was some automatic thing HN does to avoid reposts. Given that the OP url hadn't obviously mutated in any way, I knew I didn't need to check, so I submitted again... and nothing, that was fine.
So I have no idea how hacker news works. I plead innocent by way of insanity.
1: http://www.datagenetics.com/blog/december32011/index.html 2: http://news.ycombinator.com/item?id=3971657 3: http://news.ycombinator.com/item?id=3474763
I turned up this: http://www.time-travellers.org/shane/papers/NFS_considered_h...
good read.
In the real world, you use what works, not the flavor of the month.
We used MogileFS for image storage.
Resizing millions of images was a daily task.
NFS is not the right tool but is frequently mistaken for such.
I haven't seen any posts from Etsy on their normal image pipeline, so it's hard to say. It sounds like this was a one-time conversion. Their live image serving is on Akamai, but nothing says they're back-ending the origin servers on NFS.
I have to imagine with the amount of ops talent at Etsy, they're not using NFS because they're too dumb to know about a better option. I'm guessing John Allspaw knows a thing or two about how to serve images at high volume.
dmourati was being a jerk but boy, this particular response is hilarious. I suggest Googling his name with some image processing terms if you feel like eating crow.