-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Carrierwave 3 extremely slow (retrieve_from_store! calling s3 over and over) #2697
Comments
Closing this because I submitted a pull request to fix this instead |
Faced the same problem: The application became very slow after upgrading to the 3 version. |
@wrmk Have you managed to resolve it? and have you tried my PR out to see if that resolved it for you? |
We downgraded to the 2 version. Have no possibility to investigate how to resolve or try your PR. |
I think this issue might be releated |
fog-aws v3.21.0 has fixes which seem related (it should help with the retries) |
@geemus Thank you! We just found that this was all caused by fog and solved it by replacing fog with |
@Amnesthesia sorry to hear you aren't using fog any more, but glad your problem is solved. |
We're trying to figure out what's happened in version 3 of Carrierwave, where S3 is now so slow that it's virtually unusable.
Carrierwave seems to
retrieve_from_store!
as soon as you access#uploaders
, and if a file doesn't exist on S3 (for whatever reason), it will keep retrying over and over and over, making it virtually unusable — but even when nothing is wrong,#store!
seems to suffer from something similar. Uploading a < 500kb file takes over 10 secondsCan't even access the uploader — even to get
#identifier
— without S3 being called and the file retrieved from storeThe text was updated successfully, but these errors were encountered: