From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C7208158089 for ; Mon, 4 Sep 2023 17:21:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D415F2BC024; Mon, 4 Sep 2023 17:21:36 +0000 (UTC) Received: from mail.digimed.co.uk (mail.digimed.co.uk [82.69.83.178]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 870522BC018 for ; Mon, 4 Sep 2023 17:21:36 +0000 (UTC) Received: from digimed.co.uk (shooty.digimed.co.uk [192.168.1.4]) by mail.digimed.co.uk (Postfix) with ESMTPA id 589A669E6A for ; Mon, 4 Sep 2023 18:21:34 +0100 (BST) Date: Mon, 4 Sep 2023 18:21:27 +0100 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Is distfile partial mirror with failover possible? Message-ID: <20230904182127.47147c1a@digimed.co.uk> In-Reply-To: <2900905.e9J7NaK4W3@rogueboard> References: <2900905.e9J7NaK4W3@rogueboard> Organization: Digital Media Production X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/17f=F0q0Xh+ugSpKnjZC2VH"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Archives-Salt: 88305ea0-9b3f-45f4-a248-3117defd1817 X-Archives-Hash: 0bbade167fbdc7166fe1916e340d2834 --Sig_/17f=F0q0Xh+ugSpKnjZC2VH Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 04 Sep 2023 14:04:53 +0100, Michael wrote: > On Monday, 4 September 2023 11:12:51 BST Walter Dnes wrote: > > I may be misunderstanding, but it seems to me that local mirrors are > > all-or-nothing. In the interests of saving bandwidth, I'd like to > > have a client first check the host's /var/cache/distfiles directory > > for a source tarball file. If not found, then fail over to another > > mirror as per GENTOO_MIRRORS in /etc/portage/make.conf. This would > > require emerge doing the lookup and potential failover for each file. > > Is this possible? =20 >=20 > Unless I misunderstand what you're asking, isn't this what takes place > anyway? The reference to a host makes me think Walter wants one machne to hold the distfiles for all on the network. > PS. Is http_replicator still available/maintained? I see the wiki > mentions apt-cacher-ng for local distfiles cache. I use apt-cacher-ng for this and it does what you are looking for. --=20 Neil Bothwick The facts, although interesting, are usually irrelevant. --Sig_/17f=F0q0Xh+ugSpKnjZC2VH Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEGfLZTV7dXdQXh/dDdCdyyQfftocFAmT2EhcACgkQdCdyyQff toewVw/9EDOrGv42OvCRZRNyamK5NX1n9DmL94/8FVM4570sy5dQsf8oG7BQsX5w 2gyhpxXtPwxssck/Y54tYwadRSgyhLwcMZ0buWlviVbZqhq3NphMvLMXBAjEMWL8 H3VXnhvvGb6cFVO4mUJTaA3h7R5eiwBLmAeT7Og3s8ObH1vuJE4QJqF4jfb1Qveq m2nsi0BAHETeCi2WKKAvirgaY9Rb7VGlff1owsWGYf7LcBc9EncxX95gOIyaI00X fo47vTKXXIryJsJUJ+0Ty8UxkbS8z3j2dJLsAW9fkDp8BX2XoFpkJFfw0Es/Eb+/ NF89OXTcicLOd5VFxXHnR4q/iWsamC6sIyLbt9QPO9eIFTWYeMsJEDn8wngKNXpM SoDOCKbVH67BCWiG4N+juPWlR5W4/SYPLWkIYyPa2tA1dE/jWJi7iv/vBb2OWEPy LdKG1TmpzQ51g5ERIgWtpBxBUMmhGF/6H3J8gghFslaAUZ1UViJi2XAZD9a/+eL4 I4X2jpqawUsYTZ/JGMZktNotK04G3HTHmDmWYCo9hKoyhQmxl8SEgI5gSWNUsh3z AYr9c6VvpTeAQcx8msd4y8bB5yA3+eqOR9XjU33xcB5JWn1+9ZHOs5pB3yxm6aDq 7uEBvX9yZYVlnjFN1dSfsIQcmxZWswJWIQOipvNCiE7zFPSF1kI= =bWwn -----END PGP SIGNATURE----- --Sig_/17f=F0q0Xh+ugSpKnjZC2VH--