Search squid archive

Accelerator: How to force PEER over DIRECT

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

 



I am trying to configure a bunch of SQUIDs as httpd_accelerators and
in my first tests I could never get a HIT from a sibling... though ICP
quesries are sent and UDP_HITS are recieved, SQUID always prefers to
fetch from the origine server! I would always get TCP TIMEOUT code ,
untill I changes the minimum_direct_rtt to set it to zero. Now I
always get  TCP_MISS:DIRECT

I enabled debuging of peer selection and it shows it clearly, please
see the output bellow.

First my config, then the debuging output:

icp_hit_stale on
icp_query_timeout 10000
minimum_direct_rtt 0
prefer_direct off
dead_peer_timeout 3600 seconds

http_port 80
httpd_accel_host 192.168.1.72
httpd_accel_port 80
httpd_accel_single_host on
httpd_accel_uses_host_header on
httpd_accel_with_proxy on

cache_peer 192.168.1.224 sibling 3128 3130 allow-miss no-netdb-exchange
cache_peer 192.168.1.223 sibling 3128 3130 allow-miss no-netdb-exchange
cache_peer 192.168.1.222 sibling 3128 3130 allow-miss no-netdb-exchange
cache_peer 192.168.1.221 sibling 3128 3130 allow-miss no-netdb-exchange
icp_port 3130

debug_options 73,9 28,9 44,9

Debug:

2006/03/30 11:00:23| peerSelect: http://neo.your-site.com/data.4
2006/03/30 11:00:23| peerSelectFoo: 'GET neo.your-site.com'
2006/03/30 11:00:23| peerCheckNetdbDirect: MY RTT =3D 0 msec
2006/03/30 11:00:23| peerCheckNetdbDirect: minimum_direct_rtt =3D 0 msec
2006/03/30 11:00:23| peerCheckNetdbDirect: MY hops =3D 0
2006/03/30 11:00:23| peerCheckNetdbDirect: minimum_direct_hops =3D 4
2006/03/30 11:00:23| peerSelectFoo: direct =3D DIRECT_MAYBE
2006/03/30 11:00:23| peerSelectIcpPing: http://neo.your-site.com/data.4
2006/03/30 11:00:23| peerSelectIcpPing: counted 3 neighbors
2006/03/30 11:00:23| peerSelect: Doing ICP pings
2006/03/30 11:00:23| peerSelect: 3 ICP replies expected, RTT 10000 msec
2006/03/30 11:00:23| peerHandleIcpReply: ICP_HIT http://neo.your-site.com/d=
ata.4
2006/03/30 11:00:23| peerSelectFoo: 'GET neo.your-site.com'
2006/03/30 11:00:23| peerCheckNetdbDirect: MY RTT =3D 0 msec
2006/03/30 11:00:23| peerCheckNetdbDirect: minimum_direct_rtt =3D 0 msec
2006/03/30 11:00:23| peerCheckNetdbDirect: MY hops =3D 0
2006/03/30 11:00:23| peerCheckNetdbDirect: minimum_direct_hops =3D 4
2006/03/30 11:00:23| peerSelect: SIBLING_HIT/192.168.1.224
2006/03/30 11:00:23| peerAddFwdServer: adding 192.168.1.224 SIBLING_HIT
2006/03/30 11:00:23| peerGetSomeParent: GET neo.your-site.com
2006/03/30 11:00:23| peerAddFwdServer: adding DIRECT DIRECT
2006/03/30 11:00:23| peerSelectCallback: http://neo.your-site.com/data.4

How can I get SQUID to use the peers if they have the object and only
use origine if not?

Thanks alot, this is driving me nutts, while Googling around I found
my own post asking the acact same question right here on this list,
almost two years ago!!!

Mohamed~

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

  Powered by Linux