minio/cmd/config/cache
poornas 224b4f13b8
Add cache eviction low and high watermarks (#8958)
To allow better control the cache eviction process.

Introduce MINIO_CACHE_WATERMARK_LOW and 
MINIO_CACHE_WATERMARK_HIGH env. variables to specify 
when to stop/start cache eviction process. 

Deprecate MINIO_CACHE_EXPIRY environment variable. Cache 
gc sweeps at 30 minute intervals whenever high watermark is
reached to clear least recently accessed entries in the cache
until sufficient space is cleared to reach the low watermark.

Garbage collection uses an adaptive file scoring approach based
on last access time, with greater weights assigned to larger
objects and those with more hits to find the candidates for eviction.

Thanks to @klauspost for this file scoring algorithm

Co-authored-by: Klaus Post <klauspost@minio.io>
2020-02-23 19:03:39 +05:30
..
config.go Add cache eviction low and high watermarks (#8958) 2020-02-23 19:03:39 +05:30
config_test.go Export command prints turned-off sub-sys as comments (#8594) 2019-12-03 10:50:20 -08:00
help.go Add cache eviction low and high watermarks (#8958) 2020-02-23 19:03:39 +05:30
legacy.go Final changes to config sub-system (#8600) 2019-12-04 15:32:37 -08:00
lookup.go Add cache eviction low and high watermarks (#8958) 2020-02-23 19:03:39 +05:30