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.
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:
After you modify the update.config file, run the traffic_line -x command to apply changes. When you apply changes to one node in a cluster, Traffic Server automatically applies the changes to all other nodes in the cluster.
Scheduled update supports the following tag/attribute pairs when performing recursive URL updates:
Scheduled update is designed to operate on URL sets consisting of hundreds of input URLs (expanded to thousands when recursive URLs are included); it is not intended to operate on extremely large URL sets, such as those used by Internet crawlers.
Each line in the update.config file uses the following format:
URL\request_headers\offset_hour\interval\recursion_depth\
The following list describes each field.
An example HTTP scheduled update is provided below:
http://www.company.com\User-Agent: noname user agent\13\3600\5\
The example specifies the URL and request headers, an offset hour of 13 (1 pm), an interval of one hour, and a recursion depth of 5. This would result in updates at 13:00, 14:00, 15:00, and so on. To schedule an update that occurs only once a day, use an interval value 86400 (i.e., 24 hours x 60 minutes x 60 seconds = 86400).
This section describes how to specify a url_regex. Entries of type url_regex within the configuration files use regular expressions to perform a match.
The following list provides examples to show how to create a valid url_regex.
You can specify dest_domain=mydomain.com to match any host in mydomain.com. Likewise, you can specify dest_domain=. to match any request.