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

Documentation - Full Cache Behavior #57

Open
watermark opened this issue Sep 30, 2019 · 3 comments
Open

Documentation - Full Cache Behavior #57

watermark opened this issue Sep 30, 2019 · 3 comments
Labels
documentation An issue around the documentation enhancement New feature or request

Comments

@watermark
Copy link

The documentation isn't clear as to what occurs when the cache is full. Does it implement some eviction strategy (ie. LRU), or does it just not accept any new data until the max-age is reached on the existing data? I don't think anything needs to necessarily change with the container, but additional documentation on this matter may help others in deciding what cache values are appropriate for them.

@unspec
Copy link
Member

unspec commented Sep 30, 2019

The answer to the question is that nginx will automatically evict the coldest data in the cache, once the cache reaches the limits defined as per https://github.com/lancachenet/monolithic#tweaking-cache-sizes

It probably wouldn't hurt to explicitly call that out somewhere in the documentation / FAQ as you suggest.

@renssies
Copy link

renssies commented Jan 28, 2020

I would love to see the information as well. I was not aware that the default cache size is set to 1TB. During my (small) LAN party the cache stopped working because the 512GB disk was getting full and Ubuntu disallowed the creation of files.

I've since ordered a 1TB drive but I would like to see more information on recommended hardware specs and the settings for the cache's disk en memory size.

@unspec
Copy link
Member

unspec commented Jan 28, 2020

Hi @renssies - the info around changing the cache size to match your disk space is already documented:

https://github.com/lancachenet/monolithic#tweaking-cache-sizes

@unspec unspec added enhancement New feature or request documentation An issue around the documentation labels Feb 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation An issue around the documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants