Search squid archive

Re: Unable to get TCP_MEM_HIT (just TCP_HIT) with rock storage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



在 2017/10/19 下午6:55, Eliezer Croitoru 写道:
Hey,

It's not clear to me if the issue you are trying to resolve is for a specific service or squid-wide.

I'm not sure what do "a specific service" and "squid-wide" mean.
I think Alex Rousskov already solved my issue in this thread: shared memory cache can't hold responses with a "Vary" header.
Thank you anyway.

Your tests are done on localhost so it might reflect other services as well but still I want to be sure I understand what you are aiming for.

My goal was figuring out why Squid with Rock always send TCP_HIT instead of TCP_MEM_HIT for some responses (turned out they have "Vary" header).

If you are indeed aiming a specific service then I believe that your setup+squid.conf maybe not what you need.

Eliezer

----
Eliezer Croitoru
Linux System Administrator
Mobile: +972-5-28704261
Email: eliezer@xxxxxxxxxxxx


-----Original Message-----
From: squid-users [mailto:squid-users-bounces@xxxxxxxxxxxxxxxxxxxxx] On Behalf Of duanyao
Sent: Tuesday, October 17, 2017 07:31
To: squid-users@xxxxxxxxxxxxxxxxxxxxx
Subject:  Unable to get TCP_MEM_HIT (just TCP_HIT) with rock storage

Hi,

When I test squid with rock storage, I have never got a TCP_MEM_HIT
(just TCP_HIT) in access.log. I do get TCP_MEM_HIT with ufs storage.

Is this normal, or something is mis-configured?


I run squid locally, and run `curl -v -x localhost:3128
http://localhost:8001/1000 > /dev/null` two times successively, and
expect at least the second one being TCP_MEM_HIT, but it is always TCP_HIT.


Attachment "squid.conf" is my configuration file; and "cache.rock.log"
is the part of cache.log during 2 successive accesses to a same URL;
"anysize-server.js" is the HTTP server at port 8001 for the test, and
you can run it by `node anysize-server.js`.


I tested squid 3.5.27 and 4.0.21, both compiled and run on Linux x86_64:
`./configure --with-default-user=duanyao
--prefix=/home/duanyao/project/proxy/squid-root/`.


Thanks.


Duan, Yao




_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux