[mirror-admin] caching mirror

Jason L Tibbitts III tibbs at math.uh.edu
Thu Jan 26 13:37:26 EST 2017


>>>>> "BJM" == Brian J Murrell <brian at interlinx.bc.ca> writes:

BJM> Ahh.  But not what files are in the directories?

Nope, just the directories.

The report_mirror code dates back to the very earliest days of all of
this and I believe at the time they were concerned that sending the
whole data set would either take too much data or take to long to
process on the server.  As it is, I've seen it take take six minutes for
mirrormanager to process a checkin of a full mirror, though I think it's
faster.  I should make quick-fedora-mirror output the exact checkin
time.

BJM> So mirrormanager won't really know I have a less-than complete
BJM> mirror?

If you mirror empty directories but not the files inside them, then I
would expect that it would have no way to know.

BJM> Oh.  So that "Last crawled" is the last time mirrormanager came and
BJM> crawled my mirror?

That is my assumption, yes.  I would assume it would say something about
a checkin if the time was intended to reflect checkins.

BJM> https://mirrors.fedoraproject.org/metalink?repo=fedora-25&arch=x86_64

BJM> to show just my mirror when queried from the IP address I
BJM> registered for my private mirror?

I would not expect it to ever show you just your private mirror.  I have
two local complete mirrors which I believe are statistically the most up
to date mirrors outside of the Fedora data centers, and while I see them
at the top of the metalink data (with preference="100" and
preference="99"), I see a large number of other mirrors as well.  After
all, the intent is for you to be able to get the most up to date
packages and be tolerant of hosts being overloaded or offline.

If you intend to have a local mirror that you update only when you want
your machines to receive updates, you really should just replace your
local repo files to point to that mirror directly.  That's what I do for
my machines here.  I do testing with some machines on the live mirrors
and if things are good then I pull from there to my internal mirror and
let the bulk of my machines update from that.

 - J<

--


More information about the Mirror-admin mailing list