Message ID | 20200301194113.16841-1-arne_f@ipfire.org |
---|---|
State | Accepted |
Commit | 770a1507dd750fe98f327919c9da576d6b996469 |
Headers |
Return-Path: <development-bounces@lists.ipfire.org> Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 48Vtv121nzz3wc5 for <patchwork@web04.haj.ipfire.org>; Sun, 1 Mar 2020 19:41:33 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 48Vttz60K0z12n; Sun, 1 Mar 2020 19:41:31 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 48Vttz3Xx3z2yRQ; Sun, 1 Mar 2020 19:41:31 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 48Vtty3vbTz2xhB for <development@lists.ipfire.org>; Sun, 1 Mar 2020 19:41:29 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 48Vttw3ZwJz12n; Sun, 1 Mar 2020 19:41:28 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=201909ed25519; t=1583091688; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=ruyrDOpgqoX/VGoLIOWBA4RxBMa37K5fUmgJtX7Wv54=; b=7Z3pQhng80Wd36bdu5h/ffugOYRT1GAwk/GFtIYsb0HLmW+b6F3nwiIPw2uEG2UEztYnAN VnqNvHwFAWtNNlBQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201909rsa; t=1583091688; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=ruyrDOpgqoX/VGoLIOWBA4RxBMa37K5fUmgJtX7Wv54=; b=iua6JX0qAURFklXIk0lupkByeUUdinGhSYA0nw/VficiNAGfS/1eumVZlFeJkcLKh4Jc/a abBS9RGQshXGicaWSBxjBdyBubPHWg8LduKTkpHkPCGF37degQWZaD7Y7l+JhUN7y7abiq v8hWNwFMA1hoKwA5eU1q4gOuxwm84wHgOjG4ZO28ZK7KD7MDdOLpoFUClExxVaRjCE3KPL 0mQDAOCP7lDxkdBVT8GEPwY4luBIKJ9J/71FGh/ntYkr8OlkZhR1/+lnmYYXTbRBfx1tlv lWlIrh1Mqy4npDOM29P2i93I1BRF1QbtwThgWIGfg9UWwhu1TN3afIV2f3467w== From: Arne Fitzenreiter <arne_f@ipfire.org> To: development@lists.ipfire.org Subject: [PATCH] unbound: speed-up remove forwarders Date: Sun, 1 Mar 2020 20:41:13 +0100 Message-Id: <20200301194113.16841-1-arne_f@ipfire.org> Authentication-Results: mail01.ipfire.org; auth=pass smtp.mailfrom=arne_f@ipfire.org X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk <development.lists.ipfire.org> List-Unsubscribe: <https://lists.ipfire.org/mailman/options/development>, <mailto:development-request@lists.ipfire.org?subject=unsubscribe> List-Archive: <http://lists.ipfire.org/pipermail/development/> List-Post: <mailto:development@lists.ipfire.org> List-Help: <mailto:development-request@lists.ipfire.org?subject=help> List-Subscribe: <https://lists.ipfire.org/mailman/listinfo/development>, <mailto:development-request@lists.ipfire.org?subject=subscribe> Cc: Arne Fitzenreiter <arne_f@ipfire.org> Errors-To: development-bounces@lists.ipfire.org Sender: "Development" <development-bounces@lists.ipfire.org> |
Series |
unbound: speed-up remove forwarders
|
|
Commit Message
Arne Fitzenreiter
March 1, 2020, 7:41 p.m. UTC
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
---
src/initscripts/system/unbound | 4 ++++
1 file changed, 4 insertions(+)
Comments
Hi, I am not entirely happy with the style of this fix, but it good enough to be shipped as a hot fix for now. I will have a look to remove too many steps during the reload phase and that potentially includes finding another way how to handle Safe Search. Thanks for looking into this. Best, -Michael > On 1 Mar 2020, at 19:41, Arne Fitzenreiter <arne_f@ipfire.org> wrote: > > Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org> > --- > src/initscripts/system/unbound | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/src/initscripts/system/unbound b/src/initscripts/system/unbound > index b3185feab..0aab6cc8c 100644 > --- a/src/initscripts/system/unbound > +++ b/src/initscripts/system/unbound > @@ -595,6 +595,10 @@ case "$1" in > # Call unbound-control and perform the reload > /usr/sbin/unbound-control -q reload > > + if [ "$1" = "remove-forwarders" ]; then > + exit 0 > + fi > + > # Dummy Resolve to wait for unbound > resolve "ping.ipfire.org" &>/dev/null > > -- > 2.17.1 >
After thinking a bit more... do we need to reload unbound at red down ? It should make no difference if we simple remove this "remove forwarders" and its call in red down. Arne Am 2020-03-02 17:02, schrieb Arne Fitzenreiter: > Hi, > > i have no better Idea. > > unbound remove-forwarders not really remove the forwarders since last > changes but > it is called at red down so the initskript should exit after reload and > not try > to resolve any domains. > > Arne > > > Am 2020-03-02 13:06, schrieb Michael Tremer: >> Hi, >> >> I am not entirely happy with the style of this fix, but it good enough >> to be shipped as a hot fix for now. >> >> I will have a look to remove too many steps during the reload phase >> and that potentially includes finding another way how to handle Safe >> Search. >> >> Thanks for looking into this. >> >> Best, >> -Michael >> >>> On 1 Mar 2020, at 19:41, Arne Fitzenreiter <arne_f@ipfire.org> wrote: >>> >>> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org> >>> --- >>> src/initscripts/system/unbound | 4 ++++ >>> 1 file changed, 4 insertions(+) >>> >>> diff --git a/src/initscripts/system/unbound >>> b/src/initscripts/system/unbound >>> index b3185feab..0aab6cc8c 100644 >>> --- a/src/initscripts/system/unbound >>> +++ b/src/initscripts/system/unbound >>> @@ -595,6 +595,10 @@ case "$1" in >>> # Call unbound-control and perform the reload >>> /usr/sbin/unbound-control -q reload >>> >>> + if [ "$1" = "remove-forwarders" ]; then >>> + exit 0 >>> + fi >>> + >>> # Dummy Resolve to wait for unbound >>> resolve "ping.ipfire.org" &>/dev/null >>> >>> -- >>> 2.17.1 >>>
Hi, No, we do not need to reload it. -Michael > On 2 Mar 2020, at 16:08, Arne Fitzenreiter <arne_f@ipfire.org> wrote: > > After thinking a bit more... > > do we need to reload unbound at red down ? > It should make no difference if we simple remove this "remove forwarders" and its call in red down. > > Arne > > > Am 2020-03-02 17:02, schrieb Arne Fitzenreiter: >> Hi, >> i have no better Idea. >> unbound remove-forwarders not really remove the forwarders since last >> changes but >> it is called at red down so the initskript should exit after reload and not try >> to resolve any domains. >> Arne >> Am 2020-03-02 13:06, schrieb Michael Tremer: >>> Hi, >>> I am not entirely happy with the style of this fix, but it good enough >>> to be shipped as a hot fix for now. >>> I will have a look to remove too many steps during the reload phase >>> and that potentially includes finding another way how to handle Safe >>> Search. >>> Thanks for looking into this. >>> Best, >>> -Michael >>>> On 1 Mar 2020, at 19:41, Arne Fitzenreiter <arne_f@ipfire.org> wrote: >>>> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org> >>>> --- >>>> src/initscripts/system/unbound | 4 ++++ >>>> 1 file changed, 4 insertions(+) >>>> diff --git a/src/initscripts/system/unbound b/src/initscripts/system/unbound >>>> index b3185feab..0aab6cc8c 100644 >>>> --- a/src/initscripts/system/unbound >>>> +++ b/src/initscripts/system/unbound >>>> @@ -595,6 +595,10 @@ case "$1" in >>>> # Call unbound-control and perform the reload >>>> /usr/sbin/unbound-control -q reload >>>> + if [ "$1" = "remove-forwarders" ]; then >>>> + exit 0 >>>> + fi >>>> + >>>> # Dummy Resolve to wait for unbound >>>> resolve "ping.ipfire.org" &>/dev/null >>>> -- >>>> 2.17.1
diff --git a/src/initscripts/system/unbound b/src/initscripts/system/unbound index b3185feab..0aab6cc8c 100644 --- a/src/initscripts/system/unbound +++ b/src/initscripts/system/unbound @@ -595,6 +595,10 @@ case "$1" in # Call unbound-control and perform the reload /usr/sbin/unbound-control -q reload + if [ "$1" = "remove-forwarders" ]; then + exit 0 + fi + # Dummy Resolve to wait for unbound resolve "ping.ipfire.org" &>/dev/null