[Yum-devel] Fastest mirror selection plugin
Panu Matilainen
pmatilai at laiskiainen.org
Sun Nov 27 17:52:31 UTC 2005
On Thu, 2005-11-17 at 04:59 -0500, Luke Macken wrote:
> | Next thing I have in mind wrt this is to add persistance - calculate the
> | mirrors once and store them someplace and only recalculate every now and
> | then, a simple approach would be "if the mirrorlist is older than a day or
> | week" or something. Another thing I thought about is recalculate when
> | network mask changes: desktops and servers typically don't much move
> | around but a laptop can move around a lot and affect the optimal mirror
> | selection.
>
> Not a bad idea. I might try and hack something together this week that
> talks with NetworkManager and stores the current location and mirrorlist
> locally.
Here's a quick-n-dirty version which after initial timings stores the
host timings into a file and populates timedhosts from that on
consecutive runs, certainly makes a big difference.
http://laiskiainen.org/yum/plugins/fastestmirror/fastestmirror-persistent.py
- Panu -
More information about the Yum-devel
mailing list