Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mirror selection: Avoid unreliable mirrors #74

Open
nroi opened this issue Sep 26, 2021 · 0 comments
Open

Mirror selection: Avoid unreliable mirrors #74

nroi opened this issue Sep 26, 2021 · 0 comments

Comments

@nroi
Copy link
Owner

nroi commented Sep 26, 2021

The official mirror endpoint (https://archlinux.org/mirrors/status/json/) provides the completion_pct property: If a status check hasn't succeeded in the past, the completion_pct is smaller than 1. We should use this information to avoid selecting unreliable mirrors.

Currently, we are already using the score attribute, which is calculated using the completion_pct and other attributes: As stated on https://archlinux.org/mirrors/status/:

Mirror Score: A very rough calculation for ranking mirrors. It is currently calculated as (hours delay + average duration + standard deviation) / completion percentage. Lower is better.

The problem is that this score does not punish unreliable mirrors as much as it should. For example, suppose two mirrors have the exact same values for hours delay, average duration and standard deviation, but one mirror has a completion percentage of 1, the other mirror has a completion percentage of 0.5. This means the less reliable mirror will only have a score twice as large as the more reliable mirror.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant