MINOR: cache: report the number of cache lookups and cache hits
The cache lookups and hits is now accounted per frontend and per backend,
and reported on the stats page.
diff --git a/include/types/counters.h b/include/types/counters.h
index 79dd6d4..1898548 100644
--- a/include/types/counters.h
+++ b/include/types/counters.h
@@ -56,6 +56,8 @@
long long comp_rsp; /* number of compressed responses */
unsigned int rps_max; /* maximum of new HTTP requests second observed */
long long rsp[6]; /* http response codes */
+ long long cache_lookups;/* cache lookups */
+ long long cache_hits; /* cache hits */
} http;
} p; /* protocol-specific stats */
};
@@ -105,6 +107,8 @@
long long comp_rsp; /* number of compressed responses */
unsigned int rps_max; /* maximum of new HTTP requests second observed */
long long rsp[6]; /* http response codes */
+ long long cache_lookups;/* cache lookups */
+ long long cache_hits; /* cache hits */
} http;
} p; /* protocol-specific stats */
};
diff --git a/include/types/stats.h b/include/types/stats.h
index c3b9fc8..ec29c78 100644
--- a/include/types/stats.h
+++ b/include/types/stats.h
@@ -394,6 +394,8 @@
ST_F_WREW,
ST_F_CONNECT,
ST_F_REUSE,
+ ST_F_CACHE_LOOKUPS,
+ ST_F_CACHE_HITS,
/* must always be the last one */
ST_F_TOTAL_FIELDS