jrgifford / delayed_paperclip

Process your Paperclip attachments in the background with delayed_job or Resque.
http://www.jstorimer.com/ruby/2010/01/30/delayed-paperclip.html
MIT License
402 stars 155 forks source link

Redis timeout with large images #117

Closed stevegrossi closed 9 years ago

stevegrossi commented 10 years ago

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?

ScotterC commented 9 years ago

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.