From patchwork Tue May 11 13:08:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ludovic_Court=C3=A8s?= X-Patchwork-Id: 29246 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id A25A327BC82; Tue, 11 May 2021 14:09:10 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 5C4EA27BC81 for ; Tue, 11 May 2021 14:09:10 +0100 (BST) Received: from localhost ([::1]:58918 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgS8L-0004Qx-Ei for patchwork@mira.cbaines.net; Tue, 11 May 2021 09:09:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53284) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgS8E-0004QP-K4 for guix-patches@gnu.org; Tue, 11 May 2021 09:09:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52039) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgS8E-0006BP-CT for guix-patches@gnu.org; Tue, 11 May 2021 09:09:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lgS8E-0003vi-7H for guix-patches@gnu.org; Tue, 11 May 2021 09:09:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47897] [PATCH 2/2] substitutes: Reduce negative TTLs. Resent-From: Ludovic =?utf-8?q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 11 May 2021 13:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47897 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47897@debbugs.gnu.org Cc: Ludovic =?utf-8?q?Court=C3=A8s?= Received: via spool by 47897-submit@debbugs.gnu.org id=B47897.162073853915090 (code B ref 47897); Tue, 11 May 2021 13:09:02 +0000 Received: (at 47897) by debbugs.gnu.org; 11 May 2021 13:08:59 +0000 Received: from localhost ([127.0.0.1]:35350 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgS8B-0003vI-AY for submit@debbugs.gnu.org; Tue, 11 May 2021 09:08:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42912) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgS89-0003uz-Fr for 47897@debbugs.gnu.org; Tue, 11 May 2021 09:08:58 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:48408) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgS84-00062z-Bl; Tue, 11 May 2021 09:08:52 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=57486 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgS83-0004e7-Ra; Tue, 11 May 2021 09:08:52 -0400 From: Ludovic =?utf-8?q?Court=C3=A8s?= Date: Tue, 11 May 2021 15:08:42 +0200 Message-Id: <20210511130842.32381-2-ludo@gnu.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210511130842.32381-1-ludo@gnu.org> References: <87wnsthpyn.fsf@cbaines.net> <20210511130842.32381-1-ludo@gnu.org> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * guix/substitutes.scm (%narinfo-negative-ttl): Change to 15mn. (%narinfo-transient-error-ttl): Halve. --- guix/substitutes.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/guix/substitutes.scm b/guix/substitutes.scm index 08f8c24efd..c1b036e42c 100644 --- a/guix/substitutes.scm +++ b/guix/substitutes.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès +;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Ludovic Courtès ;;; Copyright © 2014 Nikita Karetnikov ;;; Copyright © 2018 Kyle Meyer ;;; Copyright © 2020 Christopher Baines @@ -72,11 +72,11 @@ (define %narinfo-negative-ttl ;; Likewise, but for negative lookups---i.e., cached lookup failures (404). - (* 1 3600)) + (* 15 60)) (define %narinfo-transient-error-ttl ;; Likewise, but for transient errors such as 504 ("Gateway timeout"). - (* 10 60)) + (* 5 60)) (define %narinfo-cache-directory ;; A local cache of narinfos, to avoid going to the network. Most of the