Mailinglist Archive: opensuse-bugs (4067 mails)

< Previous Next >
[Bug 691685] Using a webcache (such as squid) during installation doesn't work

https://bugzilla.novell.com/show_bug.cgi?id=691685

https://bugzilla.novell.com/show_bug.cgi?id=691685#c1


Bernhard Wiedemann <bwiedemann@xxxxxxxxxx> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |bwiedemann@xxxxxxxxxx

--- Comment #1 from Bernhard Wiedemann <bwiedemann@xxxxxxxxxx> 2011-08-20
09:50:19 CEST ---
I hit the same problem when I first ran my automated install tests in 2010.
The core reason for the many cache misses is that the mirrorbrain redirector on
download.opensuse.org redirects requests for the same URL to different mirror
locations.

I did workaround this by using one single mirror as source (which had its own
problems like inconsistent state of factory).

One better solution would be to mark the mirrorbrain redirection responses
cachable for a certain time.

Steps To Reproduce:
run several times
curl -I
http://download.opensuse.org/distribution/11.4/repo/oss/suse/i586/ImageMagick-6.6.5.8-7.3.i586.rpm
notice the different Location strings in the output

Example:
HTTP/1.1 302 Found
Date: Sat, 20 Aug 2011 07:37:01 GMT
Server: Apache/2.2.10 (Linux/SUSE)
X-MirrorBrain-Mirror: anorien.csc.warwick.ac.uk
X-MirrorBrain-Realm: country
Location:
http://anorien.csc.warwick.ac.uk/mirrors/download.opensuse.org/distribution/11.4/repo/oss/suse/i586/ImageMagick-6.6.5.8-7.3.i586.rpm
Content-Type: text/html; charset=iso-8859-1

For IPv4 access, results do not differ here, though, so running two installs in
parallel could use the cache.



Of course, you also have to configure your squid correctly. e.g.
maximum_object_size 400000 KB
cache_dir ufs /var/spool/squid 20000 16 256
refresh_pattern \.rpm$ 999999 100% 999999 reload-into-ims

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >