Provide an easily parseable list of mirrors and weights from bouncer

RESOLVED FIXED

Status

mozilla.org Graveyard
Server Operations
RESOLVED FIXED
9 years ago
3 years ago

People

(Reporter: gozer, Assigned: chizu)

Tracking

Details

(URL)

(Reporter)

Description

9 years ago
We (MoMo) want to start running our own bouncer, but we don't want to have to duplicate the mirror network configuration. It would be ideal if there was a way I could get at the list of mirrors and their weights somewhere, so I could use to keep my own bouncer DB in sync. I suspect this list doesn't change very often, so could simply be a dump updated daily, or something similar.

I could scrape that information from https://nagios.mozilla.org/sentry/, but that feels somewhat like a kludge.
That'd be a kludge, and it's not something that sentry expects as a requirement, so it could change in the future by accident.
Hardware: x86 → All
(Reporter)

Comment 2

9 years ago
(In reply to comment #1)
> That'd be a kludge, and it's not something that sentry expects as a
> requirement, so it could change in the future by accident.

Absolutely, I only noted I could scrape it, because I realized I could use that as seed data to start running my own instance right away, even if this bug isn't implemented yet.

But that's correct, for this to work, there needs to be a proper source for this data.
(Assignee)

Comment 3

9 years ago
https://nagios.mozilla.org/sentry/csv.cgi
mirror_id, mirror_name, mirror_baseurl, mirror_rating, mirror_active
Assignee: server-ops → thardcastle
Status: NEW → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → FIXED
(Reporter)

Comment 4

9 years ago
Could you start the output with a comment inclusing those fields ?

# mirror_id, mirror_name, mirror_baseurl, mirror_rating, mirror_active

Just so it's self-evident what the data is
(Assignee)

Comment 5

9 years ago
(In reply to comment #4)
> Could you start the output with a comment inclusing those fields ?
> 
> # mirror_id, mirror_name, mirror_baseurl, mirror_rating, mirror_active
> 
> Just so it's self-evident what the data is

Added this.
would it break you if I add a Content-disposition header that specifies a filename?

+print "Content-disposition: attachment; name=mozillamirrors.csv"

Would make it easier for people to download manually with a browser (who wants a file named csv.cgi on their disk that's actually a text file? :)
(Reporter)

Comment 7

9 years ago
(In reply to comment #6)
> would it break you if I add a Content-disposition header that specifies a
> filename?
> 
> +print "Content-disposition: attachment; name=mozillamirrors.csv"

A good idea, works for me.
Product: mozilla.org → mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.