Skip to content

Conversation

@mem
Copy link
Collaborator

@mem mem commented Jul 19, 2024

With DNS, since it's possible use UDP traffic, depending on the relative network location of the server under test, sometimes packets are dropped and the probe ends up timing out. It becomes hard to distinguish between this and an actual failure in the server.

Introduce an optional retry mechanism where requests are retried for a limited number of times. Each request gets its own timeout that still respects the timeout configured for the probe.

For example, if you configure 3 retries, each of them with a 3 second timeout, and the timeout for the probe is 5 seconds, the first attempt might consume 3 seconds, leaving 2 seconds until the deadline. The second request will still use a timeout of 3 seconds, but the probe itself will timeout and it will fail as usual.

Add a new metric that reports the number of attempts. Note that the probe_duration_seconds metric will now report the total time until an answer was obtained. In the above example, if the second attempt produces a response within 1 second, the reported duration will be ~ 4 seconds. The rtt will be ~ 1 second. Both these metrics allow the user to differentiate and track requests that require continous retries, indicating some kind of issue with the server or the network path.

With DNS, since it's possible use UDP traffic, depending on the relative
network location of the server under test, sometimes packets are dropped
and the probe ends up timing out. It becomes hard to distinguish between
this and an actual failure in the server.

Introduce an optional retry mechanism where requests are retried for a
limited number of times. Each request gets its own timeout that still
respects the timeout configured for the probe.

For example, if you configure 3 retries, each of them with a 3 second
timeout, and the timeout for the probe is 5 seconds, the first attempt
might consume 3 seconds, leaving 2 seconds until the deadline. The
second request will still use a timeout of 3 seconds, but the probe
itself will timeout and it will fail as usual.

Add a new metric that reports the number of attempts. Note that the
probe_duration_seconds metric will now report the total time until an
answer was obtained. In the above example, if the second attempt
produces a response within 1 second, the reported duration will be ~ 4
seconds. The rtt will be ~ 1 second. Both these metrics allow the user
to differentiate and track requests that require continous retries,
indicating some kind of issue with the server or the network path.

Signed-off-by: Marcelo E. Magallon <[email protected]>
@mem
Copy link
Collaborator Author

mem commented Jul 19, 2024

@SuperQ I would appreciate your opinion here, particularly regarding the metrics. I tried explaining the case that I'm trying to deal with.

@mem mem requested a review from SuperQ July 20, 2024 14:53
@github-actions github-actions bot added the stale label Sep 18, 2024
@SoulKyu
Copy link

SoulKyu commented Nov 25, 2025

@SuperQ, i'm intersting on this feature too, did you have time reviewing it ?

@github-actions github-actions bot removed the stale label Jan 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants