jrgifford/delayed_paperclip

Redis timeout with large images

Closed this issue · 1 comments

We're using delayed_paperclip backed by Sidekiq to process image styles in the background, and I've noticed some strange behavior. We're seeing a number of redis timeout errors like:

#<Redis::CannotConnectError: Timed out connecting to Redis on 4ef9d.openredis.io:15142>

But only for PNG and GIF images larger than about 200kb. My understanding of delayed_paperclip is that once the original image is uploaded (to S3 in our case), the size of the image should have no effect on how long it takes to enqueue the job which processes it, so I'm perplexed by this strong correlation. Could this be an issue with delayed_paperclip, or just a coincidence?

This is unlikely an issue with DelayedPaperclip but more likely an issue with Paperclip itself and it's connection to AWS since it only occurs for PNG and GIFs - DelayedPaperclip delegates all files to Paperclip.