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

Add add-mirrors endpoint on mirrorbrain #322

Open
rgaudin opened this issue Dec 6, 2024 · 0 comments
Open

Add add-mirrors endpoint on mirrorbrain #322

rgaudin opened this issue Dec 6, 2024 · 0 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@rgaudin
Copy link
Member

rgaudin commented Dec 6, 2024

With our current mirrbrain configuration, there's no easy way to know which mirror holds a copy of a certain file. We used to rely on ?mirrorlist endpoint because all our mirrors were able to serve all clients.

Now that it's not the case, ?mirrorlist only lists the mirrors that can serve the client calling. That means it excludes all the [region|country|as]-only which doesn't match the calling client.

There is no other endpoint providing this information. Information is in the DB though.

Because it's very useful to have access to this information (and because we tend to forget that ?mirrorlist is not reliable anymore and panic), we could create such an endpoint.

I didn't create this on mirrorbrain repo because the motive is purely ops-related but the simplest way to do it is probably to tweak the mod_mirrobrain to send it. Saves us the trouble of deployment and connecting to the DB (but it's in C).

@rgaudin rgaudin added enhancement New feature or request question Further information is requested labels Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant