Files
seaweedfs/weed/util
Eugeniy E. Mikhailov dab0bb8097 Feature limit caching to prescribed number of bytes per file (#6009)
* 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-11 21:09:20 -07:00
..
2023-11-26 11:47:20 -08:00
2024-07-16 23:14:09 -07:00
2019-11-17 11:40:36 +08:00
2024-05-20 11:03:56 -07:00
2022-08-15 01:05:35 -07:00
2021-04-27 10:37:24 +08:00
2024-08-07 10:42:00 -07:00
2021-08-20 18:38:18 +08:00
2024-07-16 09:15:55 -07:00
2021-09-01 02:45:42 -07:00
2021-09-01 02:45:42 -07:00
2024-08-18 21:51:53 -07:00
2021-09-01 02:45:42 -07:00
2021-09-01 02:45:42 -07:00
2022-09-25 17:43:42 -07:00
2022-09-25 17:43:42 -07:00
2022-09-25 13:34:55 -07:00
2023-09-21 23:51:32 -07:00
2021-04-27 10:37:24 +08:00
2024-07-07 23:44:36 -07:00
2024-07-11 00:04:24 -07:00
2023-10-01 11:36:27 -07:00