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

Implement a cache cleanup and cache-maintenance strategy #6

Open
j6k4m8 opened this issue Apr 6, 2020 · 0 comments
Open

Implement a cache cleanup and cache-maintenance strategy #6

j6k4m8 opened this issue Apr 6, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@j6k4m8
Copy link
Member

j6k4m8 commented Apr 6, 2020

Right now, if you create the following DataManager stack;

ChunkedBloscFileDataManager → BossDBRelayDataManager

...then as cache-misses in the ChunkedBloscFileDataManager are fulfilled by the BossDBRelayDataManager, they're saved to disk and returned to the client.

There currently exists no mechanism by which to clear the files from ChunkedBloscFileDataManager, which means that the cache will grow to infinity (or until your drive is full, whichever is sooner).

There should be a cache cleanup strategy, but I believe it makes sense for there to be several strategies which a user can choose between. Perhaps options like:

  • LRU
  • FIFO
  • Most distant (Euclidean) from LRU (??)

Even if we just implement one of these to start with, might be smart to leave space and an abstraction layer to allow for multiple in the future.

@j6k4m8 j6k4m8 added the enhancement New feature or request label Apr 6, 2020
@movestill movestill self-assigned this Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants