Package: debian-edu-config Severity: important Hi,
we have deployed a new Debian Edu site here in Northern Germany. While doing so, we realized that the squid defaults in Debian Edu are not optimal for caching DEB packages.
I have adapted the Debian Edu squid.conf on TJENER with the below changes. This results in a tremendous speed improvement regarding the package download when installing multiple systems in one go via the Debian Edu PXE installer.
IMHO we should adapt our squid.conf. Note: these changes have been taken from the squid-deb-proxy package. Another option would be to implement support for squid-deb-proxy on a Debian Edu site.
Please review and give feedback. Thanks, Mike ``` diff --git a/squid/squid-debian-edu.conf b/squid/squid-debian-edu.conf index 58828e2..4e6437a 100644 --- a/squid/squid-debian-edu.conf +++ b/squid/squid-debian-edu.conf @@ -63,3 +63,27 @@ append_domain .intern # dynamically updated using # /usr/share/debian-edu-config/tools/squid-update-cachedir cache_dir ufs /var/spool/squid 11483 16 256 + +# we need a big cache, some debs are huge +maximum_object_size 512 MB + +# tweaks to speed things up +cache_mem 200 MB +maximum_object_size_in_memory 10240 KB + +# refresh pattern for debs and udebs +refresh_pattern deb$ 129600 100% 129600 +refresh_pattern udeb$ 129600 100% 129600 +refresh_pattern tar.gz$ 129600 100% 129600 +refresh_pattern tar.xz$ 129600 100% 129600 +refresh_pattern tar.bz2$ 129600 100% 129600 + +# always refresh Packages and Release files +refresh_pattern \/(Packages|Sources)(|\.bz2|\.gz|\.xz)$ 0 0% 0 refresh-ims +refresh_pattern \/Release(|\.gpg)$ 0 0% 0 refresh-ims +refresh_pattern \/InRelease$ 0 0% 0 refresh-ims +refresh_pattern \/(Translation-.*)(|\.bz2|\.gz|\.xz)$ 0 0% 0 refresh-ims + +# handle meta-release and changelogs.ubuntu.com special +# (fine to have this on debian too) +refresh_pattern changelogs.ubuntu.com\/.* 0 1% 1 ``` -- DAS-NETZWERKTEAM mike gabriel, herweg 7, 24357 fleckeby mobile: +49 (1520) 1976 148 landline: +49 (4354) 8390 139 GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22 0782 9AF4 6B30 2577 1B31 mail: mike.gabr...@das-netzwerkteam.de, http://das-netzwerkteam.de
pgpGTG6Wtr2Gc.pgp
Description: Digitale PGP-Signatur