From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GEuDI41Xe2FIeQEAgWs5BA (envelope-from ) for ; Fri, 29 Oct 2021 04:08:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id mC8tH41Xe2FXfgAA1q6Kng (envelope-from ) for ; Fri, 29 Oct 2021 02:08:13 +0000 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 DA84516C8A for ; Fri, 29 Oct 2021 04:08:12 +0200 (CEST) Received: from localhost ([::1]:57798 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mgHJT-0003GX-V1 for larch@yhetil.org; Thu, 28 Oct 2021 22:08:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55806) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgHJL-0003Fa-2N for bug-guix@gnu.org; Thu, 28 Oct 2021 22:08:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42064) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mgHJK-00083e-QL for bug-guix@gnu.org; Thu, 28 Oct 2021 22:08:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mgHJK-0003cY-Fa for bug-guix@gnu.org; Thu, 28 Oct 2021 22:08:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#51472: substitute servers should be preferred according to their coverage rate Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 29 Oct 2021 02:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51472 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 51472@debbugs.gnu.org X-Debbugs-Original-To: bug-guix Received: via spool by submit@debbugs.gnu.org id=B.163547327313895 (code B ref -1); Fri, 29 Oct 2021 02:08:02 +0000 Received: (at submit) by debbugs.gnu.org; 29 Oct 2021 02:07:53 +0000 Received: from localhost ([127.0.0.1]:53609 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgHJA-0003c3-Kd for submit@debbugs.gnu.org; Thu, 28 Oct 2021 22:07:52 -0400 Received: from lists.gnu.org ([209.51.188.17]:32940) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgHJ4-0003bp-Sh for submit@debbugs.gnu.org; Thu, 28 Oct 2021 22:07:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55746) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgHJ4-0003ED-MG for bug-guix@gnu.org; Thu, 28 Oct 2021 22:07:46 -0400 Received: from mail-qv1-xf31.google.com ([2607:f8b0:4864:20::f31]:46718) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mgHJ2-0007dl-1f for bug-guix@gnu.org; Thu, 28 Oct 2021 22:07:46 -0400 Received: by mail-qv1-xf31.google.com with SMTP id g25so4410224qvf.13 for ; Thu, 28 Oct 2021 19:07:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version; bh=jDX6pF4VlRqdEYqFOjhNwm9yIQZVztQq9HJ4+7FhTY0=; b=cCJQ7QD2bPlZJCigqWcvf1uK3NkueO5biqBJFWSPZOW+4CxyKZmU6cihsq25nhF09m aRGIPnSFWkfsqo1xo20Xo8+AwCP5Oby30+xesGkyg1zvWKVM2cYLCJ2L6AZFKHCmq2Xp Z19W8TEqbfR8HlbzDg9SBn4f8vLeX7oRl7Q2qmObuOlwGDqcaW3nwdeS4YrIfcLuqBIy rYx293yqHBWVR3glEc5xCRvVgrNhpWRpNC0HWzwsh9scCd+vIJat8pfPUUzfM/HkdltO EtR0ljlOu4t+NaJBQ/wlG2wgDYRL6KKls4eiJf8dkP4CYRfEy29uo9VvRIEGqbfaq93Y FA/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=jDX6pF4VlRqdEYqFOjhNwm9yIQZVztQq9HJ4+7FhTY0=; b=SiaOqQN0RkQrkTznlZLSM3z4Ab1V6VURPylEFwiO0+9iE77Gx5/Lj8gbfL1GpOaMqB uUyLBwg9zWt2dQNQ3+NSC0uqczx7Yr/NiHm5rmq/thciD4fEY05wcopZvelFwTvWbCfP JAZn83sPLqd/XEM7OTUmHAGl0Q2eVmDT9NncV+eV2a7OkH3tFjvcyPMtVJf//ozuaYuE 1XcqOUH3Pf5znnVuWTfjQOqaqw2BHnzW6Y35yobSS189vhboyRbD2Iy13ge5+PuEc3lE sf1nsTSzjIu5GIih+clY2SWezUpA7QqWDC2WzZCOcb0obvi7lYt0Ux+dhdDegZMvLbIB E7sA== X-Gm-Message-State: AOAM533Ne4Evvsz2EB1i/Gt49f3y1+UpjWc2c7AWKepf0FOf5slupseq 5CVX2ERVEq0wEwt+5CREMO0OknNG/U8= X-Google-Smtp-Source: ABdhPJymXKBEHEH+xyRHBBrWsQKcVMqgZIayCHNOHDeXSKB5bfMVlsBv7LIVK83LftRJDBZAFfm5pA== X-Received: by 2002:ad4:5e8d:: with SMTP id jl13mr8085434qvb.61.1635473262633; Thu, 28 Oct 2021 19:07:42 -0700 (PDT) Received: from hurd (dsl-152-69.b2b2c.ca. [66.158.152.69]) by smtp.gmail.com with ESMTPSA id bj37sm3107706qkb.49.2021.10.28.19.07.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Oct 2021 19:07:41 -0700 (PDT) From: Maxim Cournoyer Date: Thu, 28 Oct 2021 22:07:39 -0400 Message-ID: <87k0hwa8ic.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::f31; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qv1-xf31.google.com X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, NUMERIC_HTTP_ADDR=1.242, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635473293; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=jDX6pF4VlRqdEYqFOjhNwm9yIQZVztQq9HJ4+7FhTY0=; b=eVG5jFU5461w2cCHjFStpo87qZj8hHrL50JgWX8McIgBUhcgtEKbdd3M0s3TOpQKqUh9yC 5nLmxph9YkjBVt/9lVpbsh290udHoBEjFouIczx19sbSLVFI8k7SxEepXPMMb0wuirENLm KIbSPXC4vfLoU51VYsWup0zS7DiErwjsggwtoGhGQ+fvAO3J4INMvmy4yPuz/MF+k6IIu4 DtRBkSY9CsGCFBPT04E0gzyml8yz51N93V4WVZHOsBsKANukRmFQ1fVGbHO0rfAoxdGFKr Q5XnlHlSKqGFlOANGOdqd0G17iJrhxPniJKsgfeQ/gGhuy4JybT3RKnOPxIDCw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635473293; a=rsa-sha256; cv=none; b=mpewExVguni+E6LumolnYBUOnD6JbwnaOvCIn7/Ex+1jhDxARoH9f8/TKQvFCnKljes9GQ efjAyK3vUHbCnH8DYIUWa0xGlOfzIMUIZTH76dycMpgoaWmfvTBtWLYhEJeuIZHtltQfHy dHjy6KH18Zb+DOwoj4wMpO8KzvZhas4FGvUHA/0lo2rclhyOphgnpbYj1CCNTD3I5TZmZj X2O+KQ+ty97hBAbM/aeulvfI7vKT9AS1QREyJUCLTSMHqdBggQq0YnIqRLADU3sVGnMyxn Kkx5gIamNbapOj6L9tj5P0OqlhzMUIABBKkanhaHBN2KC/xnOk0Jz1Z5kyqoqA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=cCJQ7QD2; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: 0.18 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=cCJQ7QD2; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: DA84516C8A X-Spam-Score: 0.18 X-Migadu-Scanner: scn0.migadu.com X-TUID: NgtQiJw03D79 Hello, When using substitute servers discovery, I've noticed that if one of the substitute servers doesn't have any substitutes available, it'll keep getting tried instead of others, leading to a slide-show of substitutes updates such as: --8<---------------cut here---------------start------------->8--- normalized load on machine '127.0.0.1' is 0.04 building /gnu/store/ajd0hx104702jpz2ycdwgrnyrv8jsp6d-xorg-server-21.1.0.tar.xz.drv... process 9195 acquired build slot '/var/guix/offload/127.0.0.1:6666/1' normalized load on machine '127.0.0.1' is 0.04 building /gnu/store/49rqi3wpvdm5pv6in9pamzdvg0wscrl8-xorgproto-2021.5.drv... substitute: updating substitutes from 'http://192.168.10.102:80'... 0.0% substitute: updating substitutes from 'http://192.168.10.102:80'... 0.0% substitute: updating substitutes from 'http://192.168.10.102:80'... 0.0% substitute: updating substitutes from 'http://192.168.10.102:80'... 0.0% substitute: updating substitutes from 'http://192.168.10.102:80'... 0.0% substitute: updating substitutes from 'http://192.168.10.102:80'... 0.0% substitute: updating substitutes from 'http://192.168.10.102:80'... 0.0% substitute: updating substitutes from 'http://192.168.10.102:80'... 0.0% substitute: updating substitutes from 'http://192.168.10.102:80'... 0.0% substitute: updating substitutes from 'http://192.168.10.102:80'... 0.0% substitute: updating substitutes from 'http://192.168.10.102:80'... 0.0% substitute: updating substitutes from 'http://192.168.10.102:80'... 0.0% substitute: updating substitutes from 'http://192.168.10.102:80'... 0.0% substitute: updating substitutes from 'http://192.168.10.102:80'... 0.0% substitute: updating substitutes from 'http://192.168.10.102:80'... 0.0% substitute: updating substitutes from 'http://192.168.10.102:80'... 0.0% substitute: updating substitutes from 'http://192.168.10.102:80'... 0.0% substitute: updating substitutes from 'http://192.168.10.102:80'... 0.0% substitute: updating substitutes from 'http://192.168.10.102:80'... 0.0% substitute: updating substitutes from 'http://192.168.10.102:80'... 0.0% substitute: updating substitutes from 'http://192.168.10.102:80'... 0.0% substitute: updating substitutes from 'http://127.0.0.1:8080'... 100.0% substitute: updating substitutes from 'http://192.168.10.102:80'... 0.0% substitute: updating substitutes from 'http://192.168.10.102:80'... 0.0% substitute: updating substitutes from 'http://192.168.10.102:80'... 0.0% substitute: updating substitutes from 'http://192.168.10.102:80'... 0.0% substitute: updating substitutes from 'http://192.168.10.102:80'... 0.0% substitute: updating substitutes from 'http://192.168.10.102:80'... 0.0% substitute: updating substitutes from 'http://192.168.10.102:80'... 0.0% substitute: updating substitutes from 'http://192.168.10.102:80'... 0.0% substitute: updating substitutes from 'http://127.0.0.1:8080'... 100.0% substitute: updating substitutes from 'http://192.168.10.102:80'... 0.0% --8<---------------cut here---------------end--------------->8--- We should implement some scheme to prefer querying high-substitute servers first, instead of wasting time querying servers always failed queries; this would greatly improve performance when using substitute discovery for example combined with low coverage. Thanks! Maxim