![]() |
Cisco Cache Engine, Version 1.7
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Chapter 4, Optimizing the Cache Engine
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Table of ContentsOptimizing the Cache EngineOptimizing the Cache EngineThis chapter briefly describes the Cache Engine's reporting and statistical controls. The following topics are discussed:
Using ReportsThe Cache Engine generates reports (Figure 4-1) from the statistical information it gathers about Cache Engine operations on your network. Each report is available from the different the Reporting options: Figure 4-1: Reporting Section Display
EventsTo display the network event logs, click Reporting and select the Events option (Figure 4-2). This display shows activity for one Cache Engine. To view activity for other caches, select the other cache's IP address from the IP address selection box (see Figure 3-6). Figure 4-2: Display Events Display
Step 1 Enter the total number of events you want to view in the Total field. The default display shows 10 events. (Click REFRESH to display additional messages.) Step 2 Check the type of events you want logged:
Step 3 Click REFRESH. LoggingTo configure and view transaction logging, click Reporting and select the Logging option (Figure 4-3). This display shows activity for one Cache Engine. To view activity for other caches, select the other cache's IP address from the IP address selection box (see Figure 3-6). Figure 4-3: Transaction Logging Display
To enable transaction logging, perform these steps: Step 1 Click On. Step 2 Enter a number (of seconds) in the Archive Working Log after field to tell the Cache Engine how frequently you want the transaction log file (working.log) to be written to the archive log file (archive.log). These two files are stored in /ata0/LOGS/. If you wish to save the existing archive log file, you have the amount of time entered in the Archive Working Log after field to save the file before it is overwritten by the working log file. The log file size grows rapidly so you may want to check the sizes in the Log Size and Archive Size fields frequently. We suggest that each file size not exceed 375 megabytes. Step 3 Click UPDATE. Viewing Transaction LogsTo retrieve transaction and archive log files, click on the hypertext link under the Log Size column and/or the Archive Size column. Your browser will offer you the option of 1) opening the file immediately, or 2) saving the log file. To view the .html file, select a web browser from the list of programs to use to open this file (see Figure 4-4.) Note You may also retrieve the log files via the File Transfer Protocol (ftp) or Trivial File Transfer Protocol (tftp). Do not use passive ftp. See your system documentation for instructions on ftp and tftp usage. Figure 4-4: Sample GetWorkingLog.html
Understanding the Transaction Log FormatEach transaction log entry is formatted with ten (10) fields as shown in Figure 4-5. A dash ("-" ) is used if there is no entry for the field.) Figure 4-5: Sample Cache Engine Transaction Log
1. Timestamp. 2. Elapsed milliseconds during the client connection. 3. Client IP address or host name. 4. HTTP code and status that indicates how the Cache Engine handled the request; for example: (a) TCP_HIT means the object requested was returned to the client from the cache. (b) TCP_MISS means the object requested was not in the cache and was retrieved from the Internet server. (c) 200 is the HTTP status code for successful transactions. (d) 304 is the HTTP status code for not modified. (e) 404 is the HTTP status code for not found. 5. Number of bytes sent to the client. 6. HTTP request method (or ICP_QUERY for ICP requests). 7. Requested URL. 8. Ident if the ident_lookup flag is active. 9. Hierarchy code; for example: (a) DIRECT (URL was fetched directly from the source). (b) NONE (No hierarchy code). 10. Content type; for example binary or text. Disabling Transaction LoggingTo disable transaction logging, perform these steps: Step 1 Click Off. Step 2 Click UPDATE. MonitorTo monitor the Cache Engine's resources, click Reporting and select the Monitor option (Figure 4-6). The graph displays activity for all Cache Engines. Scroll down to view the entire page. Figure 4-6: Resource Monitors Display
Table 4-1 lists definitions for the Cache Engine's resource usage. The display is updated in 10-second intervals. Table 4-1:
SyslogTo configure your Cache Engine to send message data to a Syslog server on your network, click Reporting and select the Syslog option (Figure 4-7). This display shows the configuration for one Cache Engine. To view another cache's configuration, select the other cache's IP address from the IP address selection box (see Figure 3-6). Note The Syslog event categories match the event categories under the Event option (see "Events" ). When an event is logged under the Event option, it will also be logged to the Syslog server. Figure 4-7: System Logging Display
Defining Priorities, Facilities, and LevelsYour network's Syslog host logs messages it receives from your Cache Engine based on the message's priority (Figure 4-8). The priority is a combination of the message's facility and a message's level (Figure 4-9). Figure 4-8: Cache Engine Event Type
Message facility, or service type, definitions are listed in Table 4-2. Message level, or problem, descriptions are listed in Table 4-3. Table 4-2:
Figure 4-9: Syslog Message Levels
Table 4-3: Syslog Message Level Descriptions
Note Your Cache Engine may slow significantly when URL tracking is enabled. To configure the Cache Engine to forward messages to your network's Syslog server, perform the following steps: Step 1 Enter your Syslog server's IP address in the Syslog Server field. Step 1 Decide which messages you want the Cache Engine to forward to your Syslog server, and check one of the three check boxes: Critical, Warning, or Notice. Step 2 Select the detail level from the Level pull-down menu. Step 3 Select a service type from the Facility pull-down menu. Step 4 Press UPDATE. URL TrackingIf URL tracking is enabled, the Cache Engine creates a URL tracking message each time it completes a request. A sample message will be displayed as follows: <189> <hit> 171.67.97.117 --> http://www.domain.org/red.gif To configure the Cache Engine to forward URL tracking messages to your network's Syslog server, perform the following steps: Step 1 Check the URL Tracking check box. Step 2 Select the detail level from the Level pull-down menu. Step 3 Select a service type from the Facility pull-down menu. Step 4 Press UPDATE. Using StatisticsCache Engine programs gather statistical data about the Cache Engine operations. The Statistics section (Figure 4-10) divides each group of information into several options: Figure 4-10: Statistics Section Display
DiagDumpTo view statistical information, click Statistics and select the DiagDump option (Figure 4-11). Statistics are divided into three categories:
Click REFRESH to view updated information. This display shows activity for one Cache Engine. To view activity for other caches, select the other cache's IP address from the IP address selection box (see Figure 3-6). Refer to Table 4-4 through Table 4-6 for descriptions of each field. Figure 4-11: Diagnostic Statistics Display
Table 4-4 describes the general statistics fields shown in the display. Table 4-4:
Table 4-5 describes the disk statistics fields shown in the display. Table 4-5:
Table 4-6 describes the buffer fields statistics shown in the display. Table 4-6:
If-Modified-Since (IMS) StatsTo view Cache Engine IMS statistics, click Statistics and select the IMS Stats option (Figure 4-12). The Cache Engine receives IMS requests for objects from browser clients and returns IMS requests as described in these sections: The Fresh and Stale columns record whether a requested object was either "fresh" (304-Not Modified) or "stale" (expired). New objects were requested from the originating server if the object was expired. Click REFRESH to view updated information. Refer to Table 4-7 through Table 4-8 for descriptions of each field. This display shows activity for one Cache Engine. To view activity for other caches, select the other cache's IP address from the IP address selection box (see Figure 3-6). Figure 4-12: IMS Statistics Display
Client Requests to CacheTable 4-7 describes the fields shown in the display. Table 4-7: Cache Request-to-Client Statistics
Cache Requests to ServerTable 4-8 describes the fields shown in the display. Table 4-8: Cache Requests-to-Server Statistics
PerformanceTo view Cache Engine performance statistics, click Statistics and select the Performance option (Figure 4-13). This display shows activity for one Cache Engine. To view activity for other caches, select the other cache's IP address from the IP address selection box (see Figure 3-6). Figure 4-13: Performance Statistics Display
Start shows the day and time the Cache Engine was first operational. Current shows the existing day and time. Uptime shows how long the Cache Engine has been online. AVG, MIN, MAX, and LAST report information about the Cache Engines' performance. To view performance for the past 60 minutes, 24 hours, and 30 days, click GRAPH. Click REFRESH to view updated information. Table 4-9 describes the resource monitor fields shown in the display. Table 4-9: Resource Monitor Reporting Definitions
RequestsTo view statistics on miscellaneous HTTP request data, click Statistics and select the Requests option (Figure 4-14). Click REFRESH to view updated information. This display shows activity for one Cache Engine. To view activity for other caches, select the other cache's IP address from the IP address selection box (see Figure 3-6). Figure 4-14: HTTP Request Statistics Display
Table 4-10 describes the HTTP request fields shown in the display. Table 4-10:
SavingsTo view the number of requests that have been served by the Cache Engine, click Statistics and select the Savings option (Figure 4-15). To update the statistics on this display, click REFRESH. To view graphical output, click GRAPH. This display shows activity for one Cache Engine. To view activity for other caches, select the other cache's IP address from the IP address selection box (see Figure 3-6). Figure 4-15: Bandwidth Savings Display
Table 4-11 describes the bandwidth savings fields shown in the display. Table 4-11:
UsageTo view Cache Engine resource utilization statistics, click Statistics and select the Usage option (Figure 4-16). To update the statistics on this display, click REFRESH. To view performance for the past 60 minutes, 24 hours, or 30 days, click GRAPH. This display shows activity for one Cache Engine. To view activity for other caches, select the other cache's IP address from the IP address selection box (see Figure 3-6). Figure 4-16: Usage Statistics
The Current column provides a snapshot of the Cache Engine's resource utilization, while the Peak column displays the maximum load since it was brought online. Table 4-12 describes the usage statistics fields shown in the display. Table 4-12:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|