Gentoo Archives: gentoo-dev

From: Andrew Barchuk <andrew@×××××××.io>
To: Zac Medico <zmedico@g.o>, gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [pre-GLEP] Split distfile mirror directory structure
Date: Sun, 28 Jan 2018 22:46:45
Message-Id: D2AF71F6-913C-412A-932D-AAA452140208@raindev.io
In Reply to: Re: [gentoo-dev] [pre-GLEP] Split distfile mirror directory structure by Zac Medico
1 > In order to use that for distfiles mirrors, such that clients could know
2 > where to fetch the files from, you'd need the mirror's http server to
3 > redirect the request to the appropriate location (since the location
4 > would not be predictable from the client side).
5
6 That's not necessary: the client can fetch listing of the top level distfiles/
7 which now would be hundreds of directories, not tens of thousands
8 of files. That would allow the client to calculate the correct directory to
9 fetch a distfile from locally. List of directories can be cached until an
10 attempt to fetch a distfile will result in a miss (meaning that distfiles were
11 redistributed).
12 --
13 Andrew