Traffic Server Administration

Installing Traffic Server

  1. Select Servers in the Traffic Ops web interface.
  2. Scroll to the bottom of the page and click Add Server.
  3. Complete the Required Info: section.
  4. Click Submit.
  5. Click Save.

Configuring Traffic Server

All of the Traffic Server application configuration files are generated by Traffic Ops and installed by way of the script.

The should be installed on all caches (by puppet or other non Traffic Ops means), usually in /opt/ort. It is used to do initial install of the config files when the cache is being deployed, and to keep the config files up to date when the cache is already in service. The usage message of the script is shown below:

$ sudo ./ syncds warn
Thu May 26 15:52:11 UTC 2016
Usage: ./ <Mode> <Log_Level> <Traffic_Ops_URL> <Traffic_Ops_Login> [optional flags]
  <Mode> = interactive - asks questions during config process.
  <Mode> = report - prints config differences and exits.
  <Mode> = badass - attempts to fix all config differences that it can.
  <Mode> = syncds - syncs delivery services with what is configured in Traffic Ops.


  <Traffic_Ops_URL> = URL to Traffic Ops host. Example:

  <Traffic_Ops_Login> => Example: 'username:password'

  [optional flags]:
    dispersion=<time>      => wait a random number between 0 and <time> before starting. Default = 300.
    retries=<number>       => retry connection to Traffic Ops URL <number> times. Default = 3.
    wait_for_parents=<0|1> => do not update if parent_pending = 1 in the update json. Default = 1, wait for parents.

For initial configuration or when major changes (like a Profile change) need to be made, run the script in “badass mode”. All required rpm packages will be installed, all Traffic Server config files will be fetched and installed, and (if needed) the Traffic Server application will be restarted. Example run below:

run here

For “every day changes” such as adding deliveryservices or changing records.config parameters caches should run the script in “syncds” mode out of cron. Example crontab entry:

*/15 * * * * /opt/ort/ syncds warn admin:password > /tmp/ort/syncds.log 2>&1


<disclaimer on what is “hot changeable” here>