Skip to content

Commit

Permalink
completed last-mile latency measurement: scamper trace version
Browse files Browse the repository at this point in the history
Adds both task `lml` (executable `netrics-lml`) and task alias
`lml-scamper` (`netrics-lml-scamper`) for clarity.

This version of the measurement is added to the default configuration
but commented out as it may not be enabled by default.

For speed and niceness, this lml test will randomly select an endpoint
to trace, from a default set of Google DNS as well as CloudFlare DNS.
(The former is generally speedier to respond; regardless, it might be
"nice" to round-robin, and for that matter to fall back in the event of
response failure.)

Otherwise:

Measurements' schedules in default configuration now use hashed cron
expressions to *discourage* their collision (though any which *may not*
run concurrently will be configured as such).

completes #13

part of #3
  • Loading branch information
jesteria committed Feb 28, 2023
1 parent 16ed873 commit b7261d9
Show file tree
Hide file tree
Showing 7 changed files with 239 additions and 255 deletions.
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ packages = [{include = "netrics", from = "src"}]

[tool.poetry.dependencies]
python = "^3.8"
fate-scheduler = "0.1.0-rc.6"
fate-scheduler = "0.1.0-rc.7"
netifaces = "^0.11.0"

[tool.poetry.dev-dependencies]
Expand All @@ -25,6 +25,8 @@ netrics = "netrics:main"
# built-in measurement modules
netrics-dev = "netrics.measurement.dev:main"
netrics-dns-latency = "netrics.measurement.dns_latency:main"
netrics-lml = "netrics.measurement.lml:main"
netrics-lml-scamper = "netrics.measurement.lml:main"
netrics-ndt7 = "netrics.measurement.ndt7:main"
netrics-ookla = "netrics.measurement.ookla:main"
netrics-ping = "netrics.measurement.ping:main"
Expand Down
5 changes: 4 additions & 1 deletion src/netrics/conf/include/measurements.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ping:
schedule: "*/5 * * * *"
schedule: "H/5 * * * *"
param:
destinations:
# network locator: results label
Expand All @@ -23,3 +23,6 @@ ping:
77.67.119.129: Paris
195.89.146.193: Stockholm
190.98.158.1: Sao_Paulo

# lml-scamper:
# schedule: "H/5 * * * *"
233 changes: 0 additions & 233 deletions src/netrics/measurement/builtin/netrics-lml.py

This file was deleted.

Loading

0 comments on commit b7261d9

Please sign in to comment.