7
submitted 4 weeks ago* (last edited 4 weeks ago) by Kalcifer@sh.itjust.works to c/archlinux@lemmy.ml

My config for reflector is currently set as follows:

# Set the output path where the mirrorlist will be saved.
--save /etc/pacman.d/mirrorlist

# Select the transfer protocol.
--protocol https

# Use only the most recently synchronized mirrors.
--latest 200

# Sort the mirrors by synchronization time.
--sort rate

# Return, at most, the following number of mirrors.
--number 20

# Print extra info.
--verbose

I have Reflector set to run as a Systemd service, so it will run when my computer boots.

The "issue" is that I update my system as soon as I boot. Since Reflector is sorting mirrors by their measured download rate, I wonder if downloading updates, or simply doing any action that downloads data, would interfere with those measurements and cause Reflector to choose mirrors that may not be the fastest. I could simply wait for Reflector to finish before using the computer, but it takes quite a while to sort through 200 mirrors.

Is this concern justified? If so, are there ways to mitigate it that don't require me to wait for Reflector to finish? I've thought about setting it as a Pacman hook so that it runs after updating, but, then, that relies on me to perform an update for the mirrorlist to be refreshed, and that still leaves the concern of other actions eating up network bandwidth, thus skewing the measurements.

you are viewing a single comment's thread
view the rest of the comments
[-] CaptDust@sh.itjust.works 4 points 4 weeks ago

Is it normal to run reflector regularly/on boot? I just run it maybe once a year to keep mirrors fresh.

[-] forbiddenlake@lemmy.world 4 points 4 weeks ago

The list does change and mirrors do degrade. I once ran in to an issue where my chosen mirror was now incomplete and causing problems.

Every boot or every day is overkill though imo. I do weekly.

[-] CaptDust@sh.itjust.works 1 points 4 weeks ago* (last edited 4 weeks ago)

Huh, TIL reflector actually ships with a weekly timer service - seems like a good default. I usually promote a university or large org mirror to the top after reflector runs. they're rarely out of date for long.

load more comments (5 replies)
this post was submitted on 13 Aug 2024
7 points (100.0% liked)

Arch Linux

7173 readers
1 users here now

The beloved lightweight distro

founded 4 years ago
MODERATORS