Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9321 - Randomize mirror
Summary: Randomize mirror
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High enhancement
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
: 14880 16244 25761 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-10-18 17:28 UTC by Daniel Ahlberg (RETIRED)
Modified: 2011-10-30 22:21 UTC (History)
10 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
introduce local mirrors, and shuffle extern mirrors (portage_random_mirror.patch,713 bytes, patch)
2003-08-02 13:30 UTC, Nicolas Kaiser
Details | Diff
... and shuffle third party mirrors as well (portage_random_mirror.patch,1007 bytes, patch)
2003-08-02 17:31 UTC, Nicolas Kaiser
Details | Diff
the same again, a little beautified (random_mirror.patch,971 bytes, patch)
2003-08-04 16:52 UTC, Nicolas Kaiser
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Ahlberg (RETIRED) gentoo-dev 2002-10-18 17:28:25 UTC
I think it would be nice if emerge randomized the mirror to fetch from when
downloading from a SRC_URI mirror://.
Comment 1 Stewart (RETIRED) gentoo-dev 2003-01-31 14:43:58 UTC
I couldn't agree more.

I've noticed that recent versions of Portage do not include a MIRROR directive in /etc/make.conf, period. This is putting undue strain on Ibiblio, and causing much stress amongst users.
Comment 2 SpanKY gentoo-dev 2003-01-31 23:48:55 UTC
*** Bug 14880 has been marked as a duplicate of this bug. ***
Comment 3 Wout Mertens (RETIRED) gentoo-dev 2003-02-06 09:18:27 UTC
I think it would be nicer to have a tool that pings all the mirrors and tries to get an index(http)/dir 
listing(ftp), and then orders them by speed.  
 
Run that every once in a while (forced by portage), and it will automatically even out... 
 
Comment 4 SpanKY gentoo-dev 2003-02-23 20:13:05 UTC
*** Bug 16244 has been marked as a duplicate of this bug. ***
Comment 5 Martin Holzer (RETIRED) gentoo-dev 2003-03-03 17:20:03 UTC
the ping thing doesn't work behind firewalls and/or disabled ping-reply hosts

maybe it could be realized with an option.
Comment 6 SpanKY gentoo-dev 2003-08-02 13:10:51 UTC
*** Bug 25761 has been marked as a duplicate of this bug. ***
Comment 7 Nicolas Kaiser 2003-08-02 13:30:14 UTC
Created attachment 15386 [details, diff]
introduce local mirrors, and shuffle extern mirrors

I think it would be nice to have two priorities of mirrors:
- local, in case you're in a LAN with a distfile mirror. If the distfile isn't
there, or you're not in a LAN,
- extern. IMHO the extern mirrors should be shuffled by default;

So I'd like to propose something like the attached.
Comment 8 Nicolas Kaiser 2003-08-02 17:31:45 UTC
Created attachment 15403 [details, diff]
... and shuffle third party mirrors as well

Third party mirrors should be shuffled as well.
I hope the patch works as advertised.

Cheers,
n.
Comment 9 Nicolas Kaiser 2003-08-04 16:52:48 UTC
Created attachment 15511 [details, diff]
the same again, a little beautified

Lucky me, today I found out that my ISP does its own Gentoo mirror :)
I put this mirror at the end of GENTOO_MIRRORS_LOCAL.
So it is the first extern mirror that gets queried, the rest of them is
shuffled.
Comment 10 Nicolas Kaiser 2003-08-04 16:58:38 UTC
.
Comment 11 Nicholas Jones (RETIRED) gentoo-dev 2003-08-06 01:43:58 UTC
Hmmmm... Nice patch, actually. Short and sweet...

I'm not certain how mirrors would handle the switch in load though.
Secondary mirrors presently taking little of the major load would
be swarmed with requests.

Comment?
Comment 12 Martin Holzer (RETIRED) gentoo-dev 2003-09-09 13:45:07 UTC
2.0.49 does this and i like it :)