Setting up faster update mirrors for Fedora

I came from Arch Linux, more precisely I used EndeavourOS. There is a tool called rankmirror. What options are there for Fedora to set up mirror servers with faster access?

You can first tune your config file in /etc/dnf/dnf.conf. Special useful is fastestmirror and max_paralles_downloads.

[main]
fastestmirror=True
max_parallel_downloads=10
gpgcheck=True
installonly_limit=3
clean_requirements_on_remove=True
best=False
skip_if_unavailable=True
3 Likes

Added dnf, workstation and removed workstation-wg

Thanks. So far the update has been fast, yesterday it happened for the first time that it slowed down a lot.

  1. It really also depends on your location. Sometimes just using a VPN helps to get better performance. So you can get a better path to a more performant server to download.

  2. Or just simply use an other time to update. If you do it on the rush hour (everyone uses the internet) you can get just be filtered, from your ISP, and get slower connection. Then point one probably makes sense, using a country where the users are sleeping (check time zones).

2 Likes

You are right about this, but I also use European, American and local mirrors for updates on Arch Linux, Debian, Linux Mint. With the latter, there are regular problems with the default mirror, and in such cases I usually switch to using another mirror. The Fedora installation is still quite fresh, I haven’t messed with the settings here yet, and so far there has only been one slowdown. My own connection is gigabit, so it’s not that bottleneck. We’ll see how many times package update slowdowns occur, and I’ll make changes accordingly.

I set fastestmirror=True not because I think that works directly but it helps avoid dead mirrors. That is, mirrors that don’t even ping don’t go in the fastestmirror.cache so they won’t be used. The other thing I do is set minrate=40k and timeout=20 so there’s speed limit and if a dnf server doesn’t maintain that rate for at least the timeout period my dnf drops it and goes to another.

3 Likes

Thank you, this is also a useful post from the point of view of the topic.

1 Like