
182
Appendix D
Configuration Files
Format
For each partition you want to create, enter a line with the following format:
partition=partition_number
scheme=protocol_type
size=partition_size
where:
partition_number
is a number between 1 and 255 (the maximum nuber of partitions is 255).
protocol_type
is either
http
or
mixt
(all streaming media content is stored in the
mixt
partition, all
other content is stored in the
http
partition).
partition_size
is the amount of cache space allocated to the partition. This value can be either a percentage
of the total cache space or an absolute value. The absolute value must be a multiple of 128 MB, where 128 MB
is the smallest value. If you specify a percentage, the size is rounded down to the closest multiple of 128 MB.
Each partition is striped across several disks to achieve parallel I/O. For example, if there are 4 disks, a 1 GB
partition will have 256 MB on each disk (assuming each disk has enough free space available).
Example
The following example partitions the cache evenly between HTTP and streaming media requests:
partition=1 scheme=http size=50%
partition=2 scheme=mixt size=50%
records.config
The
records.config
file is a list of configurable variables that Traffic Server software uses. This section
lists and describes these variables.
Many of the variables in the
records.config
file are set automatically when you set configuration options
in Traffic Manager or Traffic Line. Certain configuration options can be set only by editing variables manually
in the
records.config
file.
Format
Each variable has the following format:
CONFIG variable_name DATATYPE variable_value
where
DATATYPE
is
INT
(an integer),
STRING
(a string), or
FLOAT
(a floating point).
NOTE
If you do not allocate all the disk space in the cache, the extra disk space is not used.
You can use the extra space at a later time to create new partitions without deleting and
clearing the existing partitions.
WARNING
Do not change the
records.config
variables unless you are certain of the effect.
Many variables are coupled, meaning that they interact with other variables. Changing a
single variable in isolation could cause the Traffic Server to fail. Whenever possible, use
Traffic Manager or Traffic Line to configure the Traffic Server.
IMPORTANT
After you modify the
records.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.