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

[ETCM-715] Add new network metric (tried.peers) #959

Merged
merged 3 commits into from Apr 8, 2021

Conversation

jb-lunatech
Copy link
Contributor

Description

  • Detail info log in PeerManagerActor
  • Create new network metric (tried.peers)
  • Create a new Grafana panel computing and displaying the ratio between tried / discovered peers

Proposed Solution

This let Grafana compute the ratio. It is cleaner from the metrics and Scala code point of view, however it takes time to make it work in the Grafana dashboard.

The alternative is to set a ratio metric in Scala (with the drawback of having convoluted metrics)

Important Changes Introduced

Testing

  • Use build.sh in docker/mantis
  • Look for the new network panel in Grafana

@jb-lunatech jb-lunatech self-assigned this Apr 7, 2021
@jb-lunatech jb-lunatech force-pushed the feature/ETCM-715-add-network-metric branch 3 times, most recently from 6084704 to c37c525 Compare April 7, 2021 18:18
s"Trying to connect to ${nodesToConnect.size} more nodes."
s"Trying to connect to ${nodesToConnect.size} more nodes, " +
s"Total tried nodes ${triedNodes.size}, " +
s"Connected nodes ${connectedPeers.peers.size}."
Copy link
Contributor

Choose a reason for hiding this comment

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

This log message becomes a bit confusing like this, for example this is a log message when connecting to etc: Discovered 1154 (can connect to 790) nodes, Blacklisted 426 nodes, handshaked to 6/80, pending connection attempts 4. Trying to connect to 40 more nodes, Total tried nodes 435, Connected nodes 10.

Copy link
Contributor

Choose a reason for hiding this comment

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

What about something like this?
Total number of discovered nodes 1154. Total number of connection attempts 435, blacklisted 426 nodes, connected to 10 nodes. Handshaked 6/80, pending connection attempts with 4 nodes. Trying to connect to 40 more nodes.

Copy link
Contributor

Choose a reason for hiding this comment

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

agree, especially handshaked and connected showing different numbers is confusing.
and generally this looks like too much information

Copy link
Contributor

Choose a reason for hiding this comment

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

Looking in more detail, the Connected nodes 10 is also confusing it is actually 6 handshaked and 4 pending, so maybe I would remove the Connected nodes 10 actually

@jb-lunatech jb-lunatech force-pushed the feature/ETCM-715-add-network-metric branch from c37c525 to b476d49 Compare April 8, 2021 13:06
@jb-lunatech jb-lunatech merged commit 0a7a3d0 into develop Apr 8, 2021
@jb-lunatech jb-lunatech deleted the feature/ETCM-715-add-network-metric branch April 8, 2021 15: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.

None yet

4 participants