[Yum-devel] Fastest mirror selection plugin
Panu Matilainen
pmatilai at laiskiainen.org
Wed Nov 16 21:11:47 UTC 2005
On Fri, 2005-08-12 at 02:33 -0400, Luke Macken wrote:
> Hi,
>
> I put together a yum plugin that hooks into the predownload slot and
> sorts the repo's mirrorlist by connection speed. The initial concept
> of the mirror selection algorithm was taken from the fastest_cvsup[1]
> project, which seems to be very fast (after multi-threading it) and
> pretty reliable.
>
> http://people.redhat.com/lmacken/fastestmirror.py
Here's another variant of the plugin - this one figures out the fastest
mirrors before metadata download which makes quite a difference
especially on large updates:
http://laiskiainen.org/yum/plugins/fastestmirror/fastestmirror-meta.py
I guess access to the global timedhosts variable should be protected by
locks... at work I use a nonthreaded version of the plugin because of
weird problems with threads in kickstart %post so that hasn't been an
issue.
- Panu -
More information about the Yum-devel
mailing list