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

[HELP] rate-mirrors Yields 1 mirror that is not working #56

Closed
mefinity opened this issue Jan 18, 2024 · 3 comments
Closed

[HELP] rate-mirrors Yields 1 mirror that is not working #56

mefinity opened this issue Jan 18, 2024 · 3 comments

Comments

@mefinity
Copy link

Output:

# STARTED AT: 2024-01-18 16:53:03.012019214 +07:00
# ARGS: rate-mirrors --save=/tmp/tmp.s9NL7nn0o3 arch --max-delay=2000
# FETCHED MIRRORS: 1166
# MIRRORS LEFT AFTER FILTERING: 1
# JUMP #1
# EXPLORING US
# VISITED US
#     + NEIGHBOR TH (by HubsFirst)
# [TH] FAILED TO CONNECT TO https://mirror.cyberbits.asia/archlinux/extra/os/x86_64/extra.files
# BLANK ITERATION
# COUNTRY JUMPING YIELDED TOO FEW MIRRORS (0), ADDING OTHERS TO UNLABELED
# 

# NO RESULTS TO RE-TEST
# ==== FAILED TO TEST SPEEDS, RETURNING UNTESTED MIRRORS ====
Server = https://mirror.cyberbits.asia/archlinux/$repo/os/$arch

I would like to know what is going on here ^^"

@westandskif
Copy link
Owner

I've just checked: only 2 mirrors out of 1166 are fully synced (mirrors status says), that's why in your case there was just 1 mirror left after filtering by "completion percentage", hence all mirrors were returned untested.

    {
      "url": "https://mirror.cyberbits.asia/archlinux/",
      "protocol": "https",
      "last_sync": "2024-01-18T10:18:01Z",
      "completion_pct": 1.0,
      "delay": 149,
      "duration_avg": 0.6746770143508911,
      "duration_stddev": 0.23158727634829876,
      "score": 0.9476531795880788,
      "active": true,
      "country": "Thailand",
      "country_code": "TH",
      "isos": true,
      "ipv4": false,
      "ipv6": true,
      "details": "https://archlinux.org/mirrors/cyberbits.asia/1564/"
    },
    {
      "url": "rsync://rsync.cyberbits.asia/archlinux/",
      "protocol": "rsync",
      "last_sync": "2024-01-18T10:18:01Z",
      "completion_pct": 1.0,
      "delay": 147,
      "duration_avg": 5.228653024072233,
      "duration_stddev": 2.8162013314769307,
      "score": 8.085687688882498,
      "active": true,
      "country": "Thailand",
      "country_code": "TH",
      "isos": true,
      "ipv4": false,
      "ipv6": true,
      "details": "https://archlinux.org/mirrors/cyberbits.asia/1565/"
    },

See completion_pct

@westandskif
Copy link
Owner

westandskif commented Jan 18, 2024

e.g. rate-mirrors arch --completion=0.95 works fine, but it rates mirrors, which haven't completed syncing (default behavior is to filter such ones out -- see the algorithm in the README)

or via the env variable RATE_MIRRORS_COMPLETION=0.95 rate-mirrors arch

@mefinity
Copy link
Author

Thanks for the explanation ^^
I shouldve checked the mirror status

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

2 participants