Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Various updates.

...

The default config for ATS specifies that the proxy itself use data "chunks" of 4KB each.
Being that I'm on a high-speed Internet link at home, I decided to increase this.
I'm currently using a setting of 64KB. If you find yourself annoyed with how long
streaming Internet Radio takes when rebuffering, try setting this to 16KB or 64KB instead.

From what I understand it's a balancing act between what Internet Radio will accept,
and throughput of the cache overall.

Code Block
CONFIG proxy.config.http.chunking.size INT 64K512K

HTTP Server Sessions

The default config for ATS specifies that connections to origin servers be shared on a per-thread basis.

...

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 64MB 128MB of RAM cache, with objects of up to 8MB in size,
to be managed using LRU. During normal use, RAM utilization should rise and rise
until all 64MB 128MB is used, then the LRU algorithm should kick in. Also,
figure on at least 100MB of general RAM overhead for ATS in addition to this.

Code Block
CONFIG proxy.config.cache.ram_cache.size INT 64M128M
CONFIG proxy.config.cache.ram_cache_cutoff INT 8M16M
CONFIG proxy.config.cache.ram_cache.algorithm INT 1
CONFIG proxy.config.cache.ram_cache.use_seen_filter INT 0

...

Code Block
CONFIG proxy.config.hostdb.ip_resolve STRING ipv6;ipv4

DNS Host Cache Database

...

The default settings for ATS regarding DNS are set pretty high. I think the following represents a pretty
good balance between caching too much and caching too little in terms of DNS.  I've also set the cache to retain DNS cache records for up to a month, and serve stale records if necessary for up to 1 minute.  This seems to speed things up a bit.

Code Block
CONFIG proxy.config.hostdb.size INT 8K32K
CONFIG proxy.config.hostdb.storage_size INT 8M
CONFIG proxy.config.hostdb.timeout INT 4M
43200
CONFIG proxy.config.hostdb.serve_stale_for 60 

HTTP Socket I/O Buffers

The default config for ATS leaves enables some buffering between ATS and the client.  While this isn't necessary, I eventually decided on the following settings.  Combined with other performance tweaks, these work well overall.

...