internet-latency-collector: ping a fixed target address per measurement - #4316
Draft
thijsvanemmerik wants to merge 1 commit into
Draft
thijsvanemmerik wants to merge 1 commit into
thijsvanemmerik wants to merge 1 commit into
Conversation
Cloud region probes do not answer ICMP, so a measurement between two regions has to ping a published address in the target region rather than the target's probe. The wanted measurement carries that address, the state file records it, and a stored address that no longer matches recreates the measurement. An empty stored address predates the field and is not a mismatch.
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.
Part of measuring latency between AWS regions with the internet latency collector.
Every RIPE Atlas measurement pings the target probe's own address, but the probes hosted inside AWS
regions do not answer ping, so measurements aimed at them would come back empty. This gives each
measurement its own target address: the target probe's address as before, or, when the collector
reads its regions from a node file, the ping target that file lists for the region.
Getting this wrong is hard to see. The collector drops a result that carries no reply, so pinging an
address that never answers writes zero rows and logs no error. There is no failed run and no
warning.
One behaviour change on the existing path: a measurement is recreated when the target address stored
with it differs from the wanted one. The stored field is new, so it is empty in every state file
written before this change and the comparison is skipped. It can only fire on state written after
it.
Nothing else changes in production. Without a node file the address is the one used today. A region
in a node file with no ping target is skipped with a warning.
Test:
go test ./controlplane/internet-latency-collector/internal/ripeatlas/.... No Docker needed.