Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 585012 - [PATCH] Add new FEATURE for GENTOO_MIRRORS shuffle
Summary: [PATCH] Add new FEATURE for GENTOO_MIRRORS shuffle
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 377365
  Show dependency tree
 
Reported: 2016-06-04 12:09 UTC by Ashish Gupta
Modified: 2016-07-07 16:15 UTC (History)
0 users

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


Attachments
PATCH for adding feature (0001-Add-gentoo-mirrors-shuffle-FEATURE-to-Portage.patch,2.06 KB, patch)
2016-06-04 12:09 UTC, Ashish Gupta
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ashish Gupta 2016-06-04 12:09:34 UTC
Created attachment 436422 [details, diff]
PATCH for adding feature

Currently, the mirrors defined in GENTOO_MIRRORS are used in the order they
appear in the configuration file (make.conf). In order to split the load of
downloading packages across all listed mirrors more fairly than just using
the first mirror, "gentoo-mirrors-shuffle" FEATURE can be enabled. 

This is added as a FEATURE and not a preset because the mirror ordering might be
important for some users of Portage. Also, the changes are so that the local mirrors added by a user are not affected and are still preferred over WAN mirrors (thanks zmedico!)

This will also help relay the download requests to several mirrors when using
parallel fetch reducing the chances of speed capping from the mirror, hence making it truly parallel.

Please suggest any more fixes or suggestions that you have, I will make all necessary changes.

Thanks
Comment 1 Zac Medico gentoo-dev 2016-07-07 16:15:20 UTC
Rather than add a new global FEATURES flag, maybe it's better if we bind this to a repos.conf setting, since it's conceivable that a user could have different SRC_URI fetch settings for each repository. A global default setting could be set in the [DEFAULT] section of repos.conf.