Gentoo Archives: gentoo-dev

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] rsync mirrorstats page (generation and parsing)
Date: Sun, 05 Jul 2009 01:49:02
Message-Id: 20090705014855.GA18683@orbis-terrarum.net
In Reply to: [gentoo-dev] mirrorselect: request for extraction of class MirrorParser by Sebastian Pipping
1 On Sun, Jul 05, 2009 at 02:44:07AM +0200, Sebastian Pipping wrote:
2 > When collecting information on the SYNC variable for my Summer of Code
3 > gentoo stats project I'd like to check if the URL in SYNC is publically
4 > known or some private/secret rsync mirror. The page behind
5 > http://mirrorstats.gentoo.org/rsync/
6 Mirrorstats is known to be out of date, because somebody needs to sit
7 down and integrate it with the datasources, so manual updates aren't
8 needed. Even better, would be hooking it into bouncer2 for the sentry
9 output.
10
11 It needs somebody to update it and hook at into the SOURCE of this data:
12 http://www.gentoo.org/main/en/mirrors3.xml
13
14 But wait, you say, that page is distfiles mirrors? Mirror-admin have a
15 common data source, non-published as it contains private contact details
16 for each administrator. From that data source, mirrors3 and rsync
17 mirrors gets updated.
18
19 mirrors.xml - old page, only used by mirrorselect now, manually updated.
20 mirrors3.xml - new page, generated from internal dataset.
21 mirrors2.xml - not a real page (See
22 http://www.gentoo.org/main/en/mirrors2.xml?passthru=1 and the magic
23 <mirrorlist> element.
24
25 Relatedly, the original author of mirrorselect retired from Gentoo
26 several years ago. The tools-portage team maintain it now, so you should
27 co-operate with them. It would be nice if they implemented the mirrors3
28 usage too, I think mirror-admin asked them more than a year ago, but I
29 can't find the bug.
30
31 In the meantime, for your original question:
32 > is the URL in SYNC public or private
33 Simply check by matching against gentoo.org$ in the hostname part of the
34 field.
35
36 P.S. Please report empty SYNC variables too ;-). These turn up when
37 users/devs have their tree coming from a VCS instead of rsync.
38
39 --
40 Robin Hugh Johnson
41 Gentoo Linux Developer & Infra Guy
42 E-Mail : robbat2@g.o
43 GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85

Replies

Subject Author
Re: [gentoo-dev] rsync mirrorstats page (generation and parsing) Sebastian Pipping <webmaster@××××××××.org>
Re: [gentoo-dev] rsync mirrorstats page (generation and parsing) Alec Warner <antarus@g.o>