Search squid archive

two sibling squids talking via ICP while caching a parent web server

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

 



Hello
We've gotten the single Squid server working with the one parent backend
caching nicely, now we've added a second Squid, and want it configured
the same, but also have it use the other Squid as a sibling, and
vice-versa.  From what we can see this will get us what we want, but
it's not working.  While I'll occasionally see a mention of the other
Squid server in the logs for each of them - for example, from the logs
on nldg-27:

/var/log/squid/store.log:1192652265.671 SWAPOUT 00 00000051
24BC0FD5CD9FAC9885F196E48A1F649E  200 1192652265        -1 1192653765
text/html 43325/43325 GET
http://nldg-28.domain.com/ISNet/environments/index.html
/var/log/squid/store.log:1192652299.555 SWAPOUT 00 00000052
4F361C5B13A2D088A38BA1B244469D48  200 1192652299        -1 1192653799
text/html 55205/55205 GET
http://nldg-28.domain.com/ISNet/forms_templates/index.html

It still never seems to get pages that we know one server has - and
instead always goes to the backend webserver, the parent to get it.
We've worked on this for days now (otherwise I wouldn't send it in) and
we're stumped.  Going through the site, faq, book, everything.  I assume
we're missing something very basic, but we've been unable to find it.
Here is our squid.conf, with our two Squid sibling servers being nldg-27
and nldg-28, and the backend webserver, the parent, being nsdgecmweb-18.


Thanks

P


############## 
# SERVER     #
############## 
http_port 192.168.120.226:3128 vhost
visible_hostname nldg-28.domain.com
unique_hostname nldg-28.domain.com
client_persistent_connections on
server_persistent_connections on


############## 
# PARENT     #
############## 
cache_peer nsdgecmweb-18.domain.com parent 80 0 no-query
no-netdb-exchange no-digest originserver login=PASS


############## 
# SIBLING    #
############## 
cache_peer nldg-27.domain.com sibling 3128 3130 proxy-only 
acl fromneighbor src 192.168.120.225
cache_peer_access nldg-27.domain.com deny fromneighbor
log_icp_queries on


############## 
# ACCESS     #
############## 
acl all src all
acl static_content urlpath_regex -i \.(jpg|gif|png|css|js|axd)
http_access allow all
# allow for POST and strip off tailing query terms
acl METHODLIST method POST
cache deny METHODLIST
strip_query_terms off
# allow for localhost or 127.0.0.1 to control the purging of cache
acl PURGE method purge
acl localhost src localhost
http_access allow purge localhost
http_access deny purge
cache_effective_user squid
cache_effective_group squid
# added for sibling access
icp_access allow all


############## 
# REFRESHING #
############## 
# See
http://www.squid-cache.org/Versions/v2/2.6/cfgman/refresh_pattern.html
#refresh_pattern <regexp> <min> <percent> <max> <options>
# TESTING: Caching everything like crazy
#refresh_pattern ^http: 600000 100% 700000 override-expire
override-lastmod reload-into-ims ignore-reload ignor
e-no-cache ignore-private ignore-auth
refresh_pattern ^http: 600000 100% 700000 override-expire
override-lastmod reload-into-ims ignore-reload ignore
-no-cache ignore-private ignore-auth
# Overriding caching settings if nocache=true option is set
refresh_pattern nocache=true 0 0% 0
# Overriding caching settings if edit=yes option is set
refresh_pattern edit=yes 0 0% 0
# Cache images for 4-5 hours, regardless what the server says
refresh_pattern .jpg 14400 50% 18000 override-expire override-lastmod
reload-into-ims ignore-reload ignore-no-c
ache ignore-private ignore-auth
refresh_pattern .gif 14400 50% 18000 override-expire override-lastmod
reload-into-ims ignore-reload ignore-no-c
ache ignore-private ignore-auth
refresh_pattern .png 14400 50% 18000 override-expire override-lastmod
reload-into-ims ignore-reload ignore-no-c
ache ignore-private ignore-auth
# Cache CSS and JavaScript for 4-5 days as well
refresh_pattern .css 14400 50% 18000 override-expire override-lastmod
reload-into-ims ignore-reload ignore-no-c
ache ignore-private ignore-auth
refresh_pattern .js  14400 50% 18000 override-expire override-lastmod
reload-into-ims ignore-reload ignore-no-c
ache ignore-private ignore-auth

############## 
# HEADERS    #
############## 
# Do not tell the world that we are running squid
httpd_suppress_version_string on
# Remove the Caching Control header on content deemed static
header_access Cache-Control deny static_content

############## 
# LOGGING    #
############## 
emulate_httpd_log on   
buffered_logs on   

############## 
# DEBUGGING  #
############## 
#debug_options ALL,1 33,2
 
 If you are not the intended recipient of this message (including attachments), or if you have received this message in error, immediately notify us and delete it and any attachments.  If you no longer wish to receive e-mail from Edward Jones, please send this request to messages@xxxxxxxxxxxxxxxx  You must include the e-mail address that you wish not to receive e-mail communications.  For important additional information related to this e-mail, visit www.edwardjones.com/US_email_disclosure


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

  Powered by Linux