Re: [squid-users] Duplicate Headers
On 11/24/15 1:09 PM, Antony Stone wrote: > squid.conf, minus blank lines and comments, please? Here you go. Each system is identical but with itself commented out of the "cache_peer" and "cache_peer_access" lines. acl SSL_ports port 443 acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 # https acl Safe_ports port 70 # gopher acl Safe_ports port 210 # wais acl Safe_ports port 1025-65535 # unregistered ports acl Safe_ports port 280 # http-mgmt acl Safe_ports port 488 # gss-http acl Safe_ports port 591 # filemaker acl Safe_ports port 777 # multiling http acl CONNECT method CONNECT acl our_sites dstdomain yum.opennms.org debian.opennms.org maven.opennms.org repo.opennms.org .mirrors.opennms.org .mirrors.opennms.com acl mirrors src 45.55.163.22/32 acl mirrors src 2604:a880:800:10::60:4001/128 acl mirrors src 104.236.160.233/32 acl mirrors src 2604:a880:1:20::d6:7001/128 acl mirrors src 46.101.6.157/32 acl mirrors src 2a03:b0c0:1:d0::7a:7001/128 acl mirrors src 46.101.211.239/32 acl mirrors src 2a03:b0c0:3:d0::8a:6001/128 http_access deny !Safe_ports http_access deny CONNECT # manager access http_access allow localhost manager http_access deny manager # proxy access http_access allow our_sites http_access allow localhost http_access deny all # peer access icp_access allow mirrors icp_access deny all icp_port 3130 # cache access cache allow all http_port 80 accel defaultsite=www.mirrors.opennms.org vhost http_port 8080 accel defaultsite=www.mirrors.opennms.org vhost #http_port 3128 accel defaultsite=www.mirrors.opennms.org vhost coredump_dir /var/spool/squid3 logfile_rotate 10 #cache_store_log stdio:/var/log/squid3/store.log debug_options rotate=10 client_ip_max_connections 8 # how much to cache/keep minimum_object_size 0 maximum_object_size 600 MB minimum_expiry_time 60 seconds refresh_pattern . 900 80% 604800 memory_cache_mode disk memory_replacement_policy heap LFUDA cache_replacement_policy heap LFUDA cache_peer mirror.internal.opennms.com parent 80 0no-query originserver name=myAccel cache_peer_access myAccel allow our_sites cache_peer_access myAccel deny all #cache_peer ny-1.mirrors.opennms.orgsibling 80 3130 name=ny1 cache_peer sf-1.mirrors.opennms.orgsibling 80 3130 name=sf1 cache_peer uk-1.mirrors.opennms.orgsibling 80 3130 name=uk1 cache_peer de-1.mirrors.opennms.orgsibling 80 3130 name=de1 #cache_peer_access ny1 allow all cache_peer_access sf1 allow all cache_peer_access uk1 allow all cache_peer_access de1 allow all cache_dir aufs /var/spool/squid3/cache-small 2000 16 256 min-size=0 max-size=10 cache_dir aufs /var/spool/squid3/cache-large 14000 16 256 min-size=10 max-size=6 # cache 404s for 5 minutes negative_ttl 300 seconds signature.asc Description: OpenPGP digital signature ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users
[squid-users] Duplicate Headers
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Any idea how my X-Cache, X-Cache-Lookup, and Via: headers are getting messed up on my accelerator configuration? Here's the output from a sample HEAD request: http://paste.opennms.eu/?26c282e7abba631e#oqU/8pAmAUXHhMXPHhr9vWjJAA1FVcgn49W5BWO1vIs= The 4 systems are set up as cache peers to each other, with a parent host that contains all the upstream content. -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2 iD8DBQFWVKUpUu+jZtP2Zf4RAvdoAJ0S7/F4p17BrChqgNHYK43vsPMk1gCgiL2D V7PTmJhbgShx7jNrCxnxY/8= =NdxH -END PGP SIGNATURE- ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users
Re: [squid-users] Large Files Not Caching
On 11/12/15 12:35 PM, Antony Stone wrote: >>> I'm trying to set up a CDN-like frontend to our (bandwidth-constrained) >>> >>> master package repository. Everything seems to be working (including >>> memory cache hits) except for some reason it does not seem to be >>> caching/keeping large files. > Define "large"? Sorry. To back up a little: squid version: 3.4.8-6+deb8u1 (debian jessie) With that config, I see memory hits to the cache, working fine. However, if I try to download something that's a couple of MB, it never writes to either cache directory. I get this in the store.log: > 1447350253.330 RELEASE -1 41BD9B4385C540AB29F252B7B7DDF41C > 200 > 1447350184 1447185078 1447954984 application/x-rpm 2368070/2368070 > GET > http://uk-1.mirrors.opennms.org:3128/yum/stable/common/opennms/opennms-jmx-config-generator-16.0.4-1.noarch.rpm ...and this in the access.log: > 1447350253.330 7 2606:a000:45e2:1200:f0cb:6c0a:1e57:68bd > TCP_MISS/200 > 2368590 GET > http://uk-1.mirrors.opennms.org:3128/yum/stable/common/opennms/opennms-jmx-config-generator-16.0.4-1.noarch.rpm > - TIMEOUT_FIRSTUP_PARENT/108.169.150.249 application/x-rpm On a second hit, I get the same thing, RELEASE and TCP_MISS. >>> Attached is my configuration. Is there something obvious that I'm missing? >>> >>> maximum_object_size 600 MB > I assume you don't mean "it's not caching stuff bigger than 600 Mb" Hah, no. The goal is to cache the most popular RPM and Debian packages and to spread the load out geographically. Most of them are somewhere between 20-300MB. Unfortunately, right now it seems to only cache what fits in memory. Also, sorry, just noticed this after I'd already reply-all'd: > Please reply to the list; > please *don't* CC me. I won't do it again... :/ ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users
[squid-users] Large Files Not Caching
I'm trying to set up a CDN-like frontend to our (bandwidth-constrained) master package repository. Everything seems to be working (including memory cache hits) except for some reason it does not seem to be caching/keeping large files. Attached is my configuration. Is there something obvious that I'm missing? acl SSL_ports port 443 acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 # https acl Safe_ports port 70 # gopher acl Safe_ports port 210 # wais acl Safe_ports port 1025-65535 # unregistered ports acl Safe_ports port 280 # http-mgmt acl Safe_ports port 488 # gss-http acl Safe_ports port 591 # filemaker acl Safe_ports port 777 # multiling http acl CONNECT method CONNECT acl our_sites dstdomain yum.opennms.org debian.opennms.org maven.opennms.org repo.opennms.org .mirrors.opennms.org .mirrors.opennms.com acl mirrors src 45.55.163.22/32 acl mirrors src 2604:a880:800:10::60:4001/128 acl mirrors src 104.236.160.233/32 acl mirrors src 2604:a880:1:20::d6:7001/128 acl mirrors src 46.101.6.157/32 acl mirrors src 2a03:b0c0:1:d0::7a:7001/128 acl mirrors src 46.101.211.239/32 acl mirrors src 2a03:b0c0:3:d0::8a:6001/128 http_access deny !Safe_ports #http_access deny CONNECT !SSL_ports http_access deny CONNECT # manager access http_access allow localhost manager http_access deny manager # proxy access http_access allow our_sites http_access allow localhost http_access deny all # peer access icp_access allow mirrors icp_access deny all icp_port 3130 #http_port 80 accel defaultsite=www.mirrors.opennms.org vhost #http_port 8080 accel defaultsite=www.mirrors.opennms.org vhost http_port 3128 accel defaultsite=www.mirrors.opennms.org vhost coredump_dir /var/spool/squid3 client_ip_max_connections 8 # how much to cache/keep minimum_object_size 0 maximum_object_size 600 MB minimum_expiry_time 60 seconds refresh_pattern . 900 80% 604800 cache allow all memory_cache_mode disk cache_peer mirror.internal.opennms.com parent 80 0no-query originserver name=myAccel cache_peer_access myAccel allow our_sites cache_peer_access myAccel deny all cache_peer ny-1.mirrors.opennms.orgsibling 80 3130 name=ny1 cache_peer sf-1.mirrors.opennms.orgsibling 80 3130 name=sf1 cache_peer uk-1.mirrors.opennms.orgsibling 80 3130 name=uk1 cache_peer de-1.mirrors.opennms.orgsibling 80 3130 name=de1 cache_peer_access ny1 allow all cache_peer_access sf1 allow all cache_peer_access uk1 allow all cache_peer_access de1 allow all cache_dir aufs /var/spool/squid3/cache-small 2000 16 256 min-size=0 max-size=100KB cache_dir aufs /var/spool/squid3/cache-large 14000 16 256 min-size=100KB max-size=600MB # cache 404s for 1 minute negative_ttl 60 seconds ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users