Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Add RelaxModTimeRules config option #147

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

elboulangero
Copy link
Contributor

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. #85 for more details.

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. etix#85 for more details.
@elboulangero elboulangero changed the title Add RelaxModTimeRules config option Draft: Add RelaxModTimeRules config option Oct 30, 2023
@elboulangero
Copy link
Contributor Author

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.

@jbkempf
Copy link
Collaborator

jbkempf commented Apr 8, 2024

Still a draft, noone commented :(

@elboulangero
Copy link
Contributor Author

Actually discussion happened at #85. But I just noticed that I didn't have time to follow up...

In any case: still a draft

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants