Welcome! Log In Create A New Profile

Advanced

Debugging Nginx Cache Misses: Hitting high number of MISS despite high proxy valid

Quintin Par
May 12, 2018 12:28PM
My proxy cache path is set to a very high size

proxy_cache_path /var/lib/nginx/cache levels=1:2
keys_zone=staticfilecache:180m max_size=700m;
and the size used is only

sudo du -sh *
14M cache
4.0K proxy
Proxy cache valid is set to

proxy_cache_valid 200 120d;
I track HIT and MISS via

add_header X-Cache-Status $upstream_cache_status;
Despite these settings I am seeing a lot of MISSes. And this is for pages I
intentionally ran a cache warmer an hour ago.

How do I debug why these MISSes are happening? How do I find out if the
miss was due to eviction, expiration, some rogue header etc? Does Nginx
provide commands for this?

- Quintin
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Debugging Nginx Cache Misses: Hitting high number of MISS despite high proxy valid

Quintin Par May 12, 2018 12:28PM

Re: Debugging Nginx Cache Misses: Hitting high number of MISS despite high proxy valid

Lucas Rolff May 12, 2018 12:32PM

Re: Debugging Nginx Cache Misses: Hitting high number of MISS despite high proxy valid

Quintin Par May 12, 2018 01:34PM

Re: Debugging Nginx Cache Misses: Hitting high number of MISS despite high proxy valid

wickedhangover May 12, 2018 02:02PM

Re: Debugging Nginx Cache Misses: Hitting high number of MISS despite high proxy valid

Cherian Thomas May 13, 2018 01:32AM

Re: Debugging Nginx Cache Misses: Hitting high number of MISS despite high proxy valid

c0nw0nk May 13, 2018 06:12PM

Re: Debugging Nginx Cache Misses: Hitting high number of MISS despite high proxy valid

Quintin Par May 14, 2018 12:08AM

Re: Debugging Nginx Cache Misses: Hitting high number of MISS despite high proxy valid

wickedhangover May 14, 2018 07:36AM

Re: Debugging Nginx Cache Misses: Hitting high number of MISS despite high proxy valid

pbooth May 14, 2018 11:10AM

Re: Debugging Nginx Cache Misses: Hitting high number of MISS despite high proxy valid

Quintin Par May 15, 2018 11:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 303
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