218
Appendix D
Configuration Files
Now consider the following two requests:
•
http://minstar.internal.hp.com
This request will match the first line and select DNS server
255.255.255.255
on port
212
. All resolver
requests will use
hp.com
as the default domain, and
hp.com
and
hp1.com
as the set of domains to search
first.
•
http://www.microsoft.com
This request will match the second line, namely not
internal.hp.com
. Therefore Traffic Server selects
DNS server
255.255.255.253
. Since, no
def_domain or search_list
was supplied, Traffic Server
retrieves this information from
/etc/resolv.conf
.
storage.config
The
storage.config
file lists all the files, directories, or hard disk partitions that make up the Traffic Server
cache.
Format
The format of the
storage.config
file is:
pathname size
Where
pathname
is the name of a partition, directory, or file, and
size
is the size of the named partition,
directory, or file, in bytes. You must specify a size for directories or files. For raw partitions, size specification
is optional.
You can use any partition of any size. For best performance, HP recommends the following:
•
Use raw disk partitions
•
For each disk, make all partitions the same size
•
For each node, use the same number of partitions on all disks
Specify pathnames according to your operating system requirements. See the following examples.
Example
The following basic example shows 64 MB of cache storage in the
/big_dir
directory:
/big_dir 67108864
You can use the
.
symbol for the current directory. Here is an example of 64 MB of cache storage in the current
directory:
. 67108864
update.config
The
update.config
file controls how Traffic Server performs a scheduled update of specific local cache
content. The file contains a list of URLs specifying objects that you want to schedule for update. Be aware that
the system validates these URLs for syntactic correctness, but not for existence.
Conceptually, a scheduled update performs a local HTTP
GET
on the objects at the specific time or interval.
You can control the following parameters for each specified object:
IMPORTANT
After you modify
storage.config
, Traffic Manager has to reread the configuration
files. Run the
traffic_line -x
command.