-
Notifications
You must be signed in to change notification settings - Fork 369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cache TTLs for individual IP addresses in DNS responses. #6732
Commits on Oct 29, 2024
-
This patch enables the caching of TTLs for individual IPs in DNS resp…
…onses. - Implement tracking of individual IP TTLs for FQDNs in the DNS cache. - Upon expiration of an IP's TTL, trigger a new DNS query. - Evict only those IPs that are no longer present in the latest DNS response and have exceeded their original TTL. Signed-off-by: Hemant <hkbiet@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for e98030f - Browse repository at this point
Copy the full SHA e98030fView commit details -
Added clock field of type clock.Clock in fqdnController type.
- Replace time.Now() usages with the clock set in fqdnController. - Inject fakeClock for tests. Removed mockDnsQueryQueue implementation. Signed-off-by: Hemant <hkbiet@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for fe43d74 - Browse repository at this point
Copy the full SHA fe43d74View commit details
Commits on Oct 30, 2024
-
Enable caching of individual IP TTLs in DNS responses and add clock s…
…upport - Implement tracking of TTLs for individual IPs linked to FQDNs in the DNS cache. - Automatically trigger a new DNS query when an IP's TTL expires. - Evict only those IPs that are no longer present in the latest DNS response and have surpassed their original TTL. - Added clock field of type clock.Clock in fqdnController. - Pass clock while initializing fqdn controller. Signed-off-by: Hemant <hkbiet@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for a22bef9 - Browse repository at this point
Copy the full SHA a22bef9View commit details -
Merge branch 'cache-individual-ip-ttl' of https://github.com/hkiiita/…
…antrea into cache-individual-ip-ttl
Configuration menu - View commit details
-
Copy full SHA for d8fe685 - Browse repository at this point
Copy the full SHA d8fe685View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8b05b7e - Browse repository at this point
Copy the full SHA 8b05b7eView commit details -
fix imports using golangci-fix
Signed-off-by: Hemant <hkbiet@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 2822742 - Browse repository at this point
Copy the full SHA 2822742View commit details -
rephrase various comments as per review and correct poll time in even…
…tuality test to 1 second Signed-off-by: Hemant <hkbiet@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 8a03d3a - Browse repository at this point
Copy the full SHA 8a03d3aView commit details
Commits on Oct 31, 2024
-
Refactored newFQDNController() to pass a clock to the DNS query workq…
…ueue. Updated onDNSResponse() to requeue DNS queries even when same IPs are receieved in a response. Added and updated comments as per review. Signed-off-by: Hemant <hkbiet@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for cfcc0e0 - Browse repository at this point
Copy the full SHA cfcc0e0View commit details -
correct grouping of imports in test file.
Signed-off-by: Hemant <hkbiet@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for e3e25df - Browse repository at this point
Copy the full SHA e3e25dfView commit details
Commits on Nov 1, 2024
-
Updated clock parameter to type clock.WithTicket for newFQDNController.
Updated comment clarifying the case when ipWithExpirationMap is of zero length in onDNSResponse. Updated test case which ensures the requery time to be the later time amongst the TTL already cached and TTL received in DNS response for cases involving same IPs, as present in DNS cache, being received. Signed-off-by: Hemant <hkbiet@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 505616c - Browse repository at this point
Copy the full SHA 505616cView commit details
Commits on Nov 2, 2024
-
removed type assertion for clock parameter in test.
regplaced dnsQueryQueue.AddAfter logic as before. Signed-off-by: Hemant <hkbiet@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 0753a33 - Browse repository at this point
Copy the full SHA 0753a33View commit details
Commits on Nov 4, 2024
-
Refactor import organization to separate local antrea.io/antrea impor…
…ts from external imports Signed-off-by: Hemant <hkbiet@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for c217871 - Browse repository at this point
Copy the full SHA c217871View commit details
Commits on Nov 5, 2024
-
Fix the race condition between DelayingQueue and fakeClock in TestOnD…
…NSResponse test. - Seemingly a race condition between the event of creation of Timer by DelayeingQueue and Step function of fakeClock is failing the test. - The fix Uses the idea in antrea-io#6407 - The fix uses the ,already implemented wrapper, around fakeClock with a method that counts the number of times DelayedQueue's Timer has been called. Signed-off-by: Hemant <hkbiet@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 6c6e6f2 - Browse repository at this point
Copy the full SHA 6c6e6f2View commit details -
Refactor require.Eventually to a one-liner for consistency
Signed-off-by: Hemant <hkbiet@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for f939732 - Browse repository at this point
Copy the full SHA f939732View commit details