Bug 1064456

Summary: Select mirrors by speed instead of latency
Product: [openSUSE] openSUSE Tumbleweed Reporter: Forgotten User eOA_NEd069 <forgotten_eOA_NEd069>
Component: libzyppAssignee: E-mail List <zypp-maintainers>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Enhancement    
Priority: P5 - None CC: astieger
Version: Current   
Target Milestone: ---   
Hardware: All   
OS: SUSE Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Forgotten User eOA_NEd069 2017-10-20 14:19:10 UTC
User-Agent:       Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0
Build Identifier: 

Currently, OpenSUSE automatically selects mirrors via latency instead of speed. While it makes sense in theory, low latency does not always mean high download speed. Distros like Arch use the rankmirrors script to sort mirrors by speed, and Linux Mint includes a utility to select Mint and Ubuntu mirrors based on speed. Users looking for faster download speeds would benefit from a utility like this in YaST.

Reproducible: Always

Actual Results:  
N/A


N/A
Comment 1 Andreas Stieger 2017-10-20 16:06:29 UTC
Are you sure about the latency thing? I do not think that zypper/libzypp does much in terms of mirror selection, because it pretty much follows HTTP redirects from download.opensuse.org which runs mirrorbrain. Mirrorbrain, in turn, only sees the client IP address and can redirect based on network proximity to the mirror, country and continent.
Comment 2 Michael Andres 2017-10-23 10:05:10 UTC
This is IMO not about mirror selection in libzypp at runtime. Scripts like 'rankmirrors' AFAIK just create a static mirrorlist file which is then used to access the repo rather than following redirects/metalink-files we get from download.suse.de.

In the .repo file you'd set the 'mirrorlist=' rather than a 'baseurl=' then:

> [openSUSE:repo-oss]
> name=repo-oss (42.3)
> #baseurl=http://download.opensuse.org/distribution/leap/42.3/repo/oss
> mirrorlist=dir:/tmp/mirrorlist-repo-oss


But libzypp itself won't offer/maintain such a script. If something like this is desired, one should raise the issue on the openSUSE mailing list (or check https://mirrors.opensuse.org/). Maybe scripts like this already exist.