squid newbie is somewhat confused

From: Lee Doolan <leed@dont-contact.us>
Date: 24 Feb 2000 13:28:08 -0800

i have attempted to set up what i am referring to as a 'pre-cache'
associated with an httpd accelerator. the idea is this: occasionally
a large number of cache objects may change in such a way that the changes
are related. at such times it is desirable to replace all of the related
objects in the 'live cache' over a brief time period.

there are two caches, running on separate hosts, configured as
siblings.

        1- generate a request set {R} of http requests
        2- set the ipc_port of the pre cache squid to 0
        3- aim all of the requests in {R} at the pre cache
        4- set the ipc_port of the pre cache to 3130
        5- PURGE the image of {R} in the live cache
        6- aim all of the requests in {R} at the live cache

the trouble is that i'm seeing messages of the form

    2000/02/24 07:15:39| peerSelectIcpPing: http://sf-funbox1.snap.com:6105/phptest/test.php
    2000/02/24 07:15:39| neighborsCount: 0

in both cache logs. so it looks like the caches are not seeing each
other as siblings. there are no log messages to indicate that there
are either UDP_HITS or UDP_MISSES.

here are the configurations. first the live cache:

    http_port 80
    icp_port 3130
    cache_peer sf-funbox1.snap.com sibling 4080 3130
    acl QUERY urlpath_regex cgi-bin
    no_cache deny QUERY
    cache_mem 8 MB
    cache_dir ufs /usr/local/squid/cache 100 16 256
    cache_access_log /usr/local/squid/logs/access.log
    cache_log /usr/local/squid/logs/cache.log
    cache_store_log /usr/local/squid/logs/store.log
    debug_options ALL,9
    redirect_program /usr/local/squid/bin/redirector
    refresh_pattern ^ftp: 1440 20% 10080
    refresh_pattern ^gopher: 1440 0% 1440
    refresh_pattern . 1000 20% 4320 override-expire override-lastmod reload-into-ims ignore-reload
    acl all src 0.0.0.0/0.0.0.0
    http_access allow all
    acl PURGE method purge
    http_access allow purge all
    icp_access allow all
    cache_mgr squid
    cache_effective_user squid
    cache_effective_group squid
    visible_hostname stcroix.snap.com
    httpd_accel_host stcroix.snap.com
    httpd_accel_port 8080
    dns_testnames netscape.com internic.net nlanr.net microsoft.com
    log_icp_queries on
    cachemgr_passwd secret all
    cachemgr_passwd disable all
    reload_into_ims off
    always_direct deny all

now the pre-cache:

    http_port 4080
    icp_port 3130
    cache_peer stcroix.snap.com sibling 80 3130 no-query
    cache_mem 8 MB
    cache_dir ufs /home/leed/local/squid/pre-cache-4080 100 16 256
    cache_access_log /home/leed/local/squid/logs/access.log
    cache_log /home/leed/local/squid/logs/cache.log
    cache_store_log /home/leed/local/squid/logs/store.log
    pid_filename /home/leed/local/squid/logs/squid.pid
    debug_options ALL,5
    redirect_program /home/leed/local/squid/bin/redirector
    redirect_children 5
    refresh_pattern ^ftp: 1440 20% 10080
    refresh_pattern ^gopher: 1440 0% 1440
    refresh_pattern . 1000 20% 4320 override-expire override-lastmod reload-into-ims ignore-reload
    acl all src 0.0.0.0/0.0.0.0
    acl localhost src 127.0.0.1/255.255.255.255
    http_access allow localhost
    http_access allow all
    icp_access allow all
    miss_access allow all
    cache_mgr leed
    cache_effective_user nobody
    cache_effective_group nobody
    visible_hostname sf-funbox1.snap.com
    httpd_accel_host stcroix.snap.com
    httpd_accel_port 8080
    dns_testnames netscape.com internic.net nlanr.net microsoft.com
    log_icp_queries on
    cachemgr_passwd secret all
    cachemgr_passwd disable all
    reload_into_ims off
    [sf-funbox1] $

 

-- 
------------------------------------------------------------------------
       No toll on the internet    There are paths of many kinds
       Whoever passes this gate   Will travel freely in the world
------------------------------------------------------------------------
                      Snap to the possibilities
------------------------------------------------------------------------
Received on Thu Feb 24 2000 - 14:28:28 MST

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