October 26, 2015 09:01AM
Hello,

When using nginx in proxy_cache mode, and configuring the cache zone like below, it seems that the zone sometimes exceed the configured size by like 10%; I'm buffering new items at a high rate, and I'm wondering how this cache zone is cleaned up ? Is there a time-based recurring size check ? or another mechanism ?

I also noticed that the cache doesn't seem to be cleaned before the cache loader process has completed all the cache items. Is this a normal behavior ?

My goal is to set the max_size to a "safe" value, to ensure that the cache space is never saturated.

proxy_cache_path /run/store keys_zone=cache-memory:500m
levels=1:1:1
max_size=60g
use_temp_path=off
inactive=8h;

Thanks !
Best regards,
Aurélien
Subject Author Posted

Proxy cache zone maximal size

footplus October 26, 2015 09:01AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 291
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready