Skip to content
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

Backport thumbnailer fixes to stable-5.0 #10270

Merged
merged 7 commits into from
Oct 17, 2024

Conversation

rhafer
Copy link
Contributor

@rhafer rhafer commented Oct 9, 2024

This backports the following fixes to stable-5.0

#9035
#9069
#10225

DeepDiver1975 and others added 3 commits October 9, 2024 11:30
…wncloud#9035)

* feat: add maximum image dimension to be processed by the thumbnailer

* chore: make golangci-lint happy

(cherry picked from commit 9db3fd0)
Thumbnail max input width and height need to be the same, because images
can be portrait or landscape. See owncloud#9234

(cherry picked from commit 6117e19)
@rhafer rhafer marked this pull request as draft October 9, 2024 09:42
@rhafer rhafer force-pushed the backport/5.0/thumbnailer branch from 761f02d to d0ab77c Compare October 9, 2024 09:44
@rhafer rhafer self-assigned this Oct 9, 2024
This moves the ratelimit ('THUMBNAILS_MAX_CONCURRENT_REQUESTS') from the
HTTP endpoint to the GRPC endpoint. The HTTP endpoint is just used for
downloading already created thumbnails. But the resource consuming part of
thumbnail generation happens in the GRPC service.

(cherry picked from commit e2d7251)
@rhafer rhafer marked this pull request as ready for review October 9, 2024 12:52
@rhafer rhafer marked this pull request as draft October 10, 2024 07:41
@rhafer
Copy link
Contributor Author

rhafer commented Oct 10, 2024

Making this a draft again. I think I just found a missing piece.

We're now setting a 'Retry-After' in the webdav response when the
thunbnailer is rate limiting the requests. For now the timeout is just
a random number between 1 and 15 seconds.

(cherry picked from commit f536dac)
@rhafer rhafer marked this pull request as ready for review October 10, 2024 15:15
Copy link

@micbar
Copy link
Contributor

micbar commented Oct 16, 2024

Needs a second approval.

@micbar micbar merged commit 4a18dc5 into owncloud:stable-5.0 Oct 17, 2024
4 checks passed
@micbar micbar mentioned this pull request Nov 14, 2024
17 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants