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

Provide option to make a mirror globally available #194

Open
adrianreber opened this issue Oct 18, 2016 · 7 comments
Open

Provide option to make a mirror globally available #194

adrianreber opened this issue Oct 18, 2016 · 7 comments

Comments

@adrianreber
Copy link
Member

A new option to mark a mirror globally available would help in cases where not many mirrors are available like: https://pagure.io/fedora-infrastructure/issue/5528

If the master mirror would be marked as 'global' with a low priority there would always be a least one mirror which is up to date. Having a low priority local mirrors would be used before contacting the master mirror. Also, in case of important updates at least one mirror with the correct repomd.xml checksum would be available.

This could also help to use mirrors which are based on anycast as we currently have no way to use anycast mirrors with our crawler/continent/country setup.

@adrianreber
Copy link
Member Author

This option should be admin only.

@adrianreber
Copy link
Member Author

There is already support in the mirrorlist server to extent the result with mirrors from the global list if less than 3 mirrors are returned.

I will increase this from 3 to 5 and make it configurable from the command-line if it needs to be changed in the future.

@adrianreber
Copy link
Member Author

PR #199 offers a work around.

An option to add certain mirrors to all mirrorlist/metalink results would still be helpful. This requires changes in the web-frontend, pkl creation and mirrorlist.

@mdomsch
Copy link
Contributor

mdomsch commented Feb 1, 2017

In the past we've used a low bandwidth value, combined with the 'always_up2date' flag on the mirror category, to make sure the Fedora-owned public-facing servers appeared at the end of the mirrorlist as a mirror of last resort.

@adrianreber
Copy link
Member Author

@mdomsch are you sure? The mirrorlist_server.py code has not change much since you wrote it and I have not found the place where 'always_up2date' mirrors are added to the mirrorlist.

The master mirror is still marked as 'always_up2date' but I only see it on 'country=global' and 'country=us' mirrorlists.

@mdomsch
Copy link
Contributor

mdomsch commented Feb 1, 2017 via email

@adrianreber
Copy link
Member Author

Thanks. I see it in the old and in the new code but the new code does not include it in the results.

RPM Fusion uses the old backend code (for pkl generation) and the new mirrorlist servers but the always_up2date flag is not used. I could test it there to see how it works.

Anyway, good to know that this is an additional meaning of the 'always_up2date' flag.

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