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

Log the suggested mirrors for download #321

Open
garethjevans opened this issue Apr 13, 2021 · 5 comments
Open

Log the suggested mirrors for download #321

garethjevans opened this issue Apr 13, 2021 · 5 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@garethjevans
Copy link
Contributor

Feature Request

We often get reports of plugins that fail to download, and from running the install process in --verbose mode we can see where it has attempted to download a plugin from - this is often surprising as builds taking place in the US often appear to be redirected to EU/Japan.

Could we enhance the log output to show the recommended download location and all the extra "links", like a log representation of the ?mirrorlist endpoint.

@timja timja added the help wanted Extra attention is needed label Apr 13, 2021
@oleg-nenashev oleg-nenashev added the enhancement New feature or request label Apr 13, 2021
@eugenelesnov
Copy link
Contributor

Hello, everyone
I'd like to resolve this issue, but there's a question

How can I get the mirror list ? Is this ?mirrorlist endpoint already exist?

@oleg-nenashev
Copy link
Member

Better late than never. Yes, get.jenkins.io provides mirror stats for any download URL.
E.g. https://get.jenkins.io/war/2.316/jenkins.war?mirrorstats

@eugenelesnov
Copy link
Contributor

Haha, I got it. Thanks :)

@d-saravanan
Copy link

Hi @oleg-nenashev
I see that the mirrorstats for plugins are same, can we get the sites from the mirrorstats endpoint and store it and print in logs for this issue. I am willing to take up this task. Please let me know if this approach is fine

@MarkEWaite
Copy link
Contributor

MarkEWaite commented Oct 15, 2023

Hi @oleg-nenashev I see that the mirrorstats for plugins are same, can we get the sites from the mirrorstats endpoint and store it and print in logs for this issue. I am willing to take up this task. Please let me know if this approach is fine

I believe that the reason @garethjevans recommended mirrorlist rather than mirrorstats is because mirrorlist reports the priority of the mirror for the user. The mirrorstats page shows the data transfer volume but does not give any indication of the priority of each download site for that user.

For comparison, look at the mirrorlist pages:

The mirrorstats page does not include the mirror priority

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

6 participants