Instant Mirror Status...?
Les Mikesell
lesmikesell at gmail.com
Mon Sep 22 23:05:35 UTC 2008
Arthur Pemberton wrote:
> On Mon, Sep 22, 2008 at 12:36 PM, Gregory Maxwell <gmaxwell at gmail.com> wrote:
>> On Mon, Sep 22, 2008 at 12:58 PM, Les Mikesell <lesmikesell at gmail.com> wrote:
>>> Is there still no way to make yum default to behaving intelligently by
>>> itself in the presence of a caching proxy? All it really needs to do is use
>>> the same mirror as the last person chose so the URLs will match.
>> How would it know?
>
>
> Well unless its a transparent proxy, yum.conf will have the proxy variable set.
Or you might have http_proxy set in the environment. Normally a proxy
will add headers to the response - the hard part is knowing which server
from a mirrorlist has the URL's already cached. If there is no way to
compute a first choice based on a hash of something like the proxy
server name from the header when you request the mirrorlist, it might be
worth having a central server somewhere that could coordinate things. A
quick database hit seems like a reasonable tradeoff for a huge reduction
in mirror server bandwidth. Or an external server that could see the IP
address of the proxy could pick a first choice from the mirrorlist based
on that without storing anything.
--
Les Mikesell
lesmikesell at gmail.com
More information about the fedora-devel-list
mailing list