casper-network / casper-network/casper-node

Add tracking for stats similar to ChannelMetrics per peer

Open
#3,769 1 comment 0 reactions 1 assignee Claimed by @marc-casperlabs View on GitHub
Dominant language
Rust
Stars
399
Forks
224
Avg merge
15h 44m
Merged PRs (30d)
2

Description

The node as of version 1.6 tracks metrics per communication channel (which are multiplexed over the regular connection pair) for the entire node. We should add a set of metrics that is similar on a per-client basis, to aid in debugging potentially problematic peers. Access to these metrics should be given only via the diagnostics port for now.
For the implementation, one can either try a lock-based or atomics based approach. In the former case, a new stats structure should be created that contains a simple set of statistics to gather behind an RwLock or similar. With atomics, the existing ChannelMetrics could probaby be reused.
Care should be given to the total increase in memory used and heap allocations, as this is per connection, of which we can potentially have 1000s of.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.