Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 585012

Summary: [PATCH] Add new FEATURE for GENTOO_MIRRORS shuffle
Product: Portage Development Reporter: Ashish Gupta <ashmew2>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: UNCONFIRMED ---    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 377365    
Attachments: PATCH for adding feature

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.