Skip to content

Conversation

Arqu
Copy link
Collaborator

@Arqu Arqu commented Oct 1, 2025

Description

Needs n0-computer/iroh-metrics#35 and updating the Cargo.toml's again.

Breaking Changes

Notes & open questions

Change checklist

  • Self-review.
  • Documentation updates following the style guide, if relevant.
  • Tests if relevant.
  • All breaking changes documented.
    • List all breaking changes in the above "Breaking Changes" section.
    • Open an issue or PR on any number0 repos that are affected by this breaking change. Give guidance on how the updates should be handled or do the actual updates themselves. The major ones are:

@Arqu Arqu self-assigned this Oct 1, 2025
Copy link

github-actions bot commented Oct 1, 2025

Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh/pr/3491/docs/iroh/

Last updated: 2025-10-07T18:23:25Z

Copy link

github-actions bot commented Oct 1, 2025

Netsim report & logs for this PR have been generated and is available at: LOGS
This report will remain available for 3 days.

Last updated for commit: f08ab9f

@n0bot n0bot bot added this to iroh Oct 1, 2025
@github-project-automation github-project-automation bot moved this to 🏗 In progress in iroh Oct 1, 2025
@Arqu Arqu force-pushed the arqu/congestion_metrics branch from 9e23616 to a89e698 Compare October 1, 2025 12:51
@Arqu Arqu changed the title WIP: testing some congestion metrics and fixes feat: congestion metrics Oct 1, 2025
@Arqu Arqu moved this from 🏗 In progress to 👀 In review in iroh Oct 1, 2025
@Arqu Arqu marked this pull request as ready for review October 1, 2025 12:51
@dignifiedquire
Copy link
Contributor

conflicts

path_failure_resets: Counter::default(),
path_packet_loss_rate: packet_loss_buckets(),
path_rtt_variance_ms: rtt_variance_buckets(),
path_quality_score: quality_score_buckets(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(not blocking) it's a bit sad we have to do this manually when including histograms now :( I wonder if we could adjust our macro or sth

cc @Frando

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was looking for some magic syntax sugar with a default annotation or sth but couldn't work it out.
The problem is for each histogram you want to provide a specific set of buckets that make sense for that metric specifically, so you need to "adjust" it here. However if there was some magic #[default...] annotation I couldn't find where I pass in those funcs, it would be great.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can add such an annotation to the macro. Can do tomorrow.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here's the macro: n0-computer/iroh-metrics#37

@dignifiedquire dignifiedquire added this to the v0.93.0 milestone Oct 6, 2025
Copy link
Contributor

@flub flub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing really against it if it helps somewhere. But be aware that so much of this will disappear soon. E.g. I just deleted the entire path_validity module in the feat-multipath branch.

I'm expecting to not try and merge any of the metrics changes into there and instead we'll have to give it a separate metrics review to get back at least what may still be relevant once it's merged.

}

fn packet_loss_buckets() -> Histogram {
Histogram::new(vec![0.0, 0.01, 0.05, 0.1, 0.2, 0.5, 1.0])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess the buckets are:

  • [0, 0.01)
  • [0.01, 0.05)
  • [0.1, 0.2)
  • [0.2, 0.5)
  • [0.5, 1.0)
  • [1.0, infinity]

?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

@Arqu
Copy link
Collaborator Author

Arqu commented Oct 7, 2025

I think that's fine, this is mostly a short term exploration of the space.

@Arqu Arqu force-pushed the arqu/congestion_metrics branch from a89e698 to bf1548c Compare October 7, 2025 16:43
@Arqu
Copy link
Collaborator Author

Arqu commented Oct 7, 2025

Currently failing because of the dependency on n0-computer/net-tools#36

@Arqu Arqu enabled auto-merge October 7, 2025 18:20
@Arqu Arqu added this pull request to the merge queue Oct 7, 2025
Merged via the queue into main with commit b6c60d3 Oct 7, 2025
29 checks passed
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in iroh Oct 7, 2025
@Arqu Arqu deleted the arqu/congestion_metrics branch October 7, 2025 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

4 participants