Replies: 3 comments 5 replies
-
|
Can you share the test? The thing is, there is in-memory cache, with TTL between 1 and 60 seconds, so you are repeatedly requesting the same domain. It should be already cached and return immediately. Also keep in mind, that the resolver is very new. I only tested it with my local SystemD DNS server. I possibly also need to add more logging to make it clear where is the error coming from. |
Beta Was this translation helpful? Give feedback.
-
|
Ok, I've tried it myself and can reproduce the delays, it's very strange, will dig into that. |
Beta Was this translation helpful? Give feedback.
-
|
In my case, the delay seems to be coming from the DNS server itself. Requests timeout after it accumulates some number of pending queries. Then they clear and things are going again. The 5s is the timeout from resolv.conf, you most likely have 2 retries configured, so it can delay up to 10 seconds and then it fails. I can see two approaches:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am trying to understand the characteristics of zio and tried the new custom resolver, I have a test that repeatedly resolves single domain N times. With max_threads=1
For N = 100 my test takes ~0.02 seconds.
For N = 200 it takes 5 seconds
For N = 450 it still takes 5 seconds
For N = 500 it takes 10 seconds
For N = 1000 it takes 10 seconds
For N = 1100 i start getting
NameServerFailureNote that I run
vtable.netLookup2x per resolve (don't ask). I also tried to run lookup only once per resolve, while times stayed roughly the same with N*2, the NameServerFailures still started at N=1100 (with half thevtable.netLookupruns)I also tried adding batching to resolve 100 at a time, which solved both the huge jumps in time to finish and the
NameServerFailuresIs the issue on my part and I need to prevent too many async tasks? 400 simultaneous tasks feels like it shouldn't be too many to start causing such delays. Any insight?
Beta Was this translation helpful? Give feedback.
All reactions