minio/cmd/config
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
..
cache Add cache eviction low and high watermarks (#8958) 2020-02-23 19:03:39 +05:30
compress Final changes to config sub-system (#8600) 2019-12-04 15:32:37 -08:00
etcd fix: Avoid re-reading bucket names from etcd (#8924) 2020-02-03 13:54:20 +05:30
identity fix: close and drain the response body always (#8847) 2020-01-21 02:46:58 -08:00
notify Support for Kafka version in the config (#9001) 2020-02-17 07:56:33 +05:30
policy/opa Add new admin API to return Accounting Usage (#8689) 2020-02-04 18:20:39 -08:00
storageclass Final changes to config sub-system (#8600) 2019-12-04 15:32:37 -08:00
bool-flag.go Migrate config to KV data format (#8392) 2019-10-22 22:59:13 -07:00
bool-flag_test.go Migrate config to KV data format (#8392) 2019-10-22 22:59:13 -07:00
certs.go Load certs even if they are symlinks (#8494) 2019-11-08 11:59:20 +05:30
certs_test.go Move etcd, logger, crypto into their own packages (#8366) 2019-10-08 11:17:56 +05:30
config.go fix: set appropriate defaults when new keys added (#8795) 2020-01-10 16:57:18 -08:00
config_test.go Fix console logger crash in gateway mode (#8525) 2019-11-14 14:19:57 -08:00
constants.go Order all keys in config (#8541) 2019-11-20 15:10:24 -08:00
errors-utils.go xl: Print the correct err msg when access to the backend is forbidden (#8735) 2020-01-03 21:15:26 +05:30
errors.go Add cache eviction low and high watermarks (#8958) 2020-02-23 19:03:39 +05:30
help.go Final changes to config sub-system (#8600) 2019-12-04 15:32:37 -08:00
legacy.go Final changes to config sub-system (#8600) 2019-12-04 15:32:37 -08:00