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

Add in memory cache to SWS #242

Open
Relaxe111 opened this issue Jul 17, 2023 · 1 comment · May be fixed by #328
Open

Add in memory cache to SWS #242

Relaxe111 opened this issue Jul 17, 2023 · 1 comment · May be fixed by #328
Labels
enhancement New feature or request v2 v2 release

Comments

@Relaxe111
Copy link

Relaxe111 commented Jul 17, 2023

Is your feature request related to a problem? Please describe.

SWS does not have in memory caching for static assets.

Describe the solution you'd like
On first request files will be taken from disk and cached for a given period in memory, all other subsequent will get files from memory cache.

This can be especially effective for scenarios where one have remote volumes bindings, like CSI

I think this feature shall be enabled with help of Environment variable, which will specify Time to live in seconds like IN_MEMORY_CACHE_TTL=3600

A possible solution could be to implement in memory caching with help of freqfs?

@joseluisq joseluisq added enhancement New feature or request help wanted Extra attention is needed v2 v2 release labels Jul 17, 2023
@joseluisq joseluisq removed the help wanted Extra attention is needed label Mar 12, 2024
@joseluisq
Copy link
Collaborator

FYI there is already PoC in progress on #328 using the SIEVE eviction algorithm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request v2 v2 release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants