LnBSD 发表于 2011-11-22 10:20

麻烦问一下 ats怎么配置不缓存某些http状态,比如 500 302等
squid3是可以实现的
配置如下
acl broken302 http_status 400-404 302 500
http_access deny Broken302

aaaaaa 发表于 2011-11-22 11:02

这个参数会控制所有>400的结果是否被cache。proxy.config.http.negative_caching_enabled默认是0

30x的数据,目前除非有内容,否则是不存的。如纯304是不存的。


目前TS对content length = 0 的内容还没法存储,一个设计的问题,目前正在考虑改善中。
FYI

yayu_myself 发表于 2011-12-02 12:47

本帖最后由 yayu_myself 于 2011-12-02 12:48 编辑

复习了下iptables,广播和多播的资料,iptables这样配就可以了,集群间可以通信
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -m state --state NEW -p tcp --dport 8080 -j ACCEPT
-A INPUT -m state --state NEW -p tcp --dport 8083 -j ACCEPT
-A INPUT -m state --state NEW -p tcp --dport 8086 -j ACCEPT
-A INPUT -m state --state NEW -p tcp --dport 8088 -j ACCEPT
-A INPUT -m state --state NEW -p udp --dport 8089 -j ACCEPT

rhinux 发表于 2011-12-06 16:13

to 6a:
问一个问题TS是否支持 http://www.abc.com/img/动态内容/a.jpg 这种格式的匹配。
就是无论动态内容是什么都可以HIT到第一次访问后的 a.jpg
因为url每次都不同,所以比较纠结

thanks advance

aaaaaa 发表于 2011-12-06 17:02

http://svn.apache.org/repos/asf/trafficserver/plugins/trunk/cacheurl/

http://svn.apache.org/repos/asf/trafficserver/plugins/trunk/regex_remap/

这两个应该有一个可以适合你的需要,或者给你以灵感如何作一个专用插件。

FYI

rhinux 发表于 2011-12-06 17:42

回复 145# aaaaaa


    谢了~去看看

xierui54 发表于 2011-12-09 14:40

我的磁盘缓存一直没有加入,还报如下错误
# ./bin/traffic_shell
Successfully Initialized MgmtAPI in /home/ts/var/trafficserver
% show:cache-stats

ERROR: Invalid parameter specified.
       Check parameters for correct syntax and type

Bytes Used --- 0 GB
Cache Size --- 0 GB
--RAM Cache--
Total Bytes -- 270336
Bytes Used --- 0
Hits --------- 0
Misses ------- -1


请问这是什么错误?

aaaaaa 发表于 2011-12-09 14:52

你用磁盘设备的吗?
你看traffic.out里是否有设备权限问题的报错?

TS如果标准的RPM包是用ats帐号,源代码编译使用nobody帐号,对文件系统目录方式需要确保权限可用。用块设备都需要用root组权限来访问磁盘设备,因此需要修改udev规则,参考:

# cat /etc/udev/rules.d/99-trafficserver.rules
KERNEL=="sd*", MODE="0660",OWNER="root", GROUP="root"
#

xierui54 发表于 2011-12-09 15:15

回复 148# aaaaaa

我是用磁盘设备
我是使用源代码编译,请问需要修改什么权限,在哪修改

xierui54 发表于 2011-12-09 15:25

请问:
Server {1081871248} WARNING: No Volumes specified for Generic Hostnames for http documents: http cache will be disabled
Server {1081871248} WARNING: failed to initialize the cache for http: cache disabled
Server {1081871248} NOTE: cache disabled
是什么错误
页: 5 6 7 8 9 10 11 12 13 14 [15] 16 17 18 19 20 21 22 23 24
查看完整版本: Apache Traffic Server 3.2.0 正式版,附srpm包