trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From geo...@free.fr
Subject Re: [ATS 4.1.2] cache inspector using regex lookup
Date Tue, 03 Jun 2014 14:32:00 GMT
Hi Daniel,

Thanks, I searched into all trafficserver-users archives this day but did not found it...

I tried the "cacheurl" plugin whithout success, the cache key is well rewritten but the regex
lookup still gives nothing:

==> plugin.config <==
cacheurl.so /usr/local/etc/trafficserver/cacheurl.config

==> cacheurl.config <==
http://www.mydomain1.([a-z]*)/(.*) http://10.10.16.3.mydomain1.$1/$2

==> traffic.out <== 
[Jun  3 16:19:53.620] Server {0x804006400} DIAG: (cacheurl) Rewriting cache URL for http://www.mydomain1.fr/o5k?10010000120
to http://10.10.16.3.mydomain1.fr/o5k?10010000120
[Jun  3 16:19:53.620] Server {0x804006400} DEBUG: (cache_url) [TSCacheUrlSet]
[Jun  3 16:19:53.620] Server {0x804006400} DEBUG: (cache_url) [TSCacheUrlSet] changing the
cache url to: http://10.10.16.3.mydomain1.fr/o5k?10010000120
<snip>...
[Jun  3 16:20:56.697] Server {0x804006400} DEBUG: (cache_scan) hostname = '10.10.16.3', hostlen
= 10
[Jun  3 16:20:56.697] Server {0x804006400} DEBUG: (cache_inspector) matching url 'GET' 'http://10.10.16.3/o5k?10010000120'
with regex 'http://.*mydomain1.fr/o5k.*'


Thanks,
Denis

----- Mail original -----
De: "Daniel Biazus" <daniel.biazus@azion.com>
À: users@trafficserver.apache.org
Envoyé: Mardi 3 Juin 2014 15:27:53
Objet: Re: [ATS 4.1.2] cache inspector using regex lookup


Hey Denis, 


Please take a look at this one: " traffic server cache key " 


http://mail-archives.apache.org/mod_mbox/trafficserver-users/201405.mbox/browser 



Seems to be the same issue, 


Best Regards, 
Daniel 



On Tue, Jun 3, 2014 at 7:30 AM, < geodni@free.fr > wrote: 


Hi, 

Using ATS 4.1.2 under FreeBSD 10.0 RELEASE amd64 built from ports, I try to inspect cache
with regex lookup, it seems not work properly on my platform. 

1 - Using normal lookup, it gives the information about the cached object 
http://www.mydomain1.fr/o5k?10010001000 
2 - Using regex lookup, it gives no results : 
http://www \.mydomain1\.fr/o5k?1001000100.* 
Just this : 
"Regex Lookup 
Done" 
3 - Using regex lookup with origin server IP, it seems to work giving the expected results
but each link given as results drives me to a failed lookup because the object cached is based
on host and not IP : 
" http://10.10.16.3/o5k?10010000001 
Cache Lookup Failed, or missing in cluster" 

QUESTION : 
---------- 
Does this mean it is not a good idea to map a domain to a IP and then I must use domain.tld
instead of IP 
OR is it simply a cache regex lookup side effect ? 

Best regards, 
Denis 

------------------------------------------------------------------ 

Configuration : 
==> remap.config <== 
regex_map www\.mydomain1\.(fr|com|eu|org) http://10.10.16.3/ 
map http://10.10.16.28:8080/cache/ http://{cache}:8080 @action=allow @src_ip=10.10.16.0-10.10.16.255


==> records.config <== 
CONFIG proxy.config.http_ui_enabled INT 3 


Outputs of regex lookup using domain.tld and IP address: 
==> traffic.out <== 

[Jun 3 12:24:39.860] Server {0x804008000} DEBUG: (cache_inspector) query params: 'url=http%3A%2F%
2Fwww.mydomain1.fr %2Fo5k.*' len 33 [unescaped] 
[Jun 3 12:24:39.860] Server {0x804008000} DEBUG: (cache_inspector) query params: 'url= http://www.mydomain1.fr/o5k.*
' len 33 [escaped] 
[Jun 3 12:24:39.860] Server {0x804008000} DEBUG: (cache_inspector) there were 1 url(s) passed
in 
[Jun 3 12:24:39.860] Server {0x804008000} DEBUG: (cache_inspector) URL 1: 'http%3A%2F% 2Fwww.mydomain1.fr
%2Fo5k.*' 
[Jun 3 12:24:39.860] Server {0x804008000} DEBUG: (cache_inspector) URL 1: ' http://www.mydomain1.fr/o5k.*
' 
[Jun 3 12:24:39.860] Server {0x804008000} DEBUG: (cache_scan_truss) inside scan 
[Jun 3 12:24:39.860] Server {0x804008000} DEBUG: (cache_new) new 0x805435180 
[Jun 3 12:24:40.882] Server {0x804006400} DEBUG: (cache_scan_truss) inside 0x805435180:scanVol

[Jun 3 12:24:41.904] Server {0x804007000} DEBUG: (cache_scan_truss) inside 0x805435180:scanObject

[Jun 3 12:24:41.911] Server {0x804007000} DEBUG: (cache_scan_truss) read 0x805435180:scanObject

[Jun 3 12:24:41.911] Server {0x804007000} DEBUG: (cache_scan_truss) read 0x805435180:scanObject
53476864 8388608 
[Jun 3 12:24:41.949] Server {0x804007800} DEBUG: (cache_scan_truss) inside 0x805435180:scanObject

[Jun 3 12:24:41.949] Server {0x804007800} DEBUG: (cache_scan_truss) blockskip 0x805435180:scanObject

[Jun 3 12:24:41.949] Server {0x804007800} DEBUG: (cache_scan_truss) next 0x805435180:scanObject
61865984 
[Jun 3 12:24:41.949] Server {0x804007800} DEBUG: (cache_scan_truss) next_in_map 0x805435180:scanObject
10737418240 
[Jun 3 12:24:42.970] Server {0x804007c00} DEBUG: (cache_scan_truss) inside 0x805435180:scanVol

[Jun 3 12:24:42.970] Server {0x804007c00} DEBUG: (cache_inspector) scan done 
[Jun 3 12:24:42.971] Server {0x804007c00} DEBUG: (cache_free) free 0x805435180 



[Jun 3 12:01:34.714] Server {0x804007c00} DEBUG: (cache_inspector) query params: 'url=http%3A%2F%2F10.10.16.3%2Fo5k%3F.*'
len 28 [unescaped] 
[Jun 3 12:01:34.714] Server {0x804007c00} DEBUG: (cache_inspector) query params: 'url= http://10.10.16.3/o5k?.*
' len 28 [escaped] 
[Jun 3 12:01:34.714] Server {0x804007c00} DEBUG: (cache_inspector) there were 1 url(s) passed
in 
[Jun 3 12:01:34.714] Server {0x804007c00} DEBUG: (cache_inspector) URL 1: 'http%3A%2F%2F10.10.16.3%2Fo5k%3F.*'

[Jun 3 12:01:34.714] Server {0x804007c00} DEBUG: (cache_inspector) URL 1: ' http://10.10.16.3/o5k?.*
' 
[Jun 3 12:01:34.715] Server {0x804007c00} DEBUG: (cache_scan_truss) inside scan 
[Jun 3 12:01:34.715] Server {0x804007c00} DEBUG: (cache_new) new 0x806368a40 
[Jun 3 12:01:35.736] Server {0x804008000} DEBUG: (cache_scan_truss) inside 0x806368a40:scanVol

[Jun 3 12:01:36.758] Server {0x804006400} DEBUG: (cache_scan_truss) inside 0x806368a40:scanObject

[Jun 3 12:01:36.765] Server {0x804006400} DEBUG: (cache_scan_truss) read 0x806368a40:scanObject

[Jun 3 12:01:36.765] Server {0x804006400} DEBUG: (cache_scan_truss) read 0x806368a40:scanObject
61865472 8388608 
[Jun 3 12:01:36.802] Server {0x804007000} DEBUG: (cache_scan_truss) inside 0x806368a40:scanObject

[Jun 3 12:01:36.802] Server {0x804007000} DEBUG: (cache_scan_truss) blockskip 0x806368a40:scanObject

[Jun 3 12:01:36.802] Server {0x804007000} DEBUG: (cache_scan) hostname = '10.10.16.3', hostlen
= 10 
[Jun 3 12:01:36.802] Server {0x804007000} DEBUG: (cache_inspector) matching url 'GET' ' http://10.10.16.3/o5k?10010000000
' with regex ' http://10.10.16.3/o5k?.* ' 
[Jun 3 12:01:36.802] Server {0x804007000} DEBUG: (cache_scan) hostname = '10.10.16.3', hostlen
= 10 
[Jun 3 12:01:36.802] Server {0x804007000} DEBUG: (cache_inspector) matching url 'GET' ' http://10.10.16.3/o5k?10010000001
' with regex ' http://10.10.16.3/o5k?.* ' 
[Jun 3 12:01:36.802] Server {0x804007000} DEBUG: (cache_scan) hostname = '10.10.16.3', hostlen
= 10 
[Jun 3 12:01:36.802] Server {0x804007000} DEBUG: (cache_inspector) matching url 'GET' ' http://10.10.16.3/o5k?10010000002
' with regex ' http://10.10.16.3/o5k?.* ' 
<snip>... 
[Jun 3 12:01:36.803] Server {0x804007000} DEBUG: (cache_scan) hostname = '10.10.16.3', hostlen
= 10 
[Jun 3 12:01:36.803] Server {0x804007000} DEBUG: (cache_inspector) matching url 'GET' ' http://10.10.16.3/o5k?10010000018
' with regex ' http://10.10.16.3/o5k?.* ' 
[Jun 3 12:01:36.803] Server {0x804007000} DEBUG: (cache_scan) hostname = '10.10.16.3', hostlen
= 10 
[Jun 3 12:01:36.803] Server {0x804007000} DEBUG: (cache_inspector) matching url 'GET' ' http://10.10.16.3/o5k?10010000019
' with regex ' http://10.10.16.3/o5k?.* ' 
[Jun 3 12:01:36.803] Server {0x804007000} DEBUG: (cache_scan) hostname = '10.10.16.3', hostlen
= 10 
[Jun 3 12:01:36.803] Server {0x804007000} DEBUG: (cache_inspector) matching url 'GET' ' http://10.10.16.3/o5k?10010000020
' with regex ' http://10.10.16.3/o5k?.* ' 
[Jun 3 12:01:36.803] Server {0x804007000} DEBUG: (cache_scan_truss) blockskip 0x806368a40:scanObject

[Jun 3 12:01:36.803] Server {0x804007000} DEBUG: (cache_scan_truss) blockskip 0x806368a40:scanObject

[Jun 3 12:01:36.803] Server {0x804007000} DEBUG: (cache_scan_truss) blockskip 0x806368a40:scanObject

[Jun 3 12:01:36.803] Server {0x804007000} DEBUG: (cache_scan_truss) blockskip 0x806368a40:scanObject

<snip>... 
[Jun 3 12:01:36.805] Server {0x804007000} DEBUG: (cache_scan_truss) blockskip 0x806368a40:scanObject

[Jun 3 12:01:36.805] Server {0x804007000} DEBUG: (cache_scan_truss) next 0x806368a40:scanObject
70254080 
[Jun 3 12:01:36.805] Server {0x804007000} DEBUG: (cache_scan_truss) next_in_map 0x806368a40:scanObject
10737418240 
[Jun 3 12:01:37.825] Server {0x804007400} DEBUG: (cache_scan_truss) inside 0x806368a40:scanVol

[Jun 3 12:01:37.825] Server {0x804007400} DEBUG: (cache_inspector) scan done 
[Jun 3 12:01:37.825] Server {0x804007400} DEBUG: (cache_free) free 0x806368a40 




-- 

Daniel Biazus 



Porto Alegre, Brasil + 55 51 3012 3005 
Miami, USA + 1 305 704 8816 


Quaisquer informações contidas neste e-mail e anexos podem ser confidenciais e privilegiadas,
protegidas por sigilo legal. Qualquer forma de utilização deste documento depende de autorização
do emissor, sujeito as penalidades cabíveis. 

Any information in this e-mail and attachments may be confidential and privileged, protected
by legal confidentiality. The use of this document require authorization by the issuer, subject
to penalties.

Mime
View raw message