Online Book Reader

Home Category

Squid_ The Definitive Guide - Duane Wessels [199]

By Root 2014 0
in the pools.

Syntax

memory_pools_limit size-specification

Default

memory_pools_limit 0

Example

memory_pools_limit 100 MB

Related

memory_pools

Name

forwarded_for

Synopsis

Squid appends an item to the X-Forwarded-For header in requests sent to origin servers and neighbors. When this directive is enabled, Squid places the client's IP address there. When it is disabled, Squid prints the word unknown instead. Thus, disabling forwarded_for increases your user's privacy.

Syntax

forwarded_for on|off

Default

forwarded_for on

Example

forwarded_for off

Name

log_icp_queries

Synopsis

By default, ICP queries appear in Squid's access.log. If Squid receives a large amount of ICP queries from neighbors, your access.log file may become too large to effectively manage. If you disable this directive, ICP queries are never logged.

Syntax

log_icp_queries on|off

Default

log_icp_queries on

Example

log_icp_queries off

Related

access_log, icp_port

Name

icp_hit_stale

Synopsis

Squid normally returns ICP_MISS for queries to stale objects. This causes an annoying problem described in Chapter 10. If you enable this directive, Squid returns ICP_HIT messages instead.

Syntax

icp_hit_stale on|off

Default

icp_hit_stale off

Example

icp_hit_stale on

Related

cache_peer, miss_access

Name

minimum_direct_hops

Synopsis

If you're using netdb (see Section 10.5), and a cache hierarchy, Squid forwards requests directly to origin servers that are within this many router hops. Such requests are marked with CLOSEST_DIRECT in access.log.

Syntax

minimum_direct_hops N

Default

minimum_direct_hops 4

Example

minimum_direct_hops 6

Related

minimum_direct_rtt, always_direct

Name

minimum_direct_rtt

Synopsis

Similar to minimum_direct_hops. If Squid is within minimum_direct_rtt milliseconds (as measured by ICMP pings) to the origin server, the request is sent there directly. These requests are marked with CLOSEST_DIRECT in access.log.

Syntax

minimum_direct_rtt milliseconds

Default

minimum_direct_rtt 400

Example

minimum_direct_rtt 100

Related

minimum_direct_hops, always_direct

Name

cachemgr_passwd

Synopsis

This directive allows you to protect cache manager pages with a password. Unfortunately, this is an extremely weak authorization scheme, because passwords are sent as cleartext in the cache manager HTTP request. See Section 14.2.2.2 for a discussion of cache manager passwords.

Syntax

cachemgr_passwd password

cachemgr-page ...

Default

No default

Example

cachemgr_passwd SekrIt config objects vm_objects

Related

http_access

Name

store_avg_object_size

Synopsis

Squid uses this value as a hint for estimating the size of certain data structures. In particular, Squid calculates an estimate for the total number of objects in the cache, based on this value and the sum of all cache_dir sizes. This estimate is, in turn, used to calculate the number of hash buckets for the primary index to cached objects. Additionally, it can estimate the cache digest size, if that feature is enabled.

In most cases the default should be sufficient. You can find the actual value for your cache by querying the cache manager. Look for "Mean Object Size" on the info page (see Section 14.2.1.24).

Syntax

store_avg_object_size size-specification

Default

store_avg_object_size 13 KB

Example

store_avg_object_size 10 KB

Related

cache_dir, digest_bits_per_entry, store_objects_per_bucket

Name

store_objects_per_bucket

Synopsis

This directive allows you to tune the tradeoff between increased memory usage and longer searching times. Squid calculates the number of hash table buckets, depending on this directive, the average object size, and the total cache size. Squid's goal is to have this many objects in each bucket of the hash table.

A larger value here leads to reduced memory usage but longer search times. Conversely, a smaller value leads to faster search times, at the expense of increased memory usage.

Syntax

store_objects_per_bucket

Return Main Page Previous Page Next Page

®Online Book Reader