[Yum-devel] Fastest mirror selection plugin
Matthew Miller
mattdm at mattdm.org
Tue Nov 29 17:22:24 UTC 2005
On Tue, Nov 29, 2005 at 10:15:59AM -0700, Michael Stenner wrote:
> > Would be nice, but how do you measure the time with url operations: I
> > guess you could grab 1 byte of "something" and time that, but what if the
> > server doesn't support byte ranges? Those would get penalized pretty
> > badly... but hey, maybe that's for a good reason ;)
> Well, you could use urlopen, which opens a connection but doesn't
> actually read anything. The problem is that you still need to give a
> file to ask for. I think that's the same with any proxy operation,
> though. You'll need to ask for some file.
But would you be able to tell anything meaningful about the speed that way?
Maybe the easiest thing to do is just define the plugin as not working if
there's a proxy, and automatically disable itself in that case. If your
systems are going through a proxy, you 1) are already modifying the yum
config (right?) and 2) you probably want to set the repo by hand so all
systems are hitting the same one so you can cache efficiently.
--
Matthew Miller mattdm at mattdm.org <http://mattdm.org/>
Boston University Linux ------> <http://linux.bu.edu/>
More information about the Yum-devel
mailing list