[Yum-devel] [PATCH] Sort mirrors using TH statistics.

Zdenek Pavlas zpavlas at redhat.com
Thu Oct 11 12:51:23 UTC 2012


>  ACK. Do you think it's wroth obsoleting the fastestmirror plugin
>  now?

We should either obsolete it, or improve TH+FM interaction, but that
would require some FM plugin patching.  Now urlgrabber can't tell:

- whether the mirror list is sorted by metalinker or by FM plugin.
- how large are the actual mirror latencies? which mirrors timed out?
- how long ago the mirrors were pinged?

TH profiling alone works badly when the mirror list contains lots
if slow mirrors, and even the fastest ones (near the top of the
list, these are used first) are still slower than default_speed.
In this case unknown == default == best, and if there are 100+
mirrors.. it takes some time before settling down.

A 20ms mirror is not necessarily better than a 30ms mirror, but
large latencies or timeouts could be used as a useful hint.


More information about the Yum-devel mailing list