<div dir="ltr"><div dir="ltr">Hi Dominik,</div><div dir="ltr"><br></div><div dir="ltr">On Sun, Aug 25, 2024 at 2:51 PM Dominik Derigs via Dnsmasq-discuss <<a href="mailto:dnsmasq-discuss@lists.thekelleys.org.uk">dnsmasq-discuss@lists.thekelleys.org.uk</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Many possibilities and the more we know, the better. I really doubt there is anything systematic concerning dnsmasq in docker but rather something related to the particular container or the particular configuration.<br></blockquote><div><br></div><div>My bad - I didn't mention, that the container worked just fine for months until we completed the migration and put it under full load.</div><div><br></div><div>So this freezing issue happens only under significant load (so perhaps it's some race condition), e.g. this is our stats for 4 hours:</div><div><br></div><div><font face="monospace">dnsmasq: time 1724557801<br>dnsmasq: cache size 150, 0/711 cache insertions re-used unexpired cache entries.<br>dnsmasq: queries forwarded 4744, queries answered locally 3823<br>dnsmasq: queries for authoritative zones 0<br>dnsmasq: DNSSEC per-query subqueries HWM 0<br>dnsmasq: DNSSEC per-query crypto work HWM 0<br>dnsmasq: DNSSEC per-RRSet signature fails HWM 0<br>dnsmasq: pool memory in use 672, max 1248, allocated 2400<br>dnsmasq: child processes for TCP requests: in use 0, highest since last SIGUSR1 0, max allowed 20.<br>dnsmasq: server X.X.X.X#53: queries sent 4160, retried 3, failed 0, nxdomain replies 196, avg. latency 2ms<br>dnsmasq: server X.X.X.X#53: queries sent 2412, retried 2, failed 0, nxdomain replies 72, avg. latency 4ms</font><br></div><div><br></div><div><div dir="ltr"><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Sincerely,</div><div>Danil Smirnov</div></div></div></div></div></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Best,<br>
Dominik<br>
<br>
<br>
>Am 25. August 2024 12:21:27 MESZ schrieb Dimitry Andric <<a href="mailto:dimitry@unified-streaming.com" target="_blank">dimitry@unified-streaming.com</a>>:<br>
>>On 25 Aug 2024, at 11:07, Danil Smirnov <<a href="mailto:danil.smirnov@gmail.com" target="_blank">danil.smirnov@gmail.com</a>> wrote:<br>
>>> <br>
>>> There is some evidence on the Internet that dnsmasq doesn't play well with Docker (when run in a Docker container), i.e.:<br>
>>> <br>
>>> <a href="https://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2021q4/015909.html" rel="noreferrer" target="_blank">https://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2021q4/015909.html</a><br>
>>> <a href="https://www.reddit.com/r/homelab/comments/1d7w3l9/struggling_to_diagnose_irregular_hangs_with/" rel="noreferrer" target="_blank">https://www.reddit.com/r/homelab/comments/1d7w3l9/struggling_to_diagnose_irregular_hangs_with/</a><br>
>>> <a href="https://github.com/dockur/dnsmasq/issues/7" rel="noreferrer" target="_blank">https://github.com/dockur/dnsmasq/issues/7</a><br>
>>> <br>
>>> I have also faced the same issue - after some hours/days, dnsmasq becomes irresponsive and can't be fixed by e.g. docker kill --signal=SIGHUP, but only by the container restart. Memory consumption didn't grow and no errors/warnings were found in the logs.<br>
>>> <br>
>>> Are there any suspects we can consider and start checking how to fix?<br>
>><br>
>>Has anybody ever attached a debugger to such a hanging instance? Or at the least run an strace on it?<br>
>><br>
>>Because without more information it is very unlikely that the root cause will be found.<br>
>><br>
>>-Dimitry<br>
>><br>
>><br>
>>_______________________________________________<br>
>>Dnsmasq-discuss mailing list<br>
>><a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
>><a href="https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss" rel="noreferrer" target="_blank">https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss</a><br>
<br>
_______________________________________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
<a href="https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss" rel="noreferrer" target="_blank">https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss</a><br>
</blockquote></div></div>