squid3 + cache [RESOLVIDO]

13. Re: squid3 + cache [RESOLVIDO]

Pablo Mesquita
mr. shorewall

(usa Debian)

Enviado em 15/04/2010 - 17:23h

nadica de nada...nem no cache.log e no access.log


  


14. Re: squid3 + cache [RESOLVIDO]

Renato Carneiro Pacheco
renato_pacheco

(usa Debian)

Enviado em 15/04/2010 - 17:30h

Então num tá fazendo cache não. Aquela linha cache_log no squid.conf vc acrescentou?


15. Re: squid3 + cache [RESOLVIDO]

Renato Carneiro Pacheco
renato_pacheco

(usa Debian)

Enviado em 15/04/2010 - 17:58h

D uma olhada nesse tuto aki pra vc comparar se num ficou faltando algo:

http://www.gdhpress.com.br/servidores/leia/index.php?p=cap2-11


16. Re: squid3 + cache [RESOLVIDO]

Pablo Mesquita
mr. shorewall

(usa Debian)

Enviado em 15/04/2010 - 18:13h

eae cara...tava sim...agora né..tinha me esquecido..hehehe

aqui esta o cache.log

---------------------
2010/04/15 18:05:37| Starting Squid Cache version 3.0.STABLE19 for i486-pc-linux-gnu...
2010/04/15 18:05:37| Process ID 3293
2010/04/15 18:05:37| With 65535 file descriptors available
2010/04/15 18:05:37| DNS Socket created at 0.0.0.0, port 39547, FD 7
2010/04/15 18:05:37| Adding nameserver 127.0.0.1 from squid.conf
2010/04/15 18:05:37| Unlinkd pipe opened on FD 12
2010/04/15 18:05:37| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2010/04/15 18:05:37| Swap maxSize 8192000 + 102400 KB, estimated 638030 objects
2010/04/15 18:05:37| Target number of buckets: 31901
2010/04/15 18:05:37| Using 32768 Store buckets
2010/04/15 18:05:37| Max Mem size: 102400 KB
2010/04/15 18:05:37| Max Swap size: 8192000 KB
2010/04/15 18:05:37| Rebuilding storage in /mnt/cache_squid/1 (DIRTY)
2010/04/15 18:05:37| Rebuilding storage in /mnt/cache_squid/2 (DIRTY)
2010/04/15 18:05:37| Rebuilding storage in /mnt/cache_squid/3 (DIRTY)
2010/04/15 18:05:37| Rebuilding storage in /mnt/cache_squid/4 (DIRTY)
2010/04/15 18:05:37| Using Least Load store dir selection
2010/04/15 18:05:37| Set Current Directory to /mnt/cache_squid
2010/04/15 18:05:37| Loaded Icons.
2010/04/15 18:05:37| Accepting transparently proxied HTTP connections at 192.168.0.1, port 3128, FD 16.
2010/04/15 18:05:37| HTCP Disabled.
2010/04/15 18:05:37| Ready to serve requests.
2010/04/15 18:05:39| Done scanning /mnt/cache_squid/1 swaplog (0 entries)
2010/04/15 18:05:39| Done scanning /mnt/cache_squid/2 swaplog (0 entries)
2010/04/15 18:05:39| Done scanning /mnt/cache_squid/3 swaplog (0 entries)
2010/04/15 18:05:39| Done scanning /mnt/cache_squid/4 swaplog (0 entries)
2010/04/15 18:05:39| Finished rebuilding storage from disk.
2010/04/15 18:05:39| 0 Entries scanned
2010/04/15 18:05:39| 0 Invalid entries.
2010/04/15 18:05:39| 0 With invalid flags.
2010/04/15 18:05:39| 0 Objects loaded.
2010/04/15 18:05:39| 0 Objects expired.
2010/04/15 18:05:39| 0 Objects cancelled.
2010/04/15 18:05:39| 0 Duplicate URLs purged.
2010/04/15 18:05:39| 0 Swapfile clashes avoided.
2010/04/15 18:05:39| Took 2.53 seconds ( 0.00 objects/sec).
2010/04/15 18:05:39| Beginning Validation Procedure
2010/04/15 18:05:39| Completed Validation Procedure
2010/04/15 18:05:39| Validated 25 Entries
2010/04/15 18:05:39| store_swap_size = 0
2010/04/15 18:05:39| storeLateRelease: released 0 objects
2010/04/15 18:06:43| ctx: enter level 0: 'http://br.msn.com/'
2010/04/15 18:06:43| keepaliveAccounting: Impossible keep-alive header from 'http://br.msn.com/'

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

e as ultimas 50 linhas do access.log

------------------------
1271365929.188 1046 192.168.0.2 TCP_MISS/304 345 GET http://s2.trrsf.com.br/atm/3/core/apps/terratv/_css/modTerraTv.css - DIRECT/200.154.56.237 -
1271365929.213 1033 192.168.0.2 TCP_MISS/304 343 GET http://s1.trrsf.com.br/navbar/js/json_home_1.js - DIRECT/200.154.56.237 -
1271365931.113 1359 192.168.0.2 TCP_MISS/200 1322 GET http://comments.wsv.terra.com/GetObjectDataList?callback=rpc.callbacks.r1&application=Pubv6&... - DIRECT/208.84.244.24 application/json
1271365931.607 383 192.168.0.2 TCP_MISS/200 641 GET http://tagmanfe.terra.com.br/ShowArea.aspx?key=br.homepage.home.default - DIRECT/200.154.56.76 text/html
1271365931.914 302 192.168.0.2 TCP_MISS/200 664 GET http://tagmanfe.terra.com.br/ShowArea.aspx?key=br.homepage.home.top&site=br.terra.homepage&z... - DIRECT/200.154.56.76 text/html
1271365932.388 472 192.168.0.2 TCP_MISS/200 1767 GET http://ad.doubleclick.net/adj/br.terra.homepage/home;sz=728x90;tile=1;dcopt=ist;kw=top;ord=543434? - DIRECT/64.233.163.148 application/x-javascript
1271365932.767 366 192.168.0.2 TCP_MISS/200 394 GET http://tagmanfe.terra.com.br/ShowArea.aspx?key=br.homepage.home.pagesponsor&site=br.terra.homepa... - DIRECT/200.154.56.76 -
1271365933.304 528 192.168.0.2 TCP_MISS/200 658 GET http://tagmanfe.terra.com.br/ShowArea.aspx?key=br.homepage.home.right&site=br.terra.homepage&... - DIRECT/200.154.56.76 text/html
1271365933.528 1108 192.168.0.2 TCP_MISS/304 298 GET http://s0.2mdn.net/2162380/br_consumer_i15_d_semanaw10_1699_FY11Q1W11_terra_home_super_intel_728x90.... - DIRECT/64.233.163.148 application/x-shockwave-flash
1271365933.817 509 192.168.0.2 TCP_MISS/200 1765 GET http://ad.doubleclick.net/adj/br.terra.homepage/home;sz=300x250;tile=4;;kw=right;ord=543434? - DIRECT/64.233.163.148 application/x-javascript
1271365934.157 321 192.168.0.2 TCP_MISS/200 598 GET http://tagmanfe.terra.com.br/ShowArea.aspx?key=br.homepage.home.pbuttons1&site=br.terra.homepage... - DIRECT/200.154.56.76 text/html
1271365934.297 447 192.168.0.2 TCP_MISS/304 298 GET http://s0.2mdn.net/2162380/br_consumer_i15_d_semana_1699_FY11Q1W11_terra_home_arroba_nr_300x250.swf?... - DIRECT/64.233.163.148 application/x-shockwave-flash
1271365934.823 661 192.168.0.2 TCP_MISS/200 1964 GET http://ppi.terra.com.br/showArea.asp?key=br.capa.portal.pbuttons1&rnd=0,722967923955511? - DIRECT/200.154.56.76 text/html
1271365935.220 385 192.168.0.2 TCP_MISS/200 597 GET http://tagmanfe.terra.com.br/ShowArea.aspx?key=br.homepage.home.pbuttons2&site=br.terra.homepage... - DIRECT/200.154.56.76 text/html
1271365935.848 625 192.168.0.2 TCP_MISS/200 2044 GET http://ppi.terra.com.br/showArea.asp?key=br.capa.portal.pbuttons2&rnd=0,71974423468101? - DIRECT/200.154.56.76 text/html
1271365936.264 408 192.168.0.2 TCP_MISS/200 592 GET http://tagmanfe.terra.com.br/ShowArea.aspx?key=br.homepage.home.ppi&site=br.terra.homepage&z... - DIRECT/200.154.56.76 text/html
1271365936.931 664 192.168.0.2 TCP_MISS/200 5439 GET http://ppi.terra.com.br/showArea.asp?key=br.capa.portal.ppi&rnd=0,569175272048067? - DIRECT/200.154.56.76 text/html
1271365937.284 293 192.168.0.2 TCP_MISS/200 667 GET http://tagmanfe.terra.com.br/ShowArea.aspx?key=br.homepage.home.sbuttons1&site=br.terra.homepage... - DIRECT/200.154.56.76 text/html
1271365937.762 474 192.168.0.2 TCP_MISS/200 1778 GET http://ad.doubleclick.net/adj/br.terra.homepage/home;sz=195x31,88x31;tile=8;;kw=sbuttons1;ord=543434? - DIRECT/64.233.163.148 application/x-javascript
1271365937.891 900 192.168.0.2 TCP_MISS/200 644 GET http://uv.terra.com.br/UV?c=capa_n&rtid=br.portada.portada&ord=598273&REF=http%3A//www.t... - DIRECT/200.154.56.196 image/gif
1271365937.901 908 192.168.0.2 TCP_MISS/302 803 GET http://br.hits.e.cl/cert/hit.dll?sitio_id=300030&path=cap/home&referer=http%3A//www.terra.co... - DIRECT/216.177.210.215 image/gif
1271365938.092 1098 192.168.0.2 TCP_MISS/200 668 GET http://terra.112.2o7.net/b/ss/terrabr,terraglobal/1/H.20.3/s92841941539937?AQB=1&ndh=1&t=15/... - DIRECT/66.235.132.118 image/gif
1271365938.105 330 192.168.0.2 TCP_MISS/200 667 GET http://tagmanfe.terra.com.br/ShowArea.aspx?key=br.homepage.home.sbuttons2&site=br.terra.homepage... - DIRECT/200.154.56.76 text/html
1271365938.276 490 192.168.0.2 TCP_MISS/304 298 GET http://s0.2mdn.net/2277983/botao_netbook_cs3.swf?clicktag=http%3A//ad.doubleclick.net/click%253Bh%25... - DIRECT/64.233.163.148 application/x-shockwave-flash
1271365938.632 524 192.168.0.2 TCP_MISS/200 1694 GET http://ad.doubleclick.net/adj/br.terra.homepage/home;sz=195x31,88x31;tile=9;;kw=sbuttons2;ord=543434? - DIRECT/64.233.163.148 application/x-javascript
1271365938.954 739 192.168.0.2 TCP_MISS/200 437 GET http://b.scorecardresearch.com/p?c1=2&c2=6906546&c3=&c4=http%3A%2F%2Fwww.terra.com.br%2F... - DIRECT/187.59.4.18 image/gif
1271365939.042 402 192.168.0.2 TCP_MISS/200 668 GET http://tagmanfe.terra.com.br/ShowArea.aspx?key=br.homepage.home.sbuttons3&site=br.terra.homepage... - DIRECT/200.154.56.76 text/html
1271365939.230 571 192.168.0.2 TCP_MISS/304 298 GET http://s0.2mdn.net/2560954/195x31.swf?clicktag=http%3A//ad.doubleclick.net/click%253Bh%253Dv8/397d/3... - DIRECT/64.233.163.148 application/x-shockwave-flash
1271365939.623 575 192.168.0.2 TCP_MISS/200 1721 GET http://ad.doubleclick.net/adj/br.terra.homepage/home;sz=195x31,88x31;tile=10;;kw=sbuttons3;ord=54343...? - DIRECT/64.233.163.148 application/x-javascript
1271365940.070 432 192.168.0.2 TCP_MISS/200 668 GET http://tagmanfe.terra.com.br/ShowArea.aspx?key=br.homepage.home.sbuttons4&site=br.terra.homepage... - DIRECT/200.154.56.76 text/html
1271365940.252 596 192.168.0.2 TCP_MISS/304 298 GET http://s0.2mdn.net/2607078/ID__7613.swf?clicktag=http%3A//ad.doubleclick.net/click%253Bh%253Dv8/397d... - DIRECT/64.233.163.148 application/x-shockwave-flash
1271365941.318 1361 192.168.0.2 TCP_MISS/200 1695 GET http://s1.trrsf.com.br/carousel/br/terratv/br_home_terratv.js?cache=1271365948351 - DIRECT/200.154.56.237 application/x-javascript
1271365941.940 618 192.168.0.2 TCP_MISS/200 714 GET http://ad.doubleclick.net/adj/br.terra.homepage/home;sz=195x31,88x31;tile=11;;kw=sbuttons4;ord=54343...? - DIRECT/64.233.163.148 application/x-javascript
1271365942.435 459 192.168.0.2 TCP_MISS/200 662 GET http://tagmanfe.terra.com.br/ShowArea.aspx?key=br.homepage.home.sbuttons5&site=br.terra.homepage... - DIRECT/200.154.56.76 text/html
1271365943.034 596 192.168.0.2 TCP_MISS/200 633 GET http://ad.doubleclick.net/adj/br.terra.homepage/home;sz=195x31;tile=35;;kw=sbuttons5;ord=543434? - DIRECT/64.233.163.148 application/x-javascript
1271365943.531 484 192.168.0.2 TCP_MISS/200 394 GET http://tagmanfe.terra.com.br/ShowArea.aspx?key=br.homepage.home.fphotos&site=br.terra.homepage&a... - DIRECT/200.154.56.76 -
1271365944.036 497 192.168.0.2 TCP_MISS/200 394 GET http://tagmanfe.terra.com.br/ShowArea.aspx?key=br.homepage.home.pollsponsor&site=br.terra.homepa... - DIRECT/200.154.56.76 -
1271365944.521 480 192.168.0.2 TCP_MISS/200 660 GET http://tagmanfe.terra.com.br/ShowArea.aspx?key=br.homepage.home.right2&site=br.terra.homepage&am... - DIRECT/200.154.56.76 text/html
1271365945.135 612 192.168.0.2 TCP_MISS/200 1770 GET http://ad.doubleclick.net/adj/br.terra.homepage/home;sz=300x250;tile=34;;kw=right2;ord=543434? - DIRECT/64.233.163.148 application/x-javascript
1271365945.481 329 192.168.0.2 TCP_MISS/200 709 GET http://tagmanfe.terra.com.br/ShowArea.aspx?key=br.homepage.home.bottom&site=br.terra.homepage&am... - DIRECT/200.154.56.76 text/html
1271365945.607 434 192.168.0.2 TCP_MISS/304 298 GET http://s0.2mdn.net/2162474/ret_medio_grandebarato_SGLN40_v_B550K1VD_150410.swf?clicktag=http%3A//ad.... - DIRECT/64.233.163.148 application/x-shockwave-flash
1271365945.897 412 192.168.0.2 TCP_MISS/200 1861 GET http://ad.doubleclick.net/adj/br.terra.homepage/home;sz=728x90;tile=17;;kw=bottom;ord=543434? - DIRECT/64.233.163.148 application/x-javascript
1271365946.105 200 192.168.0.2 TCP_MISS/200 665 GET http://tagmanfe.terra.com.br/ShowArea.aspx?key=br.homepage.home.tbox_sponsor1&site=br.terra.home... - DIRECT/200.154.56.76 text/html
1271365946.332 406 192.168.0.2 TCP_MISS/304 298 GET http://s0.2mdn.net/2662185/terra_super_Copa__Visa_TV32SempToshiba.swf?clicktag=http%3A//ad.doublecli... - DIRECT/64.233.163.148 application/x-shockwave-flash
1271365946.516 408 192.168.0.2 TCP_MISS/200 664 GET http://ad.doubleclick.net/adj/br.terra.homepage/home;sz=31x31;tile=29;;kw=tbox_sponsor1;ord=543434? - DIRECT/64.233.163.148 application/x-javascript
1271365946.784 262 192.168.0.2 TCP_MISS/200 394 GET http://tagmanfe.terra.com.br/ShowArea.aspx?key=br.homepage.home.tbox_sponsor2&site=br.terra.home... - DIRECT/200.154.56.76 -
1271365953.646 3673 192.168.0.2 TCP_MISS/200 15561 GET http://p2.trrsf.com.br/image/get?o=cf&w=296&h=222&src=http://sdp.terra.com.br/Thumbox/fr... - DIRECT/200.154.56.73 image/jpeg
1271365961.773 1815 192.168.0.2 TCP_MISS/200 10545 GET http://p2.trrsf.com.br/image/get?o=cf&w=296&h=222&src=http://sdp.terra.com.br/Thumbox/fr... - DIRECT/200.154.56.73 image/jpeg
1271365970.334 367 192.168.0.2 TCP_MISS/200 650 GET http://tagmanfe.terra.com.br/ShowArea.aspx?key=br.homepage.home.carroussel&site=br.terra.homepag... - DIRECT/200.154.56.76 text/html
1271365970.763 427 192.168.0.2 TCP_MISS/200 662 GET http://ad.doubleclick.net/adj/br.terra.homepage/home;sz=296x204;tile=5;;;ord=678875? - DIRECT/64.233.163.148 application/x-javascript



17. Re: squid3 + cache [RESOLVIDO]

Renato Carneiro Pacheco
renato_pacheco

(usa Debian)

Enviado em 15/04/2010 - 18:58h

Hum... será q toda vez q o squid acessa o site (no exemplo, www.terra.com.br) os links venham com nomes diferentes? Pode ser isso. Tente acessar um site q não tenha esses links dinâmicos (ex.: www.vivaolinux.com.br).


18. Re: squid3 + cache [RESOLVIDO]

Pablo Mesquita
mr. shorewall

(usa Debian)

Enviado em 16/04/2010 - 11:41h

opa...cara acho que não pois mesmo que o site tenha links dinamicos não será todos eles e este testa ja tinha feito...e tbm fiz com o site do www.google.com.br
limpei o cache e acessei 2 vezes o site do google e mesmo asssim teu o TCP_MISS...


19. Re: squid3 + cache [RESOLVIDO]

Renato Carneiro Pacheco
renato_pacheco

(usa Debian)

Enviado em 16/04/2010 - 11:53h

Paia d+... e no tuto q t passei, vc conferiu se num tá faltando nada não?


20. Re: squid3 + cache [RESOLVIDO]

Pablo Mesquita
mr. shorewall

(usa Debian)

Enviado em 19/04/2010 - 11:06h

opa...
ja cara..ta tudo certo...


21. Re: squid3 + cache [RESOLVIDO]

Renato Carneiro Pacheco
renato_pacheco

(usa Debian)

Enviado em 19/04/2010 - 12:39h

Kra, tou procurando saber sobre o seu problema e achei isso:

http://www.linuxman.pro.br/squid/node/1/node/1/#toc96

Verifica se há essas opções no seu squid.conf.


22. Re: squid3 + cache [RESOLVIDO]

Pablo Mesquita
mr. shorewall

(usa Debian)

Enviado em 19/04/2010 - 17:34h

eae cara li todo a pagina de cabo a rabo...e as duas opções que add fois estas..
cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF
até que no log apareceram uns TCP_MEM e 1 TCP_HIT mas só...nada mais...hehehe

cara o que sabes sobre refresh_pattern?? seguido eu vejo paginas com isto..mas não entendi mto bem...


23. Re: squid3 + cache [RESOLVIDO]

Renato Carneiro Pacheco
renato_pacheco

(usa Debian)

Enviado em 19/04/2010 - 17:46h

Um exemplo q eu peguei do meu squid.conf.

#Intervalos de tempos que o proxy verificara os arquivos dos site acessados conferem com o do cache, o valor 10080 significa aproximadamente 09 dias:

refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern (Release|Package(.gz)*)$ 0 20% 2880
refresh_pattern . 0 20% 4320

As colunas são o seguinte:

A primeira (min) é o tempo (em minutos) q um objeto sem um tempo explícito de expiração pode ter considerado "fresco".
A segunda (Percent) é a porcentagem da idade do objeto (tempo desde à sua última modificação).
A terceira (max) é um limite acima em quanto dura o objeto sem um tempo limite d expiração irá ser considerado "fresco".

Esses conceitos eu peguei no site original do squid (www.squid-cache.org).


24. Re: squid3 + cache [RESOLVIDO]

Pablo Mesquita
mr. shorewall

(usa Debian)

Enviado em 19/04/2010 - 18:13h

hum..interessante..vou dar uma lida mais tarde sobre isto...
e nos logs do squid aparece os maledetos TCP_HIT??



  
01 02 03



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts