mirrorbits icon indicating copy to clipboard operation
mirrorbits copied to clipboard

Draft: Add RelaxModTimeRules config option

Open elboulangero opened this issue 2 years ago • 3 comments

With this setting, files are allowed to be outdated on the mirrors, for at most MaxOutdated minutes. The filesize check is also disabled for those files.

Use-case: for a Debian-like distribution, the metadata (ie. the directory /dists) are updated in-place, so we must give time for mirrors to sync, and then for mirrorbits to be aware of the changes.

Otherwise, as soon as the source is updated and scanned, Mirrorbits will go in fallback mode for all the files under /dists, since at this point, either mirrors didn't sync yet, either they did but Mirrorbits is not aware of it yet (as the interval to scan mirrors is higher than the interval to scan the source).

Cf. https://github.com/etix/mirrorbits/issues/85 for more details.

elboulangero avatar Oct 11 '23 14:10 elboulangero

I mark it as draft, it would be nice to get feedback from other mirrorbits users, that use mirrorbits to mirror a Linux distro, to understand better if they face a similar issue, and if this PR can help them solve it.

elboulangero avatar Oct 30 '23 15:10 elboulangero

Still a draft, noone commented :(

jbkempf avatar Apr 08 '24 05:04 jbkempf

Actually discussion happened at https://github.com/etix/mirrorbits/issues/85. But I just noticed that I didn't have time to follow up...

In any case: still a draft

elboulangero avatar Apr 08 '24 11:04 elboulangero