[Systems] What happened to the mirror? (Was [Systems-logs] Cron <root at sunjammer> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly ))

Bernie Innocenti bernie at codewiz.org
Thu Mar 17 23:33:47 EDT 2016


On 03/17/2016 08:58 PM, Samuel Cantero wrote:
> On Thu, Mar 10, 2016 at 11:28 PM, Bernie Innocenti <bernie at codewiz.org
> <mailto:bernie at codewiz.org>> wrote:
> 
>     I was thinking: we've been running without Mirrorbrain for several weeks
>     and nothing bad happened. Clearly, we have enough bandwidth to manage
>     all downloads from sunjammer.
> 
>     There may be benefits in offloading downloads to locations closer to the
>     user, but mirror redirection was a pretty complex and fragile system
>     which should justify itself.
> 
>     Samuel, could you please download the same large file from
>     download.sugarlabs.org <http://download.sugarlabs.org> and from each
>     of the mirrors to see if there is a
>     substantial benefit?
> 
> 
> How can I get all the mirrors? Since the upgrade we do not have the
> mirrorbrain command (mb), so I can't list the mirrors.

D'OH!

So... maybe by querying the DB with pgsql directly?
But that's also down now... D'OH D'OH D'OH! ;-)

...hmmmm... AHA!

$ cat /srv/mirrorbrain/mirmon/state
ftp://ftp.snt.utwente.nl/pub/software/sugarlabs/ 1454815561 ok 1454869681 ssssssssssssss 1454808481-ssssssssssssss 1454869681
http://ftp.snt.utwente.nl/pub/software/sugarlabs/ 1454815561 ok 1454869681 ssssssssssssss 1454808481-ssssssssssssss 1454869681
http://mirror.aarnet.edu.au/pub/sugarlabs/ 1454538361 no_time 1454614081 ffffffffffffff 1454837281-ssssssssssbfff 1454876882
http://mirrors.mit.edu/sugarlabs/ 1454847961 ok 1454876882 ssssssssssssss 1454808481-ssssbfsssssbfs 1454876882
http://sugarlabs.usla.org.ar/ undef no_time undef ffffffffffffff 1454808481-zzzzzzzzzzzzzz 1454876882
rsync://ftp.snt.utwente.nl/pub/software/sugarlabs/ 1454815561 ok 1454866081 ssssssssssssss 1454805587-ssssssssssssss 1454866081
rsync://mirror.aarnet.edu.au/pub/sugarlabs/ 1454538361 no_time 1454614081 ffffffffffffff 1454840881-ssssssssssbfff 1454876882
rsync://mirrors.mit.edu/sugarlabs/ 1454847961 ok 1454873281 ssssssssssssss 1454805587-ssssbfsssssbfs 1454873281

:-)


>     I suspect that, for large files, the reduced latency won't matter... and
>     for small files, the extra HTTP redirect from sunjammer to the mirror
>     may even make things a bit *worse* :-)
> 
> 
>     On 03/06/2016 08:22 PM, Samuel Cantero wrote:
>     > Hi Sam,
>     >
>     > I would go for the 2nd approach. Apparently it all fit correctly and we
>     > can continue moving our services to docker containers.
>     >
>     > Best regards,
>     >
>     > Samuel C.
>     >
>     >
>     >
>     > On Sun, Mar 6, 2016 at 6:56 AM, Sam Parkinson <sam.parkinson3 at gmail.com <mailto:sam.parkinson3 at gmail.com>
>     > <mailto:sam.parkinson3 at gmail.com <mailto:sam.parkinson3 at gmail.com>>> wrote:
>     >
>     >
>     >     On Sun, Mar 6, 2016 at 5:47 PM, Cron Daemon <root at sugarlabs.org <mailto:root at sugarlabs.org>
>     >     <mailto:root at sugarlabs.org <mailto:root at sugarlabs.org>>> wrote:
>     >>     /etc/cron.weekly/mirrorbrain: bash: asn_import: command not found
>     >
>     >     This cron error message hides that mirrorbrain isn't running at all
>     >     now.  See this in
>     >
>     >     1) appending ".mirrorlist" to a download.sugarlabs.org <http://download.sugarlabs.org>
>     >     <http://download.sugarlabs.org> URL now gives a 404 (should show a
>     >     list of mirrors and file metadata)
>     >     2) our MirrorMon [1] (which uses data from mirrorbrain) now shows
>     >     that there are no mirrors.  This is a lie, arrnet's still
>     mirroring
>     >     us [2]
>     >
>     >     Upon further investigation, it doesn't seem to be even set up
>     properly:
>     >
>     >     1)  "sudo -u mirrorbrain mb" (mb is mirrorbrain config tool) ->
>     >     "sudo: mb: command not found"
>     >     2) from apt.sources.list "#bernie: mirrorbrain no longer supported
>     >     on trusty :-("
>     >
>     >     So, any preferences for a plan of action?  So far, I can think of:
>     >
>     >     1)  Compile it from source.  MirrorBrain moves slowly, so my
>     old tut
>     >     about this is still up to date [3].  But this feels so dirty
>     and bad.
>     >     2)  Use a Debian 8 docker container.  The mirror brain repos [4]
>     >     include packages for it, so it is just a package manager
>     install in
>     >     that respect.  We can base it off the official docker apache
>     >     images[5], which use debian jessie.
>     >
>     >     Thanks,
>     >     Sam
>     >
>     >     [1]  https://mirrors.sugarlabs.org/
>     >     [2]  http://mirror.aarnet.edu.au/pub/sugarlabs/
>     >     [3]
>     >     
>     https://www.digitalocean.com/community/tutorials/how-to-set-up-a-mirror-director-with-mirrorbrain-on-ubuntu-14-04
>     >     [4] 
>     http://download.opensuse.org/repositories/Apache:/MirrorBrain/
>     >     [5] 
>     https://github.com/docker-library/httpd/blob/master/2.4/Dockerfile
>     >>     _______________________________________________ Systems-logs
>     >>     mailing list Systems-logs at lists.sugarlabs.org
>     <mailto:Systems-logs at lists.sugarlabs.org>
>     >>     <mailto:Systems-logs at lists.sugarlabs.org
>     <mailto:Systems-logs at lists.sugarlabs.org>>
>     >>     http://lists.sugarlabs.org/listinfo/systems-logs
>     >
>     >     _______________________________________________
>     >     Systems mailing list
>     >     Systems at lists.sugarlabs.org
>     <mailto:Systems at lists.sugarlabs.org>
>     <mailto:Systems at lists.sugarlabs.org
>     <mailto:Systems at lists.sugarlabs.org>>
>     >     http://lists.sugarlabs.org/listinfo/systems
>     >
>     >
>     >
>     >
>     > _______________________________________________
>     > Systems mailing list
>     > Systems at lists.sugarlabs.org <mailto:Systems at lists.sugarlabs.org>
>     > http://lists.sugarlabs.org/listinfo/systems
>     >
> 
> 
>     --
>      _ // Bernie Innocenti
>      \X/  http://codewiz.org
> 
> 
> 
> 
> _______________________________________________
> Systems mailing list
> Systems at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/systems
> 


-- 
 _ // Bernie Innocenti
 \X/  http://codewiz.org


More information about the Systems mailing list