Download Harvest User`s Manual
Transcript
When the amount of RAM used by the hot-object VM cache reaches cache mem high % of the specied cache mem size, the cache starts throwing objects out of the VM cache, until they reach cache mem low % of the specied cache mem size. (These values are set in the cached.conf le.) Objects evicted from the VM cache stay in the disk cache until their cache-assigned TTL expires, they are evicted by the disk cache replacement policy, or the user manually evicts them by clicking the browser's \reload" button. The high/low water mark mechanism is intended to let the Cache cut back on memory usage when it starts using too much memory, so it can avoid constantly bringing in objects and then having to evict them. There's no high/low water mark on disk. 6.10 Meanings of log les The Cache logs information to four les, the locations for the rst three of which are specied from the cached.conf le. (The nal le is always stored in the le log in the cache's data directory): 1. cache access log: this is Cache access logle, which logs the hits and misses. The format of this le is one line per access, with the following elds: (a) (b) (c) (d) (e) timestamp (in RFC 850 date format) retrieved URL client's IP address object size (only non-zero when there's a hit) hit/miss indicator. This eld encodes the access method (TCP, UDP, and our binary protocol), HIT/MISS, and occasionally a reason (e.g., TCP MISS TTL means it was a miss because the object had timed out). Note: prior to Harvest Version 1.2, the client's IP address was not logged to this le. The cache access log also can be written in the httpd common logle format54 which is used by many HTTP servers. To enable, set emulate httpd log in your cached.conf le to on. By default, the Cache will write this log le in the httpd common logle format. 2. cache log: this le contains logs of error messages, such as errors binding to sockets that are already in use (e.g., because you restarted the cache too quickly; see Section 6.11). 3. cache hierarchy log: this le logs the parent/neighbor relationships for each hierarchical resolution that occurs (e.g., if an object is faulted from the parent cache, this le will indicate that fact). 4. cache dir/log: The cache stores objects on disk as numbered les inside of numbered directories. The cache dir/log le stores the mapping between URL and numbered le. Note that all logs are appended (rather than recreated whenever the cache starts up). 6.11 Troubleshooting Symptom The cache refuses to start, because the port number is tied up. Solution Usually this means that you killed the cached process recently, and the UNIX operating system hasn't timed out the port number yet. Wait a minute and try starting cached again. Finally, it may be that your cache dns program variable in the cached.conf le is incorrectly set. Symptom Once I try to retrieve an object from a site that is down, when I try again the cache immediately tells me it is down, seemingly without trying again. 54 http://www.w3.org/hypertext/WWW/Daemon/User/Config/Logging.html#common-logfile-format 59