[Yum-devel] Fastest mirror selection plugin

seth vidal skvidal at phy.duke.edu
Sun Nov 27 22:29:11 UTC 2005


On Sun, 2005-11-27 at 19:52 +0200, Panu Matilainen wrote:
> 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
> 

here is my only question and I think everyone will agree this is makes
sense:

 should fastest mirror + mirrorlist caching be in a plugin or merged
into base functionality?

or should it be split up a bit so that the mirrorlist caching is in base
and fastest-mirror sorting is still a plugin.


Thoughts?
-sv





More information about the Yum-devel mailing list