[ILUG] Yum cache server?
Conor Daly
conor.daly_ilug at cod.homelinux.org
Thu Mar 29 09:20:34 IST 2007
On Wed, Mar 28, 2007 at 05:47:17PM +0100 or so it is rumoured hereabouts,
Conor Daly thought:
> On Wed, Mar 28, 2007 at 01:39:34PM +0100 or so it is rumoured hereabouts,
> Thomas Pedoussaut thought:
> > Proinnsias Breathnach wrote:
> > >On Wed, Mar 28, 2007 at 01:27:35PM +0100, Conor Daly wrote:
> > >
> > >>currently run squid on that but I don't think it will cache big stuff like
> > >>rpm packages nor keep them around long enough. I could run a yum mirror
> > >>but, AFAICT, this requires mirroring all packages while I just want to
> > >>mirror those packages that my update downloads. There is yam but that
> > >>appears to mirror everything.
> > >>
> > >>Any thoughts?
> > >>
> > >>
> > >
> > >Squid has a max object size parameter in the config files, make it big,
> > >50 to 100MB should cover most RPMs ?
>
> So, two entries to modify:
>
> maximum_object_size 102400 KB
>
> refresh_pattern .rpm$ 28800 60% 100800
> refresh_pattern .deb$ 28800 60% 100800
>
> and a bit of hacking on $http_proxy on the various machines...
Oh, and a modification of the max disk space parameter for cache_dir.
Given that it was set to 100Mb, a single object of max size would fill the
cache!...
cache_dir diskd /path/to/squid 1000 16 256 Q1=64 Q2=72
Conor
--
Conor Daly <conor.daly at cod.homelinux.org>
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/G/S/O d+(-) s:+ a+ C++(+) UL++++ US++ P>++ L+++>++++ E--- W++ !N
PS+ PE Y+ PGP? tv(-) b+++(+) G e+++(*) h-- r+++ z++++
------END GEEK CODE BLOCK------
http://www.geekcode.com/ http://www.ebb.org/ungeek/
More information about the ILUG
mailing list