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

S3 content indexing becomes slow at higher load #1983

Open
dzikoysk opened this issue Nov 30, 2023 · 0 comments
Open

S3 content indexing becomes slow at higher load #1983

dzikoysk opened this issue Nov 30, 2023 · 0 comments
Labels
cosmetic Issue is not harmful and affects only cosmatic part of a project performance Issues related to performance aspects of Reposilite

Comments

@dzikoysk
Copy link
Owner

What happened?

Browsing repository content in the UI causes a lot of requests to the S3 service. It has a few drawbacks:

  • Extra requests to the S3 service increase general response time
  • S3 service may rate limit requests/timeout, so file browser stops working
  • Handling so many in highly concurrent environment may cost us more than a simple cache
  • Cloud providers usually charge users for the number of requests, so it'd be nice if we could slightly limit them

Some sort of cache layer would probably solve the issue, but we have to be careful, because:

  1. It may increase resources usage of Reposilite, especially for the smallest private repositories (minimal requirements)
  2. What's even more important - the cache state may become outdated, especially between 2+ Reposilite's instances (k8s)

For now, I think it makes sense to hide this behind a feature flag - caching should be opt-in, with configurable TTL

Reposilite version

3.x

Relevant log output

No response

@dzikoysk dzikoysk added performance Issues related to performance aspects of Reposilite cosmetic Issue is not harmful and affects only cosmatic part of a project labels Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cosmetic Issue is not harmful and affects only cosmatic part of a project performance Issues related to performance aspects of Reposilite
Projects
None yet
Development

No branches or pull requests

1 participant