On Mon, May 19, 2008 at 12:57 PM, Sankarshan Mukhopadhyay
<foss.mailinglists(a)gmail.com> wrote:
Ok, so something seems to be not working here.
The list at
http://mirrors.fedoraproject.org/publiclist/Fedora/9/i386/ lists
IIT-M and NITH
Yet, I don't seem to be falling back on IIT-M if NITH times out, I land up
with some .jp servers.
_From fedora-infrastructure _
Mirrormanager works like this:
[quote]
Right now, it collects various lists of Hosts to return (same
netblock, same country, same continent, global). It shuffles (python
random.shufle()) each of
the lists, then concatenates them, and sends that result to the end
user. However, this does not take into account that one mirror has a
45Mbps link, and another a 2Mbps; they would each get chosen
"randomly".
What I need is a replacement for random.shuffle() that takes a list of
tuples: (something, weight). And returns a list of somethings that
was generated with a statistical sampling based on weight.
[/quote]
--
Regards,
Susmit.
=============================================
ssh
0x86DD170A
http://www.fedoraproject.org/wiki/SusmitShannigrahi
=============================================