...
Code Block |
---|
CONFIG proxy.config.http.cache.cache_urls_that_look_dynamic INT 0 CONFIG proxy.config.http.chunking.size INT 128K256K CONFIG proxy.config.http.cache.ims_on_client_no_cache INT 0 CONFIG proxy.config.http.cache.ignore_server_no_cache INT 1 |
...
NOTE: One should always halve the setting for that configuration, as it allows "headroom" within Traffic Server such that one will never run out of slots in which to store objects.Third, I discovered that backing off the cache directory's sync frequency helps populate the RAM cache under low load. I definitely recommend trying this.
Code Block |
---|
CONFIG proxy.config.cache.ram_cache.size INT 32M64M CONFIG proxy.config.cache.ram_cache_cutoff INT 4M8M CONFIG proxy.config.cache.min_average_object_size INT 32K CONFIG proxy.config.cache.mutex_retry_delay INT 50 CONFIG proxy.config.cache.enable_read_while_writer INT 0 CONFIG proxy.config.cache.dir.sync_frequency INT 900 |
Logging Configuration
The defaults for Traffic Server specify a squid-compatible logfile that's binary in nature. I prefer to have the file readable so I'm overriding this.
...
Code Block |
---|
############################################################################## # HostDB ############################################################################## CONFIG proxy.config.hostdb.ip_resolve STRING ipv6;ipv4 CONFIG proxy.config.hostdb.size INT 96K48K CONFIG proxy.config.hostdb.storage_size INT 24M12M CONFIG proxy.config.hostdb.serve_stale_for INT 900 CONFIG proxy.config.cache.hostdb.sync_frequency INT 900 CONFIG proxy.config.hostdb.timeout INT 10080 |
Restart Traffic Server
Once you've updated the relevant records.config settings, simply refresh your disk cache if necessary and then restart Traffic Server.
...