167
Appendix D
Configuration Files
After you modify the
hosting.config
file, Traffic Manager has to reread the configuration files. Run the
traffic_line -x
command. If you are running a cluster, you need only run the command for one node; the
changes will propagate.
Format
Each line in the
hosting.config
file must have one of the following formats:
hostname=hostname
partition=list_of_partition_numbers
domain=domain_name
partition=list_of_partition_numbers
where
hostname
is the fully qualified hostname of the origin server whose content you want to store on a
particular partition (for example,
www.hp.com
).
domain_name
is the domain whose content you want to store on a particular partition (for example,
hp.com
).
list_of_partition_numbers
is a comma-separated list of the partitions on which you want to store the
content that belongs to the origin server or domain listed. The partition numbers must be valid numbers listed
in the
partition.config
file (refer to
partition.config‚ on page 181
).
Generic Partition
When configuring the
hosting.config
file, you must assign a generic partition to use for content that does
not belong to any of the origin servers or domains listed. If all partitions for a particular origin server become
corrupt, Traffic Server will also use the generic partition to store content for that origin server.
The generic partition must have the following format:
hostname=* partition=list_of_partition_numbers
where
list_of_partition_numbers
is a comma-separated list of generic partitions.
Example
In the following example, content from the domain
hp.com
is stored on partition 1 and content from
www.hp.com
is stored on partition 2. Content from all other origin servers is stored in partitions 3 and 4.
domain=hp.com partition=1
hostname=www.hp.com partition=2
hostname=* partition=3,4
icp.config
This file defines ICP peers (parent and sibling caches). Refer to
ICP cache hierarchies‚ on page 54
.
Format
Each line in the
icp.config
file contains the name and configuration information for a single ICP peer, in
the following format:
host:host_IP:cache_type:proxy_port:icp_port:MC_on:MC_IP:MC_TTL:
IMPORTANT
The partition configuration must be the same on all nodes in a cluster.
IMPORTANT
After you modify the
icp.config
file, Traffic Manager has to reread the configuration
files. Run the
traffic_line -x
command. If you are running a cluster, you need only
run the command for one node; the changes will propagate.