Add and inplement an option to apply cache limit to all caches#637
Open
event wants to merge 3 commits intoYouROK:masterfrom
Open
Add and inplement an option to apply cache limit to all caches#637event wants to merge 3 commits intoYouROK:masterfrom
event wants to merge 3 commits intoYouROK:masterfrom
Conversation
Contributor
Author
|
Sorry for this PR mess. Whole mechanic is new to me |
This way if cache size is defined to be e.g. 100GB, torrserver would make sure that all caches combined do not exceed 100GB
38e30a1 to
8e72e04
Compare
Implement storage.cleanPieces which is used when option OneCacheForAll is enabled. It cleans pieces in caches starting with least recently modified
8e72e04 to
6d34c22
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This way, user could specify single cache size limit and run as many torrents as they want without worrying about cache exceeding disk space