Bug #536
Put Arch mirrors in the webseeds
0%
Description
ATM the torrents contain webseeds for all of our own mirrors. We can make it also include all arch mirrors if the package is not a Parabola-only package. Should be quite easy.
History
Updated by xylon almost 10 years ago
Hm, I don't know what's the best way to know if a package is "Parabola-only".
Updated by xylon almost 10 years ago
If we include too many webseeds, I wonder if it might make the .torrent files too big?
Updated by xylon almost 10 years ago
Hm, I think maybe it should include ONLY arch mirrors for webseeds, if a package is available in arch. But, what would happen if someone tries to install a package that has already been updated in arch, and therefore the file is not in the arch mirrors?
Updated by xylon almost 10 years ago
OK, we can't have ONLY arch servers in webseeds because that could cause synchronization issues.
Updated by xylon almost 10 years ago
Synchronisation problem scenario:
Monday: package-1.0 is in Arch repo
Tuesday: repo.parabolagnulinux.org syncs, the package db now contains package-1.0 and the pacman2pacman torrents use arch mirrors as webseeds.
Wednesday morning: package-1.1 is released in Arch repo
Wednesday afternoon: someone tries to install package using pacman2pacman. The package db contains package-1.0 but arch mirrors contain package-1.1, so the webseeds are broken.
Updated by alfplayer almost 10 years ago
xylon wrote:
Synchronisation problem scenario:
Monday: package-1.0 is in Arch repo
Tuesday: repo.parabolagnulinux.org syncs, the package db now contains package-1.0 and the pacman2pacman torrents use arch mirrors as webseeds.
Wednesday morning: package-1.1 is released in Arch repo
Wednesday afternoon: someone tries to install package using pacman2pacman. The package db contains package-1.0 but arch mirrors contain package-1.1, so the webseeds are broken.
The issue is we don't know exactly when Arch mirrors sync their db-cleanup.
Updated by alfplayer almost 10 years ago
https://projects.parabolagnulinux.org/dbscripts.git/tree/db-cleanup
It removes old package files (not in current DBs).
Updated by xylon almost 10 years ago
Also I guess if we include some tier 2 arch mirrors they should be at least as out-of date as our db.
Updated by xylon almost 10 years ago
I imagine that, as long as we include a mixture of tier 1 and 2 Arch mirrors then it should provide a spread of out-of-dateness which can make sure that at least some of the webseeds will work.
Updated by alfplayer almost 10 years ago
I agree, so I don't think using only Arch webseeds for Arch packages results in fetching unavailable files. Why not use Parabola webseeds with lower priority (if it's possible)?
Updated by xylon almost 10 years ago
- Status changed from open to not-a-bug
I consider this to be no longer relevant since now pacman2pacamn re-writes the webseeds in the torrent to the user's chosen mirror.