InstantMirror needs a rethink

Nicolas Mailhot nicolas.mailhot at laposte.net
Sun Jan 27 17:40:03 UTC 2008


Le dimanche 27 janvier 2008 à 11:11 -0600, Les Mikesell a écrit :

> Yum can/does use an http proxy if you either explicitly configure it or 
> export http_proxy=http://my_proxy:port in the environment.  However the 
> default mirrorlist behavior will randomize the URLs so different 
> machines behind the proxy will make different requests that will be 
> cached but not reused.

This particular bit could be solved by replacing the current mirrorlist
interface
http://mirrors.fedoraproject.org/mirrorlist?repo=rawhide&arch=$basearch

with REST-like URLs (using redirects in Apache, whatever)
http://mirrors.fedoraproject.org/mirrorlist/rawhide/$basearch

In the first case the proxy knows the mirrorlist is dynamic and won't
cache it (causing different clients in the network to use different
mirrors)

In the second case it will cache it as any other static page, directing
every client behind the proxy to the same source.

Bonus points for figuring what is the right expire value to send with
those pages to control proxy source balancing. 

Regards,

-- 
Nicolas Mailhot
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Ceci est une partie de message num?riquement sign?e
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20080127/c427c5be/attachment.sig>


More information about the fedora-devel-list mailing list