Mailinglist Archive: opensuse-bugs (4067 mails)

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

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 redirects requests for the same URL to different mirror

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
notice the different Location strings in the output

HTTP/1.1 302 Found
Date: Sat, 20 Aug 2011 07:37:01 GMT
Server: Apache/2.2.10 (Linux/SUSE)
X-MirrorBrain-Realm: country
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:
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >