首页 > 分享 > ATS 4.1.0 change log — 普尔

ATS 4.1.0 change log — 普尔

2013年11月9日     浏览数:2,180 发表评论 阅读评论

from http://phonehold.github.io/atschangelog

ats ChangeLog 跟进

ATS 4.1.0 (Note)  

添加 .include 指令

remap.config 配置如下:

.include /etc/trafficserver/baidu.conf

baidu.conf 配置如下:(和正常remap中的规则一样)

map http://www.baidu.com/ http://www.baidu.com/

traffic_line -x 生效

BTW: 如果只改变baidu.conf 内容,traffic_line -x 则不生效,只有改变remap.conf
的修改时间才会生效。最有效的办法是 touch /etc/trafficserver/remap.conf
然后再执行traffic_line -x

  • ts-2265

删除不用的日志字段

prob

prcb

cgid

CONFIG proxy.config.log.custom_logs_enabled INT 1

配置customlog 的时候注意不能再引用这些字段 ()

  • ts-2245

增加4个 cache 控制项(解决内容重复缓存 —>content duplications in cache)

建议值为2 (安全选项,如果对自己的内容有更好的把握,可以设置为1 比如图片类的应用)

proxy.config.http.cache.ignore_accept_mismatch

Scope: CONFIG

Type: INT

Default: 0

Reloadable: Yes

When with a value of 1, Traffic Server serves documents from cache with a Content-Type: header that does not match the Accept: header of the request. If set to 2, this logic only happens in the absence of a Vary header in the cached response (which is the recommended and safe use).

Note This option should only be enabled with 1 if you’re having problems with caching and you origin server doesn’t set the Vary header. Alternatively, if the origin is incorrectly setting Vary: Accept or doesn’t respond with 406 (Not Acceptable), you can also enable this configuration with a `1.
proxy.config.http.cache.ignore_accept_language_mismatch

Scope: CONFIG

Type: INT

Default: 0

Reloadable: Yes

When enabled with a value of 1, Traffic Server serves documents from cache with a Content-Language: header that does not match the Accept-Language: header of the request. If set to 2, this logic only happens in the absence of a Vary header in the cached response (which is the recommended and safe use).

Note This option should only be enabled with 1 if you’re having problems with caching and you origin server doesn’t set the Vary header. Alternatively, if the origin is incorrectly setting Vary: Accept-Language or doesn’t respond with 406 (Not Acceptable), you can also enable this configuration with a `1.

proxy.config.http.cache.ignore_accept_encoding_mismatch

Scope: CONFIG

Type: INT

Default: 0

Reloadable: Yes

When enabled with a value of 1, Traffic Server serves documents from cache with a Content-Encoding: header that does not match the Accept-Encoding: header of the request. If set to 2, this logic only happens in the absence of a Vary header in the cached response (which is the recommended and safe use).

Note This option should only be enabled with 1 if you’re having problems with caching and you origin server doesn’t set the Vary header. Alternatively, if the origin is incorrectly setting Vary: Accept-Encoding or doesn’t respond with 406 (Not Acceptable) you can also enable this configuration with a `1.
proxy.config.http.cache.ignore_accept_charset_mismatch

Scope: CONFIG

Type: INT

Default: 0

Reloadable: Yes

When enabled with a value of 1, Traffic Server serves documents from cache with a Content-Type: header that does not match the Accept-Charset: header of the request. If set to 2, this logic only happens in the absence of a Vary header in the cached response (which is the recommended and safe use).

Note This option should only be enabled with 1 if you’re having problems with caching and you origin server doesn’t set the Vary header. Alternatively, if the origin is incorrectly setting Vary: Accept-Charset or doesn’t respond with 406 (Not Acceptable), you can also enable this configuration with a `1.

  • ts-2259

日志系统冗余备份

使用 ‘|’ 分割 在 logs_xml.config.

当host1 挂掉,则使用host2 和host 3做为备份,日志会传到host2 如果host2 也挂掉,则传到host3
直到host1 或host2 正常为止。

两组日志服务器 (host1|host2|host3)和 (host4|host5)

host2/host3 是host1的备份

host5 是host4的备份

所有的日志都会传到两组服务器中去,而两组服务器中,只会选择第一个链接的服务器做为传输机器。

支持多条后缀规则

dest_domain=www.test.com suffix=jpeg,js,css,html,bc,bd ttl-in-cache=1m

支持* 匹配

dest_domain=www.test.com suffix=* ttl-in-cache=1m

Since 2008, apple has shifted the design of www.phonetrackingapps.com all macbooks with a unibody aluminum shell, starting with the original macbook air and continued with the macbook pros
分类: 分享 标签:
  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.