Redis cache issues
Bruno Blanes
bruno.blanes at outlook.com
Sat Feb 1 17:39:54 UTC 2025
Hi Yorgos,
Thanks for replying, I will test the master branch version with the fix, but about the Redis timeout issue during runtime, I noticed Unbound is trying to connect on every single query which doesn't seem optimal, there's a noticeable CPU spike when Redis goes offline and, for some reason I still haven't fully figured out yet, all my queries to Unbound timeout even though I think they are being resolved.
I think a redis-reconnect-interval should alleviate this problem, maybe with 1000ms default or something, after which it attempts to reconnect to Redis.
Best regards,
Bruno Ortega Blanes
> From: Yorgos Thessalonikefs <yorgos at nlnetlabs.nl>
> To: unbound-users at lists.nlnetlabs.nl
> Subject: Re: Redis cache issues
> Message-ID: <920c43be-cd3c-4801-a197-27abb51a96e4 at nlnetlabs.nl>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> Hi Bruno,
>
> Current master branch has an unreleased fix to ignore Redis if not there
> during startup/reload.
>
> Previously it was not ignored during these events.
>
> Unbound has connection and command timeouts for Redis.
> The default is 100ms for both and I believe each query pays the timeout
> penalty when trying to load and store values.
>
> Maybe we need a backoff timer when Unbound can't connect?
>
> Best regards,
> -- Yorgos
>
> On 31/01/2025 14:44, Bruno Blanes via Unbound-users wrote:
> > Good morning folks,
> >
> > I noticed that Unbound will not start if Redis cache is configured but
> > unreachable, can anyone elaborate on the design choice behind this?
> >
> > Also, I?ve noticed that when the cache connection is refused, Unbound
> > works just fine querying the root servers and returning the answer,
> > however if the connection timeout, aka Redis server shutdown, all
> > queries timeout rendering my DNS useless.
> >
> > Is this a config issue on my side or also by design?
> >
> > Best regards,
> >
> > Bruno Ortega Blanes
> >
>
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> Unbound-users mailing list
> Unbound-users at lists.nlnetlabs.nl
> https://lists.nlne/
> tlabs.nl%2Fmailman%2Flistinfo%2Funbound-
> users&data=05%7C02%7C%7C352e4b468b3a4eec972608dd42b7fba5%7C8
> 4df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638740080163295261%
> 7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuM
> DAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%
> 7C%7C&sdata=Cxlyb1b7AKAFnimSOf%2FJWblo35Yn5mlfWZCUiq0wWKQ%3
> D&reserved=0
>
>
> ------------------------------
>
> End of Unbound-users Digest, Vol 62, Issue 1
> ********************************************
More information about the Unbound-users
mailing list