Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: bump libp2p with traffic metrics fix #1642

Merged
merged 1 commit into from
Apr 4, 2023
Merged

Conversation

alrevuelta
Copy link
Contributor

@alrevuelta alrevuelta commented Apr 4, 2023

  • This PR contains a nim-libp2p version bump, containing an important fix included in Fix traffic metrics vacp2p/nim-libp2p#879
  • It fixes a bug in the in libp2p_network_bytes metric, used to calculate the incoming bandwidth of the node. Due to this bug, this metric was reporting values of x5 times (or even more) the real bandwidth of the node.
  • After this fix, both libp2p_network_bytes in/out metrics now match with other ones (provided by cadvisor). So now we should have better obseravbility on the consumed bandwdith on nwaku nodes.

Image showing before/after fix. Before, nim-libp2p metrics differed from cadvisor (same pattern but amplified). After 14:05 (see time axis), I deployed with the fix in this PR and the bandwidths now match.
image

@alrevuelta alrevuelta requested a review from jm-clius April 4, 2023 08:37
@jm-clius
Copy link
Contributor

jm-clius commented Apr 4, 2023

Btw, we've not been very consistent with this, but we try to stick to the prefixes defined by semantic commits/conventional commits for commit messages (i.e. fix: rather than bug:): https://www.conventionalcommits.org/en/v1.0.0/ This will help us write e.g. automated release tools.
Also: https://gist.github.com/joshbuchea/6f47e86d2510bce28f8e7f42ae84c716

@alrevuelta alrevuelta changed the title bug: bump libp2p with traffic metrics fix fix: bump libp2p with traffic metrics fix Apr 4, 2023
@alrevuelta
Copy link
Contributor Author

You are very right! Fixed.

@alrevuelta alrevuelta merged commit 0ef4667 into master Apr 4, 2023
@alrevuelta alrevuelta deleted the bump-libp2p-metrics branch April 4, 2023 09:19
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.

2 participants