Talk:Mirrors

From ArchWiki
Jump to navigation Jump to search

rsync errors in tier2 mirrors

It is possible for arch mirrors to be in an inconsistent state if rsync fails at some point. This is due to mirrors not generating their own package databases but rather copying the one from lower tier mirrors. In these cases, trying to grab a package from these mirrors may result in a 404 error due to incomplete syncing. The method described in Tier 2 requirements does not adequately protect this case.

The following code will re-run rsync if it ever fails to ensure mirrors are properly synced.

RET=1
COUNTER=100
until [[ RET -eq 0 && COUNTER -gt 0 ]]; do
 rsync -rtlH --safe-links --delete-after --progress -h --timeout=600 --contimeout=60 -p \
             --delay-updates --no-motd --bwlimit=4096 \
             --temp-dir="/tmp" \
             --exclude='*.links.tar.gz*' \
             --exclude='/other' \
             --exclude='/sources' \
             --exclude='/iso' \
       'rsync://mirror.pkgbuild.com/packages/' \
       "/srv/repo" &&
       RET=0
       COUNTER=$[COUNTER-1]
done;

List by speed procedure

Looking at the procedure for Mirrors#List_by_speed it seems a bit odd to me that it suggests editing the backup that was taken of the local mirror list. I would think the instructions should either suggest creating a second working copy to delete once completed or, since a backup has already been taken, just modify the mirrorlist in place rather than modifying the backup.

Thoughts?

Ocelotsloth (talk) 03:04, 24 April 2019 (UTC)

Sorting mirrors - Methods order

It seems to me that using reflector is easier and more powerful than using rankmirrors. What about putting it first for newcomers ?

Also, I was thinking about putting the part where you make a backup of mirrors at the beginning of this section.

Any objection ?

-- Apollo22 (talk) 11:26, 22 June 2019 (UTC)

Server-side ranking does not consider the user's location and the link speed between the user's computer and the servers, so rankmirrors is actually more powerful and the separate "server-side ranking" section makes sense. -- Lahwaacz (talk) 20:14, 22 June 2019 (UTC)
I agree but reflector has the ability to use both server side ranking and client side ranking. I planned to refactor it this way (none of the current content would be deleted):
 - (Section) Sorting mirros
   - Make a backup
 - Use reflector
 - Client side ranking
 - Server side ranking

-- Apollo22 (talk) 07:22, 23 June 2019 (UTC)

reflector regularly breaks where rankmirror does not (see the forum thread: [1]). The working/more reliable tool should be documented first, regardless of "user friendlyness". -- Alad (talk) 08:16, 23 June 2019 (UTC)
I fully agree with your point about stability vs freadlyness. However, I am less convinced by the **regularly breaks** point about reflector. So for now I'll keep rankmirror first, but I'll still try to make reflector more visible. -- Apollo22 (talk) 08:40, 23 June 2019 (UTC)