Suggestion how to enable caching

David Caro dcaroest at redhat.com
Fri Jan 16 10:29:34 UTC 2015


On 01/14, Fabian Deutsch wrote:
> ----- Original Message -----
> > I wonder if we'll really need this on each and every builder.
> > Wouldn't one central squid VM suffice?
> > It could indeed be useful, also for caching packages pulled by yum.
> 
> One central caching instamnces also makes sense, as logn as tit shares the
> same network with the builders.


I started working on that, but had no time to set it up yet, I created
the vm proxy-phx-ovirt-org and started playing with puppet modules for
squid but still have to finish it.


> 
> - fabian
> 
> > Barak.
> > 
> > ----- Original Message -----
> > > From: "Fabian Deutsch" <fdeutsch at redhat.com>
> > > To: "infra" <infra at ovirt.org>
> > > Sent: Wednesday, August 13, 2014 2:54:40 PM
> > > Subject: Suggestion how to enable caching
> > > 
> > > Hey.
> > > 
> > > A couple of weeks ago I wrote about how I used squid to improve the build
> > > speed of images.
> > > 
> > > I think the minimal, easy to maintain and valuable solution is this simple
> > > config:
> > > 
> > > 1. Setup squid on builders (default install on Fedora)
> > > 2. Add the following lines to the /etc/squid.conf
> > > 
> > > # Increase maximum size of cached objects and specify the cache_dir
> > > # REMEMBER the ORDER
> > > maximum_object_size 5 GB
> > > cache_dir ufs /var/spool/squid 20000 16 256
> > > 
> > > 3. Enable and start squid service
> > > 
> > > The service will only listen to connections from local networks, and will
> > > not
> > > proxy connections from public addresses.
> > > 
> > > The usage then is as follows:
> > > 
> > > Export http_proxy=127.0.0.1:3128 and all curl instances will pick up the
> > > proxy.
> > > Similar parameters exist for other tools like the livemedia-creator too.
> > > 
> > > I am not familiar with writing a puppet class for this. But at least it is
> > > quite self contained.
> > > 
> > > Thoughts?
> > > 
> > > Geetings
> > > fabian
> > > _______________________________________________
> > > Infra mailing list
> > > Infra at ovirt.org
> > > http://lists.ovirt.org/mailman/listinfo/infra
> > > 
> > _______________________________________________
> > Infra mailing list
> > Infra at ovirt.org
> > http://lists.ovirt.org/mailman/listinfo/infra
> > 
> _______________________________________________
> Infra mailing list
> Infra at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/infra

-- 
David Caro

Red Hat S.L.
Continuous Integration Engineer - EMEA ENG Virtualization R&D

Tel.: +420 532 294 605
Email: dcaro at redhat.com
Web: www.redhat.com
RHT Global #: 82-62605
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://lists.ovirt.org/pipermail/infra/attachments/20150116/00538b90/attachment.sig>


More information about the Infra mailing list