From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: Josselin Poiret <dev@jpoiret.xyz>,
Simon Tournier <zimon.toutoune@gmail.com>,
Mathieu Othacehe <othacehe@gnu.org>,
Tobias Geerinckx-Rice <me@tobias.gr>,
73000@debbugs.gnu.org, Christopher Baines <guix@cbaines.net>
Subject: [bug#73000] [PATCH] substitutes: Reduce default negative TTL values.
Date: Thu, 12 Sep 2024 20:58:11 +0900 [thread overview]
Message-ID: <87bk0tw0bw.fsf@gmail.com> (raw)
In-Reply-To: <87mskdjdeb.fsf@gnu.org> ("Ludovic Courtès"'s message of "Thu, 12 Sep 2024 13:54:20 +0200")
Hello,
Ludovic Courtès <ludo@gnu.org> writes:
> Hello,
>
> Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:
>
>> I don't actually have a well formed opinion on the values, but I trust
>> that if Ludo found them annoying, the change must be good.
>
> Yes, for context, these defaults are particularly annoying in the
> context of Cuirass and the Build Coordinator where, if a substitute
> isn’t available at a given point in time, you may want to retry. For
> this scenario, you’d have to wait for at least 10mn by default because
> ‘guix substitute’ attempts to retry.
>
> Besides, I think I added negative TTLs back in the day to help reduce
> load on substitute servers and to speed up clients in cases where you
> run the same or similar commands several time in a row. A short TTL can
> be useful, a longer not so much.
>
> At any rate, it doesn’t matter all that much since it’s just a default:
> servers can advertise their own negative TTL, including zero, via the
> ‘Cache-Control’ HTTP header.
Thanks for the explanation; it makes sense.
--
Thanks,
Maxim
next prev parent reply other threads:[~2024-09-12 12:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-03 9:43 [bug#73000] [PATCH] substitutes: Reduce default negative TTL values Ludovic Courtès
2024-09-10 12:26 ` Simon Tournier
2024-09-12 11:44 ` Maxim Cournoyer
2024-09-12 11:54 ` Ludovic Courtès
2024-09-12 11:58 ` Maxim Cournoyer [this message]
2024-09-15 22:22 ` bug#73000: " Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bk0tw0bw.fsf@gmail.com \
--to=maxim.cournoyer@gmail.com \
--cc=73000@debbugs.gnu.org \
--cc=dev@jpoiret.xyz \
--cc=guix@cbaines.net \
--cc=ludo@gnu.org \
--cc=me@tobias.gr \
--cc=othacehe@gnu.org \
--cc=zimon.toutoune@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.