-
Notifications
You must be signed in to change notification settings - Fork 166
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
[Consensus] add hotstuff view to ping route #1462
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -406,6 +406,6 @@ type PingMetrics interface { | |
// The nodeInfo provides additional information about the node such as the name of the node operator | ||
NodeReachable(node *flow.Identity, nodeInfo string, rtt time.Duration) | ||
|
||
// NodeInfo tracks the software version and sealed height of a node | ||
NodeInfo(node *flow.Identity, nodeInfo string, version string, sealedHeight uint64) | ||
// NodeInfo tracks the software version, sealed height and hotstuff view of a node | ||
NodeInfo(node *flow.Identity, nodeInfo string, version string, sealedHeight uint64, hotstuffCurView uint64) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @zhangchiqing - will all node type report this? or only consensus nodes There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Only Consensus nodes will report metrics. See this screenshot |
||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,5 @@ message PingRequest { | |
message PingResponse { | ||
string version = 1; // node software version | ||
uint64 blockHeight = 2; // latest sealed block height | ||
uint64 hotstuffView = 3; // latest hotstuff cur view | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need to regenerate There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. updated |
||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is useful, however, I had to remove it, because the
--remove-orphans
will stop the containers created bydocker-compose -f docker-compose.metrics.yml