From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,NICE_REPLY_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 13942 invoked from network); 4 Oct 2022 14:16:30 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 4 Oct 2022 14:16:30 -0000 Received: (qmail 19419 invoked by uid 89); 4 Oct 2022 14:16:55 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Received: (qmail 19409 invoked from network); 4 Oct 2022 14:16:54 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fourc.eu; s=google; h=content-transfer-encoding:in-reply-to:organization:from:references :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=mMG3DelD6MUIywqstA4sP6bECP6R61TTOVdhpI59UVQ=; b=MjGZB5v5DvidCjJ4trZwZFG3ztiB0DS65hnXrsVebc64IYJOMBKhL/QLm/1jnjDhSG d7+uoQOpgy6UXc0ar3nMLLIbQSLxCcAljGOIAafcHi7L6gXjNBoSAAqNL0ahPGN+Z4bL XIcyYkoXrx+LNFLm7iv1zpEdL7hEfv7WUoTtQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:organization:from:references :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=mMG3DelD6MUIywqstA4sP6bECP6R61TTOVdhpI59UVQ=; b=zohbh/0IToHEth8GG4EfPj2zi9KRKo3WrPKe0bV/0U1hutipLfXQcm86AgQKNBSjXy /4jQERaRLSSqhl98gsYe4iRtCaaOm4gpOtgnSlbrSpQTAEntp4ZYX8WSOnM/sJL+QyD8 GnfVir8ZPbVNj8OVTtzTbvqW1GVuYdRLy1IlnKv599seDlP3yKkIUoQJ74vFR9xXU1vZ 1fAb5P80NyXWHf6LvoowCS/+oJvVaXHSyhxoqgYq26jdS2uwTfvZnP0NLKPQpHiNtQaF /m1rWRLOW0lBpA0t4jbXM/nygthdMk01Jz3mk560p+yG2W4jfCmAEzx/F3YJxADsQCeB eSMQ== X-Gm-Message-State: ACrzQf1rYPtdXeUSZYkZFdQalpWj6ufdmJ0KbaNZ0cVbOBqJAffLxMYb DdIVfjfOVYxDaUN+8fRzBqUhnhokijQKEd8w X-Google-Smtp-Source: AMsMyM671Irat+fPYqCR3DIW6u9CmSmjpLnawqqENCnnSUNJNOx5ZGH7dFrkTh707op+uwghvQHfcw== X-Received: by 2002:a2e:3518:0:b0:26d:d11c:726d with SMTP id z24-20020a2e3518000000b0026dd11c726dmr4215146ljz.194.1664892986953; Tue, 04 Oct 2022 07:16:26 -0700 (PDT) Message-ID: <424271f5-f2ab-7fe9-e795-2668cda7fe40@fourc.eu> Date: Tue, 4 Oct 2022 16:16:25 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: "Back off" setting for crashing services with s6+openrc? Content-Language: nb-NO To: Laurent Bercot , "supervision@list.skarnet.org" References: <76856b27-1653-4e3c-28a5-737b63dea1f0@fourc.eu> <20220930113440.72c09a4f@flunder.oschad.de> From: Tor Rune Skoglund Organization: FourC AS In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Den 30.09.2022 15:21, skrev Laurent Bercot: >  There is, however, one improvement I think I can safely make. >  Currently, the 1-second delay is computed from when the service > *starts*: > if it has been running for more than one second, and crashes, it restarts > immediately, even if it has only been busy initializing, which causes > the resource hog OP is experiencing. >  I could change it to being computed from when the service is *ready*: > if the service dies before being ready, s6-supervise *always* waits for > 1 second before restarting. The delay is only skipped if the service has > been *ready* for 1 second or more, which means it really serving and > either idle (i.e. chill resource-wise) or hot (i.e. you don't want to > delay it). >  Does that sound like a valid improvement to you folks? To me this seems like a relevant improvement that would catch a problematic edge case issue. - Tor Rune