aboutsummaryrefslogtreecommitdiff
path: root/weed/util/chunk_cache/chunk_cache.go
AgeCommit message (Collapse)AuthorFilesLines
2025-09-24FUSE Mount: enhance disk cache with volume ID and cookie validation (#7269)Chris Lu1-10/+89
* enhance disk cache with volume ID and cookie validation * address comments * fix test * fmt
2024-09-14fix file read crash (#6021)Bruce1-4/+7
2024-09-11Feature limit caching to prescribed number of bytes per file (#6009)Eugeniy E. Mikhailov1-0/+46
* feature: we can check if a fileId is already in the cache We using this to protect cache from adding the same needle to the cache over and over. * fuse mount: Do not start dowloader if needle is already in the cache * added maxFilePartSizeInCache property to ChunkCache If file very large only first maxFilePartSizeInCache bytes are going to be put to the cache (subject to the needle size constrains). * feature: for large files put in cache no more than prescribed number of bytes Before this patch only the first needle of a large file was intended for caching. This patch uses maximum prescribed amount of bytes to be put in cache. This allows to bypass default 2MB maximum for a file part stored in the cache. * added dummy mock methods to satisfy interfaces of ChunkCache
2024-09-10bug fix in the data received from cache processing (#6002)Eugeniy E. Mikhailov1-5/+5
The patch addresses #3745. The cache should return the exact amount of data requested by the buffer. By construction of the cache it is always all requested data range or we have error happening. The old use of minsize miscalculate the requested data size, if non zero offset is requested.
2024-09-04Revert "weed mount, weed dav add option to force cache"chrislu1-4/+2
This reverts commit 7367b976b05bfa69158a60f205dec970c48f50f0.
2024-09-04weed mount, weed dav add option to force cachechrislu1-2/+4
2022-07-29move to https://github.com/seaweedfs/seaweedfschrislu1-2/+2
2022-02-26better control for reader cachingchrislu1-103/+0
2022-02-25chunk cache adds function ReadChunkAtchrislu1-0/+49
2021-04-28make reader_at handle random reads more efficiently for FUSENathan Hawkins1-0/+65
2020-10-03re-enable caching larger than 16MBChris Lu1-2/+2
revert https://github.com/chrislusf/seaweedfs/commit/62ce85610e2fcd08488ee6026266e617509f6d46
2020-09-27skip caching too large chunksChris Lu1-2/+4
2020-09-27more testsChris Lu1-9/+9
2020-09-27refactorChris Lu1-16/+14
adjust for faster test
2020-08-30change log level 5 to 4Chris Lu1-1/+1
2020-08-17refactoring: use interfaceChris Lu1-0/+5
2020-08-17renameChris Lu1-8/+8
2020-08-17rename variablesChris Lu1-10/+10
2020-08-15adjust logsChris Lu1-1/+1
2020-06-27since we already know the chunk size, no need to iterateChris Lu1-6/+20
2020-06-27incase the memory data is too smallChris Lu1-19/+6
2020-06-26a little bit more efficientChris Lu1-3/+15
2020-06-26error loggingChris Lu1-0/+2
2020-06-25FUSE mount: fix file id written twice?Chris Lu1-1/+1
fix https://github.com/chrislusf/seaweedfs/issues/1373
2020-04-13tiered cachingChris Lu1-14/+29
1/4 for small less than 1MB files. 1/4 for 1~4MB files, 1/2 for bigger than 4MB files
2020-04-13refactoringChris Lu1-61/+25
2020-04-12refactoringChris Lu1-1/+1
2020-04-12mount: fixChris Lu1-3/+1
fix bug found by git bisect, but I do not understand why it can cause error!
2020-04-12avoid duplicated setting chunks into cacheChris Lu1-0/+11
2020-04-12handle nil chunk cacheChris Lu1-0/+10
2020-04-11mount: add on disk cachingChris Lu1-16/+95
2020-04-11refactorChris Lu1-0/+36