all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peng Mei Yu <pengmeiyu@riseup.net>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: SJTUG's Guix mirror is online now
Date: Wed, 23 Dec 2020 09:50:12 +0800	[thread overview]
Message-ID: <87a6u5uw8b.fsf@riseup.net> (raw)
In-Reply-To: <87lfdpzx18.fsf@gnu.org>

Hi,

Ludovic Courtès writes:

> Peng Mei Yu <pengmeiyu@riseup.net> skribis:
>
>> After extensive cooperation with SJTUG's maintainers, we are happy to
>> announce that SJTUG's Guix mirror is online now.
>>
>> The substitute URL is: https://mirrors.sjtug.sjtu.edu.cn/guix
>
> This is great news!
>
>> Asia residents, especially China residents, will greatly benefit from
>> this mirror.  Average download speed is about 3MB/s within China, which
>> is a 100 times increase compared to ci.guix.gnu.org.
>>
>> SJTUG's Guix mirror is maintained by students of Shanghai Jiao Tong
>> University Linux User Group (SJTUG).  We will continue to cooperate with
>> them in the near future to ensure this mirror server is fast and stable.
>
> So you are rsync’ing from ci, right?  Is the mirror running ‘guix
> publish’ to cope with the “weird” file layout in
> /var/cache/guix/publish?

No.  To deal with software repositories that are not easy to have a full
sync, maintainers of SJTUG wrote a cache program.  When an HTTP request
comes, the program tries to find the requested resource from an S3-like
storage server.  If the resource is found on the storage server, return
an HTTP 302 redirection to storage server.  Otherwise, return an HTTP
302 redirection to upstream server and fetch the resource from upstream
and store it into the storage server.  As I said earlier, this does not
work well for Guix because Guix client does not handle HTTP 302
redirection correctly.  So we tweaked the program a little bit to offer
transparent proxy to Guix client.  The program is here:
https://github.com/sjtug/mirror-intel

By the way, I am still waiting for the rsync account of our CI server.
If rsync is offered, we may pull guix-publish' cache and write another
program to feed the mirror with a full sync.

> If you’re interested, you could write an article for the blog post (in
> English, but it’d be a good opportunity to start translating the web
> site into Chinese :-)) about your setup and the choices you made.

I don't think there are enough things to write in a blog post but I will
consider translating the web site.


--
Peng Mei Yu


  reply	other threads:[~2020-12-23  1:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-22  3:36 SJTUG's Guix mirror is online now Peng Mei Yu
2020-12-22  9:46 ` Pierre Neidhardt
2020-12-22 15:21 ` Ludovic Courtès
2020-12-23  1:50   ` Peng Mei Yu [this message]
2020-12-23  8:39     ` zimoun
2020-12-23 12:23       ` Julien Lepiller
2020-12-23 11:14 ` 宋文武

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a6u5uw8b.fsf@riseup.net \
    --to=pengmeiyu@riseup.net \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.