9fa18b4954
This is a first step in exposing cache hits and misses statistics. This will grab raw numbers that we can publish or do other crunching on. Change-Id: Id306f4cc71f48a7ced49fdba8824b533b78e0561
12 lines
494 B
Bash
12 lines
494 B
Bash
#!/bin/bash
|
|
for X in 0 1 2 ; do
|
|
HITS=$(grep ' cache hit ' /var/log/apache2/${HOSTNAME}*_808${X}_access.log | wc -l)
|
|
REFRESHES=$(grep ' conditional cache hit: entity refreshed ' /var/log/apache2/${HOSTNAME}*_808${X}_access.log | wc -l)
|
|
MISSES=$(grep ' cache miss: ' /var/log/apache2/${HOSTNAME}*_808${X}_access.log | wc -l)
|
|
|
|
echo "Port 808${X} Cache Hits: $HITS"
|
|
echo "Port 808${X} Cache Refresshes: $REFRESHES"
|
|
echo "Port 808${X} Cache Misses: $MISSES"
|
|
echo ""
|
|
done
|