On Sat, Jan 02, 2021 at 11:06:57PM +0100, Johannes 'josch' Schauer wrote:
> for the newest timestamp that one can find via
> http://snapshot.debian.org/archive/debian/ it can happen that some of
> the files in it return a 404. Maybe new timestamps are added to the web
> interface before the download of all content is complete?
> 
> The webinterface should only show new timestamps once all their content
> is completely available for download.

At the time I took over this was already intended to be solved by
internal redirection logic. I think it was actually broken but as far as
I can it should work now: When a tree has been synced to the database,
it's immediately available to all hosts - even though the
content-addressable tree has not been synced yet, through DB
replication. If the local file does not exist, the other hosts will
transparently proxy to the primary machine. This requires the primary
machine to be available for serving.

We have a ton of scraping load on the hostname-based Apache vhosts,
which are used for this. So I had to block direct access. /file/ is
exempted from the blocks. As long as the primary is up, this should
thus work.

What we are missing is an integration test for this to ensure that it
keeps working.

Kind regards
Philipp Kern

Reply via email to