Welcome to the Apache Traffic Server FAQ.
Below is a list of frequently asked questions pertaining to Apache Traffic Server.
# It is very important to do a clean uninstall and distclean before # re-configuring, re-building, and re-installing after the failed # first install. sudo make uninstall sudo make distclean configure i.e './configure --with-group=nogroup' |
# Set this variable to 1 if you want Traffic Server to serve # requests only from origin servers listed in the mapping rules # of the remap.config file. If a request does not match, then # the browser will receive an error. CONFIG proxy.config.reverse_proxy.enabled INT 0 CONFIG proxy.config.url_remap.remap_required INT 0 |
# Enables (1) or disables (0) DNS server round-robin. CONFIG proxy.config.dns.round_robin_nameservers INT 1 #The DNS servers. CONFIG proxy.config.dns.nameservers STRING 10.0.0.1 192.172.0.4 |
Yes we do, see the sample configuration page.
Visit the Profiling page for more information.
You can set
CONFIG proxy.config.http.slow.log.threshold INT
in records.config to see various time milestones for HTTP requests in the error log. The value is in milliseconds, requests that take longer than that value will generate a slow log entry.
http_ui is a cache inspector for TS internal system, a Swiss knife tool for TS, you can setup http_ui by:
map http://localhost:8080/cache-internal/ http://{cache-internal} map http://localhost:8080/cache/ http://{cache} map http://localhost:8080/stat/ http://{stat} map http://localhost:8080/test/ http://{test} map http://localhost:8080/hostdb/ http://{hostdb} map http://localhost:8080/net/ http://{net} map http://localhost:8080/http/ http://{http} |
traffic_line -s proxy.config.http_ui_enabled -v 3 traffic_line -s proxy.config.http.enable_http_info -v 1 |
traffic_line -x |
echo -ne "GET http://localhost/stat/ HTTP/1.0\r\n\r\n" | nc -i 1 localhost 8080 |
RAW disk cache is specified in storage.config using the physical /dev device with no additional parameters provided you run a recent kernel.
/dev/dm-2 |
You must also ensure the trafficserver user owns the device and has block-level access. To do this we utilize udev rules. This must be a physical device and not an LVM mapping:
# /etc/udev/rules.d/50-ats.rules # Apache Traffic Server owns disk for RAW access KERNEL=="dm-2", OWNER="trafficserver" |
When enabling debug logging, you specify tags to filter the debug output with the proxy.config.diags.debug.tags
option. The following command will show you all debug tags used in the trafficserver source code when outputting debug messages. Run it from inside the trafficserver source tree:
# This assumes gnu grep grep -orh 'Debug("[^"]*' * | sort | uniq | sed 's/Debug("//' |