jiangwenyuan / nuster

A high performance HTTP proxy cache server and RESTful NoSQL cache server based on HAProxy
Other
1.91k stars 157 forks source link

How do you define max memory when using disk? #108

Closed SimplyCorbett closed 3 years ago

SimplyCorbett commented 3 years ago

In the example here it shows both disk and memory cache are enabled, but it only shows the max cache in memory.

https://github.com/jiangwenyuan/nuster/wiki/Use-nuster-As-HTTP-Cache-Server

Can you add to the documentation to explain how to configure say 3GB of memory as cache, followed with 60GB of disk cache when the memory gets full?

And would there be a way to define frequently accessed files get priority in memory?

SimplyCorbett commented 3 years ago

Disk sync mode is interesting but still not what I'm looking for since it only syncs from memory to disk.

jiangwenyuan commented 3 years ago

Hi, disk size is not supported yet(I've got many requests), nor the LRU

SimplyCorbett commented 3 years ago

Ah, okay then. Thank you!

SimplyCorbett commented 3 years ago

How does it handle running out of disk space then for cache?

jiangwenyuan commented 3 years ago

How does it handle running out of disk space then for cache?

For existing disk cache: keep serving For new responses: try to cache but will fail, so just acts like a LB