aaaaaa 发表于 2011-12-25 19:08

这个问题我在trunk 3.0.x 以及3.0.2上,都没复现出来,奇怪了唉

xierui54 发表于 2011-12-26 10:34

deep linking protection
请问这个功能是什么

aaaaaa 发表于 2011-12-26 12:11

就是防盗链

yunfeichen119 发表于 2011-12-26 13:27

prefetch资源泄漏

Server {2964810608} WARNING: too many connections, throttling
Server {2964810608} WARNING: too many connections, throttling




FATAL: ink_memalign: couldn't allocate 524288 bytes at alignment 4096 - insufficient memory
/usr/local/bin/traffic_server - STACK TRACE:
FATAL: ink_memalign: couldn't allocate 524288 bytes at alignment 4096 - insufficient memory
FATAL: ink_memalign: couldn't allocate 524288 bytes at alignment 4096 - insufficient memory
/usr/local/bin/traffic_server - STACK TRACE:
/usr/local/bin/traffic_server - STACK TRACE:
FATAL: ink_memalign: couldn't allocate 524288 bytes at alignment 4096 - insufficient memory
/usr/local/bin/traffic_server - STACK TRACE:
FATAL: ink_memalign: couldn't allocate 524288 bytes at alignment 4096 - insufficient memory
/usr/local/bin/traffic_server - STACK TRACE:
terminate called after throwing an instance of 'std::bad_alloc'
what():std::bad_alloc



#00x0012e416 in __kernel_vsyscall ()
#10x005c9941 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#20x005cce42 in abort () at abort.c:92
#30x00520055 in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/libstdc++.so.6
#40x0051df35 in ?? () from /usr/lib/libstdc++.so.6
#50x0051df72 in std::terminate() () from /usr/lib/libstdc++.so.6
#60x0051e0e1 in __cxa_throw () from /usr/lib/libstdc++.so.6
#70x0051e677 in operator new(unsigned int) () from /usr/lib/libstdc++.so.6
#80x0051e74d in operator new[](unsigned int) () from /usr/lib/libstdc++.so.6
#90x081488fd in DynArray<char>::resize (this=0x748ff4c, new_size=64) at ../lib/ts/DynArray.h:174
#10 0x0815d5da in DynArray<char>::operator() (this=0x748ff4c, idx=0) at ../lib/ts/DynArray.h:122
#11 0x0815a9bb in HtmlParser::ScanHtmlForURL (this=0x748ff3c, r=0xbabb3ac0, url=0xb70921ec, url_end=0xb70921e8) at Update.cc:1874
#12 0x0815a86a in HtmlParser::ParseHtml (this=0x748ff3c, r=0xbabb3ac0, url=0xb70921ec, url_end=0xb70921e8) at Update.cc:1820
#13 0x08140816 in PrefetchTransform::parse_data (this=0x748fe88, reader=0xbabb3ac0) at Prefetch.cc:543
#14 0x0813ffe8 in PrefetchTransform::handle_event (this=0x748fe88, event=1, edata=0x5991b530) at Prefetch.cc:435
#15 0x08104ba5 in Continuation::handleEvent (this=0x748fe88, event=1, data=0x5991b530)
    at ../iocore/eventsystem/I_Continuation.h:146
#16 0x0830a9f5 in EThread::process_event (this=0xb7497008, e=0x5991b530, calling_code=1) at UnixEThread.cc:140
#17 0x0830ac38 in EThread::execute (this=0xb7497008) at UnixEThread.cc:189
#18 0x0830900e in spawn_thread_internal (a=0x895df28) at Thread.cc:88
#19 0x00165cc9 in start_thread (arg=0xb7092b70) at pthread_create.c:304
#20 0x0066f69e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

aaaaaa 发表于 2011-12-26 14:35

整个TS中,udp应该是不work的才对

xierui54 发表于 2011-12-26 14:36

我现在使用反向代理功能
修改remap.config
map http://www.xxx.com/ http://www.sina.com/
reverse_map http://www.sina.com/http://www.xxx.com/

然后通过www.xxx.com打开了新浪的网页,但是在新浪首页上,我随意点击超级链接,网址都回到了sina.com的域名上
请问如果我想把新浪的其他网页连接就通过xxx.com来管理缓存,应该如何设置

aaaaaa 发表于 2011-12-26 15:19

回复 186# xierui54


    你这个需求的目的值得商榷。TS是cache,本质上来讲,TS不会改变源服务器给的content body,所以一定程度上来说,你的需求与http cache的原则相违背。TS有相关的API可以帮助你完成这个功能,查看TS代码里的example目录下的append-transform gzip-transform例子。并参考官方SDK文档。

xierui54 发表于 2011-12-28 14:54

谢谢指点
请问编译生成的TS如何添加使用插件

yunfeichen119 发表于 2011-12-28 15:16

本帖最后由 yunfeichen119 于 2011-12-29 09:22 编辑

我测试traffic server时遇到了下面的问题:

Server {2973739888} WARNING: too many connections, throttling
Server {2973739888} WARNING: too many connections, throttling
Server {2973739888} WARNING: too many connections, throttling
Server {2973739888} WARNING: too many connections, throttling
Server {2973739888} WARNING: too many connections, throttling
Server {2973739888} WARNING: too many connections, throttling
Server {2973739888} WARNING: too many connections, throttling
Server {2973739888} WARNING: too many connections, throttling
Server {2973739888} WARNING: too many connections, throttling
Server {2973739888} WARNING: too many connections, throttling
Server {2973739888} WARNING: too many connections, throttling
Server {2973739888} WARNING: too many connections, throttling
Server {2973739888} WARNING: too many connections, throttling
Server {2973739888} WARNING: too many connections, throttling
Server {2973739888} WARNING: too many connections, throttling
Server {2973739888} WARNING: too many connections, throttling
Server {2973739888} WARNING: too many connections, throttling
Server {2973739888} WARNING: too many connections, throttling
Server {2973739888} WARNING: too many connections, throttling
Server {2973739888} WARNING: too many connections, throttling
Server {2973739888} WARNING: too many connections, throttling
Server {2973739888} WARNING: too many connections, throttling
Server {2973739888} WARNING: too many connections, throttling
Server {2973739888} WARNING: too many connections, throttling
Server {2973739888} WARNING: too many connections, throttling
Server {2973739888} WARNING: too many connections, throttling
Server {2973739888} WARNING: too many connections, throttling
Server {2973739888} WARNING: too many connections, throttling

连接数应该没有这么大呀。这是什么原因造成的?有没有解决办法呀

LnBSD 发表于 2011-12-28 17:39

本帖最后由 LnBSD 于 2011-12-30 13:42 编辑

请教一下cacheurl 插件的问题
我添加了cacherul的扩展和配置,经过测试没有实现需求,测试结果如下
按照我配置的,应该访问http://2a.tttt-img.com.cn/mon.gif一次后,我再访问http://2b.tttt-img.com.cn/mon.gif 应该是命中的状态,结果还是miss

今天看了一下error日志,发现有报错
20111230.13h40m26s Plugin requires Traffic Server 2.0 or later

20111230.13h40m26s [i] Unable to initialize plugin (disabled).

看来cacheurl不支持ats3.x# sed '/^#/d' plugin.config
stats_over_http.so
cacheurl.so
# sed '/^#/d'cacheurl.config
http://2.tttt-img.com.cn/(.*)http://img2.tttt.com.cn.TSINTERNAL/$1


# curl --proxy "10.15.184.139:80" -v-o /dev/null http://2a.tttt-img.com.cn/mon.gif   
* About to connect() to proxy 10.15.184.139 port 80
*   Trying 10.15.184.139... connected
* Connected to 10.15.184.139 (10.15.184.139) port 80
> GET http://2a.tttt-img.com.cn/mon.gif HTTP/1.1
> User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
> Host: 2a.tttt-img.com.cn
> Pragma: no-cache
> Accept: */*
> Proxy-Connection: Keep-Alive
>
< HTTP/1.1 200 OK
< Date: Wed, 28 Dec 2011 09:29:21 GMT
< Server: ATS/3.0.2
< Last-Modified: Wed, 14 Apr 2010 14:26:28 GMT
< Accept-Ranges: bytes
< Content-Length: 3825
< Cache-Control: max-age=315360000
< Expires: Sat, 25 Dec 2021 09:29:21 GMT
< Content-Type: image/gif
< Age: 0
< Proxy-Connection: keep-alive
< Via: http/1.1 zats-ttttttttt (zcache/3.0.2 )
% Total    % Received % XferdAverage Speed   Time    Time   TimeCurrent
                                 DloadUpload   Total   Spent    LeftSpeed
10038251003825    0   0   176k      0 --:--:-- --:--:-- --:--:-- 3735kConnection #0 to host 10.15.184.139 left intact

* Closing connection #0
# curl --proxy "10.15.184.139:80" -v-o /dev/null http://2a.tttt-img.com.cn/mon.gif
* About to connect() to proxy 10.15.184.139 port 80
*   Trying 10.15.184.139... connected
* Connected to 10.15.184.139 (10.15.184.139) port 80
> GET http://2a.tttt-img.com.cn/mon.gif HTTP/1.1
> User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
> Host: 2a.tttt-img.com.cn
> Pragma: no-cache
> Accept: */*
> Proxy-Connection: Keep-Alive
>
< HTTP/1.1 200 OK
< Date: Wed, 28 Dec 2011 09:29:21 GMT
< Server: ATS/3.0.2
< Last-Modified: Wed, 14 Apr 2010 14:26:28 GMT
< Accept-Ranges: bytes
< Content-Length: 3825
< Cache-Control: max-age=315360000
< Expires: Sat, 25 Dec 2021 09:29:21 GMT
< Content-Type: image/gif
< Age: 5
< Proxy-Connection: keep-alive
< Via: http/1.1 zats-ttttttttt (zcache/3.0.2 )
% Total    % Received % XferdAverage Speed   Time    Time   TimeCurrent
                                 DloadUpload   Total   Spent    LeftSpeed
10038251003825    0   0   290k      0 --:--:-- --:--:-- --:--:--   0Connection #0 to host 10.15.184.139 left intact

* Closing connection #0
# curl --proxy "10.15.184.139:80" -v-o /dev/null http://2b.tttt-img.com.cn/mon.gif
* About to connect() to proxy 10.15.184.139 port 80
*   Trying 10.15.184.139... connected
* Connected to 10.15.184.139 (10.15.184.139) port 80
> GET http://2b.tttt-img.com.cn/mon.gif HTTP/1.1
> User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
> Host: 2b.tttt-img.com.cn
> Pragma: no-cache
> Accept: */*
> Proxy-Connection: Keep-Alive
>
< HTTP/1.1 200 OK
< Date: Wed, 28 Dec 2011 09:29:29 GMT
< Server: ATS/3.0.2
< Last-Modified: Wed, 14 Apr 2010 14:26:28 GMT
< Accept-Ranges: bytes
< Content-Length: 3825
< Cache-Control: max-age=315360000
< Expires: Sat, 25 Dec 2021 09:29:29 GMT
< Content-Type: image/gif
< Age: 0
< Proxy-Connection: keep-alive
< Via: http/1.1 zats-ttttttttt (zcache/3.0.2 )
% Total    % Received % XferdAverage Speed   Time    Time   TimeCurrent
                                 DloadUpload   Total   Spent    LeftSpeed
10038251003825    0   0   113k      0 --:--:-- --:--:-- --:--:--   0Connection #0 to host 10.15.184.139 left intact

* Closing connection #0
页: 9 10 11 12 13 14 15 16 17 18 [19] 20 21 22 23 24 25 26 27 28
查看完整版本: Apache Traffic Server 3.2.0 正式版,附srpm包