From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EE5CKOJq+mF32gAAgWs5BA (envelope-from ) for ; Wed, 02 Feb 2022 12:28:34 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id SLzRJOJq+mGisQAAauVa8A (envelope-from ) for ; Wed, 02 Feb 2022 12:28:34 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4F52530EBF for ; Wed, 2 Feb 2022 12:28:34 +0100 (CET) Received: from localhost ([::1]:49010 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFDoP-0003PN-E1 for larch@yhetil.org; Wed, 02 Feb 2022 06:28:33 -0500 Received: from eggs.gnu.org ([209.51.188.92]:37334) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFDo4-0003OI-NE for guix-patches@gnu.org; Wed, 02 Feb 2022 06:28:12 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:57768) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nFDnt-0001y6-Lb for guix-patches@gnu.org; Wed, 02 Feb 2022 06:28:06 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nFDnt-0002Qx-HN for guix-patches@gnu.org; Wed, 02 Feb 2022 06:28:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52555] [RFC PATCH v2 0/5] Decentralized substitute distribution with ERIS Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 02 Feb 2022 11:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52555 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: pukkamustard Cc: ~pukkamustard/eris@lists.sr.ht, 52555@debbugs.gnu.org Received: via spool by 52555-submit@debbugs.gnu.org id=B52555.16438012439305 (code B ref 52555); Wed, 02 Feb 2022 11:28:01 +0000 Received: (at 52555) by debbugs.gnu.org; 2 Feb 2022 11:27:23 +0000 Received: from localhost ([127.0.0.1]:51665 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFDnH-0002Q1-FK for submit@debbugs.gnu.org; Wed, 02 Feb 2022 06:27:23 -0500 Received: from albert.telenet-ops.be ([195.130.137.90]:54978) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFDnE-0002Po-NK for 52555@debbugs.gnu.org; Wed, 02 Feb 2022 06:27:21 -0500 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by albert.telenet-ops.be with bizsmtp id qBTG260044UW6Th06BTHxE; Wed, 02 Feb 2022 12:27:17 +0100 Message-ID: <846716544b4424f02e383114ebcb52957b43dd4d.camel@telenet.be> From: Maxime Devos Date: Wed, 02 Feb 2022 12:27:11 +0100 In-Reply-To: <86fsp1h6ce.fsf@posteo.net> References: <20211216161724.547-1-pukkamustard@posteo.net> <20220125192201.7582-1-pukkamustard@posteo.net> <86fsp1h6ce.fsf@posteo.net> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-crNeuanJUAr3xaO0LT5a" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1643801237; bh=PleecMB9h/qwk3+XCkghDaV+X30zFidzSB9DufPGVzU=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=Ii2MzhXF3fKvPkGX5+4vmsWk/d+M1jk5ZTFNU0PrLFdpd9bcpHJ5IlLJi/eSMprie rKsYKImG4McwLfwrQABQCA6aADSHtJNJvMZxi0j8UW3ZKg9wbhXMqSdaI+Zce41JxC wx0doKxujWIOw+ZNcLMEKrC55whFlhWlKNLO1NbdOwxBNGls5aIKqXgRUK9ykcycq8 zx+rzXQuBVfH881qKI2j/ZHL76MbHHv2vp2tr8GwDZmN2AX1B9v3s/iERVm9J8stlL 69DlBTWk1I6OMVZNsbZ7YRbU52KYJ0hzjlKJQGhBjd+g3PIv1nDFShEIJL0H5zVo1M uLTqwKeOlsY+w== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1643801314; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=PleecMB9h/qwk3+XCkghDaV+X30zFidzSB9DufPGVzU=; b=dG7iG3L3+8JwjMazmYxvubwMGpe12l+nxYvG4NvypwM9FZ22Sl+87HvfstGKQcOIPga8Ud cnGnmOR+xhPQUnSoR36+IjVrzZgAPczldA7FhxTA0ahBLp0XIWfAI4oHbGBZPMriRIJue6 7V2xw3YI+mwM5VCEw6lwE38oRwLaZN6Xw8NmaPoQeMeJIZEXbeXnt5Fy9k2Z48LXjxAR7B z6ME6IcJliZyifrqvy94RpPNTavYKbl90UphgjcFWIf11UC8L2qqBK6y83tb/CgBjqQOoK oGWkZ8vFP4B5LlV/KodT76J5jMwV8AYCOGBjMOHEMXdg6nVzyoNBIS9YIPwKOw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643801314; a=rsa-sha256; cv=none; b=oB+J/ucA1hDuMvKyBBGnlH0xcTqVGtiEPWZ9tSJXY+T1ljvnHjuZIxXobfUO03comAngNt kipmqKL7q5LOjRgUqk/K50yZ2bCHEuBiIGd+B/msetINXajMlo8gHsVgb7sVX/4RUzjDQE Wd8B98HjW76a7JCVdqt+ak4olmHkmI4sRyXoeMxopHhrdOC9RglsWdmZkiwfXO+mJx1jAG ST/yUOwoeb9RBVEyyXjVasoA7dCwM7oTxgsmuMfhqL7BmLsA8+/I1pvZ0wDbv+kGd7ncPL k9x/iIb0qxLKd86f5e1NX4ItFDsrDPMqgrM0BxuxIgAu8qibz1KM2zkKy2Giaw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=Ii2MzhXF; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.23 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=Ii2MzhXF; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 4F52530EBF X-Spam-Score: -4.23 X-Migadu-Scanner: scn1.migadu.com X-TUID: aJ3ZDS+/Yil4 --=-crNeuanJUAr3xaO0LT5a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable pukkamustard schreef op wo 02-02-2022 om 10:51 [+0000]: > > The database doesn't seem necessary, the substitute server could > > have > > some end-point > >=20 > > =C2=A0=C2=A0 /publish-this-nar-again-into-IPFS/name-of-the-nar > >=20 > > which, when contacted, inserts the nar again into IPFS.=C2=A0 Then when > > a > > block was unavailable, the client contacts this end-point and > > retries. >=20 > But for a HTTP block endpoint we would still need such a > database/block > storage. >=20 > I think it is important that we do not rely on IPFS for block > storage. The decentralized block distribution should work even if the > IPFS daemon is not available. Do we need a database at all? E.g., if the client cannot download the data in the range [start, end] because the corresponding block has disappeared, can it not simply download that range from https://ci.guix.gnu.org/nar/[...] (not sure about the URI) using a HTTP range request? (Afterwards, the client should insert the block(s) back into IPFS/GNUnet/whatever, maybe using this proposed =E2=80=98in-file block stor= e=E2=80=99 such that other clients (using the same DHT mechanism) can benefit.) Greetings, Maxime. --=-crNeuanJUAr3xaO0LT5a Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYfpqjxccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7q/tAQCx5U1HlZF9H7rfUztb00awEgdY KRhb7frTXDXhQfzGwwD/Ro+r9CPRGyK2EQ1AqDDFgZUohQQrKHbAzL8yY+DG/Qk= =93De -----END PGP SIGNATURE----- --=-crNeuanJUAr3xaO0LT5a--