STALE responses taking as much as MISS responses

joao.pereira nginx-forum at forum.nginx.org
Mon Feb 11 14:59:06 UTC 2019


Hi all,

I'm trying to set up an nginx with a big amount of disk to serve as a cache
server.
I have the following configuration:

proxy_cache_path /mnt/cache levels=2:2:2 keys_zone=my-cache:10000m
max_size=700000m inactive=30d;
proxy_temp_path /mnt/cache/tmp;

On my logs I can see that HIT's are very fast but STALEs take as much as
MISS while I believe they should take as much as HITs.

Is there something I can do to improve this ? Are the stale responses a true
"stale-while-revalidate" response ?or are they waiting for the response from
the origin server ?

Thanks

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,282984,282984#msg-282984



More information about the nginx mailing list