Hi all ¡

 

Has somebody already noticed that the Uyuni Squid just does not seems to cache the *.deb packages ?

 

A simple test downloading several times in a raw from an Ubuntu registered server a 91KB package size ends up with a TCP_MISS:

 

10.264    242 127.0.0.1 TCP_MISS/200 91356 GET http://proxy_uyuni /rhn/manager/download/ubuntu-1804-amd64-main-security-uyuni/getPackage/gzip_1.6-5ubuntu1.2.amd64-deb.deb - HIER_DIRECT/10.206.29.108 application/octet-stream

1650464072.536    310 127.0.0.1 TCP_MISS/200 91356 GET http://proxy_uyuni /rhn/manager/download/ubuntu-1804-amd64-main-security-uyuni/getPackage/gzip_1.6-5ubuntu1.2.amd64-deb.deb - HIER_DIRECT/10.206.29.108 application/octet-stream

1650464272.667    171 127.0.0.1 TCP_MISS/200 91356 GET http://proxy_uyuni /rhn/manager/download/ubuntu-1804-amd64-main-security-uyuni/getPackage/gzip_1.6-5ubuntu1.2.amd64-deb.deb - HIER_DIRECT/10.206.29.108 application/octet-stream

 

Should not be the case from the Squid’s configuration:

 

cache_mem 400 MB

maximum_object_size 200 MB

maximum_object_size_in_memory 1024 KB

# rpm will hardly ever change, force to cache it for very long time

refresh_pattern  \.rpm$  10080 100% 525960 override-expire override-lastmod ignore-reload reload-into-ims

refresh_pattern  \.deb$  10080 100% 525960 override-expire override-lastmod ignore-reload reload-into-ims

refresh_pattern         .               0       100%    525960

 

The RPM are correctly cached it seems:

 

access.log:1650178125.754      0 127.0.0.1 TCP_MEM_HIT/200 154067 GET http://proxy_uyuni/rhn/manager/download/rockylinux8-x86_64/getPackage/1/a69d8873b2131a2322457e26850d9b9a33daf98f2143f648cd418e7fe1aec9ce/psmisc-23.1-5.el8.x86_64.rpm - HIER_NONE/- application/octet-stream

 

Am I missing something here ?

 

Thanks !

 

Philippe.


Philippe Bidault |  Unix Engineer |  Getronics
M. 34617301667 |  E. Philippe.Bidault@Getronics.com |  W. www.getronics.com

Follow us on:

  


Getronics CMC Service Desk Iberia S.L -  VAT No:S.L.: B66686262.
Registered Office - Getronics CMC Service Desk Iberia S.L, C/Rosselloi, Porcel, 21 planta 11, 08016 Barcelona, Spain.
 
The information transmitted is intended only for use by the addressee and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of it, or the taking of any action in reliance upon this information by persons and/or entities other than the intended recipient is prohibited. If you received this in error, please inform the sender and/or addressee immediately and delete the material.  Thank you.

Legal disclaimer: http://www.getronics.com/legal/ and further details of how we treat your personal data can be found in our privacy policy