Multithread DNS cache warmups performed over UDP #13355
Replies: 2 comments 3 replies
-
@chobits , perhaps you will be interested on it. |
Beta Was this translation helpful? Give feedback.
-
You would think it doesn’t matter because dns is fairly fast but I have noticed in big corp land with private dcs there can be all kinda infra hops and fws to go through so dns latencies sometimes can avg 10-35ms to crazy times as long as 3-5 seconds on a super small % of records when you have name servers delegating to gtms or having to do further recursive lookups elsewhere. Now in some network zones almost all dns responses are around 1-5ms tops so typically its all pretty fast but multithreading it could yield better performance for all cases regardless. |
Beta Was this translation helpful? Give feedback.
-
Right now checking kong tcp dumps on startup, we have slow DNS startup warmup, as kong iteratively goes through each dns fqdn to resolve and does it 1 by 1 for 1000s of records in 90 seconds:
Smarter implementation would be multithreading 100s of lookups at a time and reading the responses back in multithreaded to support large scale dns cache warmups so slower records or timeouts etc. don't hold up the caching. Just noting it here for an enhancement in Kong's future. Using kong 3.7.1 in this env.
Beta Was this translation helpful? Give feedback.
All reactions