Blocky with redis #557
-
Good morning, Yesterday I installed 0.19 of blocky in my cluster, however, I noticed that grafana blocky chart had really terrible average response times > 1s. I then reverted back to 0.18 and also restarted redis to be sure and these response times were back to normal ~50ms. My question is should I have restarted redis when upgrading to 0.19? Would this have perhaps helped performance? Note I run in average of 2-5 replicas of blocky. I could also create an issue if that could help. I had to enable the filtering option on I seem to get some broke pipes in the blocky logs these are the only things I have changed and for the time being have reverted. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
I don't think restarting Redis would do much, but I'm not very familiar with that code. Any chance you can collect trace log for a query that takes a long time so we can narrow this down? For the bootstrap issue, I think it's not the resolving that's problematic (since resolving The same behavior is used for any DoH upstream. That code will retry the query twice (3 tries total), so it might (randomly) start with IPv6, timeout/fail, retry and choose IPv4 at some point. Basically wasting time trying IPv6. The broken pipe error makes it sound like the client is disconnecting before blocky responds. One thing relevant here is that current |
Beta Was this translation helpful? Give feedback.
I don't think restarting Redis would do much, but I'm not very familiar with that code.
Any chance you can collect trace log for a query that takes a long time so we can narrow this down?
For the bootstrap issue, I think it's not the resolving that's problematic (since resolving
AAAA
over IPv4 is not an issue), but the connecting to the file host over HTTP.The code uses a random IP from what was resolved for the host. And, unless you filtered
A
orAAAA
, it resolves both. Meaning by default blocky will sometimes try to connect via IPv6 to the file host.Is IPv6 connectivity not working in your blocky host?
The same behavior is used for any DoH upstream. That code will retry the query twic…