Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Adding RAM cache options.

...

Code Block
CONFIG proxy.config.http.cache.heuristic_lm_factor FLOAT 1.000000

HTTP RAM Cache

While the default ATS options for this may be optimal under heavy load,
I found using the simpler LRU algorithm much faster and more useful.

The following specifies 512MB of RAM cache, with objects of unlimited size
to be managed using LRU. During normal use, RAM utilization will rise and rise
until all 512MB is used, then the LRU algorithm should kick in.

Code Block

CONFIG proxy.config.cache.ram_cache.size INT 536870912
CONFIG proxy.config.cache.ram_cache_cutoff INT 0
CONFIG proxy.config.cache.ram_cache.algorithm INT 1
CONFIG proxy.config.cache.ram_cache.use_seen_filter INT 0

Cache Minimum Average Object Size

...

That's it. Go ahead and refresh your cache(if necessary), restart ATS, and enjoy your tuned proxy server.

TODO: Rewrite records.config using more human-readable values(i.e. "128K" instead of "131072").
However, this requires a bit of testing to make sure no errors or changes occur.