[Yum] Debugging mirror selection

Zdenek Pavlas zpavlas at redhat.com
Fri Nov 16 14:26:50 UTC 2012


> Fedora's mirrormanager is returning it (and only it) at pref 100
> in the metalink file.

mirrormanager order and prefs are used only initially, then
their previously measured download speeds are used.

> For example, it'll pull repomd.xml and foo-primary.sqlite.bz2 from my
> mirror, but then (for no apparent reason, no error logged) it'll
> fetch foo-primary.sqlite.bz2 from another mirror.

Was the repomd.xml DL slow?  It might have decreased the rank
of 1st mirror below that of the 2nd one..

Also, maybe Yum hasn't yet used the 2nd mirror, so there's 
no information available, so Yum assumes it's at DEFAULT_SPEED=1MBps.

If your 1st mirror is slower, 2nd one is used, then 3rd..
Of course, if they're slower, they are used only once.

> What can I do to fix this?

There's a special handling of private="True" mirrors.  Yum always
prefers such mirrors, regardless of their speed..

Maybe preference="100" could imply private mirror, too.

Other possibility is to let users configure the DEFAULT_SPEED
to some smaller value than 1M.  As long as the fastest available
mirrors are faster than this, Yum should not ever try other one.

More information about the Yum mailing list