auth Lua health checks: more responsiveness#16389
Open
miodvallat wants to merge 4 commits intoPowerDNS:masterfrom
Open
auth Lua health checks: more responsiveness#16389miodvallat wants to merge 4 commits intoPowerDNS:masterfrom
miodvallat wants to merge 4 commits intoPowerDNS:masterfrom
Conversation
Pull Request Test Coverage Report for Build 19332892815Details
💛 - Coveralls |
Habbie
previously approved these changes
Oct 30, 2025
Member
Habbie
left a comment
There was a problem hiding this comment.
approved, but please think about the comment i posted
rgacogne
reviewed
Nov 6, 2025
Contributor
Author
|
Logic slightly updated to try and make sure the checker thread, unless awaken earlier to handle new requests, sleeps the same time as before and not a full interval (i.e. takes into account the time it spent processing its queue). This yields a bit more deterministic timings, which the Lua tests are relying upon. |
…fore. Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
Fixes: PowerDNS#16369 Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
Otherwise, the periodic checks from the tests which have run previously can still trigger and change the status of a given IP at a different time than expected by the test code. This is especially true in CI environments. Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
Contributor
Author
|
The last commit to the tests ought to make the CI behaviour much more reliable and finally make the tests pass again. (🤞🏻) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Short description
The current state of the health check thread is to check for statuses checks to launch, every
lua-health-checks-intervalseconds.This design has two issues:
lua-health-checks-intervalseconds, which will be noticeable if this value is large (as noticed in Lua health checks usually don't trigger after the first resolve but rather wait for lua-health-checks-interval #16369).lua-health-checks-intervalseconds sleep.This PR attempts to address this in two commits:
Checklist
I have: