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

Preference/Score API for mirrorz frontend #9

Open
ZenithalHourlyRate opened this issue Apr 4, 2023 · 1 comment
Open

Preference/Score API for mirrorz frontend #9

ZenithalHourlyRate opened this issue Apr 4, 2023 · 1 comment

Comments

@ZenithalHourlyRate
Copy link
Contributor

mirrorz-302 can give a preference list for users, that could be displayed in the frontend and guide them on selecting mirror site.

More specifically, the score in mirrorz-302 should be exposed in some /api/scores/

{
  "TUNA": { "GEO": 1, "ISP": 1, "CIDR": 24, "Delta": -1433 },
  "BFSU": { "GEO": 2, "ISP": 0, "CIDR": 0, "Delta": -143 },
}

The order of the keys are sorted according to the preference.

Then in mirrors.cernet.edu.cn/site, the mirror sites should be sorted according to that, each with different labels.

  • Geographically close (地理较近)
  • same ISP(相同运营商)
  • CIDR matches (相邻子网)
  • Lastest update (同步最新)

Then users can select according to these labels.

For /list/archlinux, we could also provide a /api/scores/archlinux/ so that specific list could also be sorted.

Future work

When we have mirrorz-statistics, we can add other labels like No load(负载较小)/Heavy load(流量饱和)

@ZenithalHourlyRate
Copy link
Contributor Author

Done for /site

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