RE: Problems with choosing faster parent cache!

From: Daniel E. Visbal <>
Date: Fri, 8 Oct 1999 12:28:45 -0500

I have the same situation here, and it's working for me:

Compilation with:
./configure --enable-icmp --enable-snmp --enable-htcp --enable-cache-digests

squid.conf at proxy0 (proxy for users)
cache_peer proxy1 parent 80 3130 closest-only
cache_peer proxy2 parent 80 3130 closest-only

Do not forget to setup:
# If your peer has configured Squid (during compilation) with
# '--enable-icmp' then that peer will send ICMP pings to origin server
# sites of the URLs it receives. If you enable this option then the
# ICP replies from that peer will include the ICMP data (if
# Then, when choosing a parent cache, Squid will choose the parent
# the minimal RTT to the origin server. When this happens, the
# hierarchy field of the access.log will be
# "CLOSEST_PARENT_MISS". This option is off by default.
query_icmp on

If query_icmp is enable, did you see the CLOSEST_PARENT_MISS in the log.

I do not use proxy-only, because I believe that having the local cache with
the info it's better than always fetching it from his parent.
I have not setup weight because with icmp enable, the one from data will
retrieved it's the one with the CLOSEST (best timing) connection.

Also I do not use no delay because I have not enable --enable-delay-pools.
I do not have any use for it.

I do not remember why, but I have to not use --enable-forw-via-db.

On my connection proxy1 is connected to a cable-modem and proxy2 use a
router to 2 ISP at 64K.

Hope any hints in here can help.

Daniel E Visbal

-----Original Message-----
From: Bartlomiej Solarz []
Sent: Friday, October 08, 1999 3:38 AM
Subject: Problems with choosing faster parent cache!


I have problem with squid.

The situation is:
I have one cache (cache_for_users) with two parents (cache_fast and

All caches was compiled with the same option (below).

In setup of cache_for_users is:
cache_peer cache_slow parent 3132 3134 proxy-only closest-only no-delay
cache_peer cache_fast parent 8081 3131 proxy-only closest-only no-delay

To the some_host I have much faster connection (more 100 times) with
cache_fast then cache_slow, but squid always select cache_slow for the
connection even when I changed weight for cache_slow to 100. The only way
to select the cache_fast is to comment the cache_slow.

Any ideas?

I have compiled the SQUID 2.2. STABLE 4 with
# ./configure --prefix=/usr/local --enable-icmp --enable-delay-pools
--enable-cache-digests --enable-ipf-transparent --enable-snmp --enable-htcp
--enable-forw-via-db --enable-err-language=Polish

Best Regards
PS-I must use both caches but i want true load balancing.
PS2-cache_slow and cache_fast are reachable from my cache_for_users in the
same speed (below 2ms)

* Bartlomiej Solarz-Niesluchowski *
* Administrator WSISiZ *
* Motto - nie psuj Win'9x one i bez tego sie psuja.... *
* Jak sobie poscielisz tak sie wyspisz *
Received on Fri Oct 08 1999 - 15:25:54 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:48:45 MST