Online Book Reader

Home Category

Squid_ The Definitive Guide - Duane Wessels [183]

By Root 1946 0

cache_replacement_policy heap GDSF|LFUDA|LRU

Default

cache_replacement_policy lru

Example

cache_replacement_policy heap GDSF

Related

memory_replacement_policy, cache_dir

Name

memory_replacement_policy

Synopsis

This directive controls the replacement policy for objects cached in memory. See Section 7.5 for additional information.

Syntax

memory_replacement_policy lru

memory_replacement_policy heap GDSF|LFUDA|LRU

Default

memory_replacement_policy lru

Example

memory_replacement_policy heap LFUDA

Related

cache_replacement_policy, cache_mem

Name

store_dir_select_algorithm

Synopsis

This directive controls the algorithm Squid uses when selecting a cache_dir for a new cache file. The possible choices are: least-load and round-robin. See Section 7.4 for additional information.

Syntax

store_dir_select_algorithm round-robin|least-load

Default

store_dir_select_algorithm least-load

Example

store_dir_select_algorithm round-robin

Related

cache_dir

Name

mime_table

Synopsis

Squid uses the information in this file for FTP and Gopher requests. Unlike HTTP, these protocols don't inform clients about the type of data they transfer. When Squid gateways the response from an FTP server to an HTTP client, it must insert Content-Type and other headers. Squid uses the MIME table file to convert filename extensions into:

Values for the Content-Type header

Icons that are displayed for directory listings

Content-Encoding header values for compressed data

Transfer type options for FTP servers, either image or ascii; this corresponds to the TYPE command in the FTP protocol

Please refer to the sample mime.conf for an explanation of the format of this file.

Syntax

mime_table pathname

Default

mime_table $prefix/etc/mime.conf

Example

mime_table /usr/local/squid/etc/my-mime-types.txt

Name

ipcache_size

Synopsis

Squid's IP cache holds recent DNS name-to-address lookups. This directive limits the number of names in the cache. Each IP cache entry uses a relatively small amount of memory, so you can safely increase this limit to 10,000 or more.

Syntax

ipcache_size count

Default

ipcache_size 1024

Example

ipcache_size 5000

Related

ipcache_low, ipcache_high, fqdncache_size

Name

ipcache_low

Synopsis

This directive controls the IP cache LRU replacement algorithm. The replacement function runs periodically and removes the least recently used IP cache entries until reaching this low watermark. You should have almost no reason to change this value. You'd be better off changing ipcache_size instead.

Syntax

ipcache_low percent

Default

ipcache_low 90

Example

ipcache_low 95

Related

ipcache_size, ipcache_high

Name

ipcache_high

Synopsis

This directive is essentially unused in current versions of Squid. The LRU replacement routine uses only ipcache_low. The only time that Squid uses ipcache_high is when calculating the hash table size for the IP cache at startup.

Syntax

ipcache_high percent

Default

ipcache_high 95

Example

ipcache_high 99

Related

ipcache_size, ipcache_low

Name

fqdncache_size

Synopsis

Squid's FQDN cache holds recent DNS address-to-name lookups. However, Squid makes these reverse DNS lookups only when you enable the log_fqdn directive or use a dstdomain ACL. This directive limits the number of names in the cache. Each FQDN cache entry uses a relatively small amount of memory, so you can safely increase this limit to 10,000 or more.

Syntax

fqdncache_size count

Default

fqdncache_size 1024

Example

fqdncache_size 6000

Related

ipcache_size, log_fqdn

Name

log_mime_hdrs

Synopsis

When you enable this directive, Squid writes the HTTP request and response headers to the access.log file. The headers appear as two additional fields on each line. All whitespace and other special characters are encoded with URL-style escape codes. Enabling this option may assist in tracking down certain problems. Note that HTTP headers are relatively large (a few hundred bytes each). Logging

Return Main Page Previous Page Next Page

®Online Book Reader