Measure cache offload for a domain
Filter Real-Time Metrics to one domain and read how much of its data and requests came from cache, in Azion Console or with the GraphQL API.
You can measure how much of one domain’s traffic your applications serve from cache with Real-Time Metrics, in Azion Console or with the GraphQL API.
Three measures answer the question. Offload is the share of data or requests that the data center delivered from its cache. Saved counts the data or requests it delivered from cache, without fetching the content from the origin. Missed counts what it delivered after fetching the content from the origin. For the full definition of each chart, refer to Build dashboards.
The examples read the last 24 hours of the host www.example.com. Replace it with a domain your workload answers on.
Prerequisites
Console
- An Azion account. To create one, refer to Create an account.
- An application served by a workload, with requests to the domain in the last 24 hours.
- Access to Azion Console. To sign in, refer to How to access Azion Console.
Filter to the domain
With no filter, the cache charts cover every application of the account. A filter on the host keeps only the requests to that domain.
Console
To filter the dashboards to one domain in Azion Console:
Access Azion Console > Real-Time Metrics.
The page opens on the Build category, the Applications tab, and the Data Transferred dashboard.
In the time-range picker, in the Quick tab, under Commonly used, select Last 24 hours.
In the filter row, select the filter icon, whose tooltip reads Add filter.
In Filter, select Host.
In Operator, select Equals.
Enter www.example.com as the value.
A chip under the filter row reads Host equals: www.example.com. Every chart of Data Transferred now shows only the requests to that domain, over the last 24 hours.
To keep every domain of one workload instead, select the Domain field, labeled Workload on some accounts, and select the workload from its list.
In the Monitor website and API performance use case, expect:
- Azion’s side of the domain is readable. On the Requests dashboard of Real-Time Metrics, with the filter Host Equals
www.example.com, Average Request Time shows the average time Azion took to answer the domain’s requests. For the filter steps, refer to the steps of this section.
Read the offload of data and requests
Real-Time Metrics measures the cache in two units. The Data Transferred dashboard counts bytes, and the Requests dashboard counts requests.
Console
To read the offload of the domain in Azion Console, with the host filter applied:
On the Data Transferred dashboard, find the Offload entry in the legend of the Edge Offload chart.
In the legends of the Saved Data and Missed Data charts, find the byte totals of the range.
In the Requests Offloaded chart, find the Requests Offloaded entry in the legend.
In the legends of the Saved Requests and Missed Requests charts, find the request totals of the range.
The host filter stays applied on Requests. Both dashboards read the httpMetrics dataset, and only a switch to a dashboard that reads another dataset clears the filters.
The aggregation tag of Edge Offload and Requests Offloaded reads Average. Their legends show the average of the chart’s points, not the share over the whole range. For the share of data over the whole range, divide the Saved Data total by the sum of the Saved Data and Missed Data totals.
Find what reached the origin
Missed data and missed requests are the content the data center fetched from your origin before it delivered it. The higher they are, the more of the domain’s demand your origin handles. When the application uses Tiered Cache, the Tiered Cache Offload chart of the Tiered Cache tab shows the share of data that the Tiered Cache layer delivered to the data center without fetching it from the origin.
Console
To find the missed content of the domain in Azion Console, with the host filter applied:
On the Data Transferred dashboard, find the Missed Data entry in the legend of the Missed Data chart.
In the Missed Requests chart, find the Missed Requests entry in the legend.
In the Missed Requests chart, place the cursor on the highest point. The tooltip shows the value at that point.
The peaks of Missed Requests show when the data center sent the most requests of the domain to your origin. The tooltip shows only in a window wider than 540 px.