[Yum-devel] mirrorlist not working on our own repository
James Antill
james at fedoraproject.org
Wed Dec 9 15:17:59 UTC 2009
On Wed, 2009-12-09 at 22:57 +0800, Thomas Goirand wrote:
> James Antill wrote:
> > The above is in the old mirrorlist format and not in the metalink file
> > format, why have you called it metalink?
> > Yum looks for the string "/metalink" and if present assumes the
> > mirrorlist is in metalink format (this is for compatibility reasons, and
> > can't really be changed).
> > Just change the name if the above to "mirrorlist" and it'll be fine (or
> > use the metalink format, if you want).
>
> Thanks a lot, this indeed works.
>
> Now, one more question. Even if there's one of our mirrors on the same
> subnet, on the same data center, yum uses that mirror on the other side
> of earth. What's the way that yum uses to guess who's the fastest? How
> come yum always picks-up our very slow and far Malaysian mirror, which
> is ftp://601.apt-proxy.gplhost.com ?
>
> Thomas
>
> P?S: I got another question about release schedule of yum for my Debian
> packaging of yum, but I'm posting it on another thread.
With the mirrorlist format, yum starts at the top of the list and works
it's way down if it hits a failure.
With the metalink format, yum sorts by priority and then does some
filtering for http vs. ftp and then works down the list.
You can try yum-plugin-fastestmirror, although I'd personally recommend
just putting the mirrors in the "correct" order server side.
--
James Antill - james at fedoraproject.org
http://yum.baseurl.org/wiki/releases
http://yum.baseurl.org/wiki/whatsnew/3.2.25
http://yum.baseurl.org/wiki/YumMultipleMachineCaching
More information about the Yum-devel
mailing list