hiero-ledger / hiero-ledger/hiero-consensus-node

Create healthyNetworkFraction metric that uses wall clock time

Open
#8,975 0 comments 0 reactions 0 assignees View on GitHub
Platform
Dominant language
Java
Stars
406
Forks
226
Avg merge
3d 4h
Merged PRs (30d)
210

Description

The metric `healthyNetworkFraction` currently works off of consensus time. This has two implications:

- honest nodes never send false alarms that the network is down. If a node has connectivity problems, it will stop reporting new values for this metric.
- if consensus halts, this metric stops reporting new data. It's actually impossible for this metric to report values that are 2/3 or lower.

To augment this, create a new metric called `presumedHealthyNetworkFraction` that uses wall clock time. It should compute the fraction of nodes (with consensus weight) that have created an event in the last 10 seconds as measured by wall clocks.

- if the network halts, all honest nodes will report 0 for this metric
- if an individual node becomes partitioned away from the network, it may falsely report 0 even if the rest of the network is alive and healthy

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.