Configuring Traffic Server

Traffic Server provides several options for configuring the system.

Configure Traffic Server

You can quickly and easily change your Traffic Server configuration via command-line interface using traffic_ctl.

View Configuration Options

To view a configuration setting, enter the following command:

traffic_ctl config get VARIABLE

where var is the variable associated with the configuration option. For a list of variables, refer to Configuration Variables.

Change Configuration Options

To change the value of a configuration setting, enter the following command:

traffic_ctl config set VARIABLE VALUE

where var is the variable associated with the configuration option and value is the value you want to use. For a list of the variables, see Configuration Variables.

Configure Traffic Server Using Configuration Files

You can change Traffic Server configuration options by manually editing specific variables in records.yaml.

Traffic Server must reread the configuration files for any changes to take effect. This is done with traffic_ctl config reload. Some configuration changes require a full restart of Traffic Server.

The following is a sample portion of records.yaml:

 1diags:
 2   debug:
 3      enabled: 0
 4      tags: http|dns
 5
 6exec_thread:
 7   affinity: 1
 8   autoconfig:
 9      enabled: 1
10      scale: 1.0
11   limit: 2
12
13Sample records.yaml file

In addition to records.yaml, Traffic Server provides other configuration files that are used to configure specific features. You can manually edit all configuration files as described in Configuration Files.