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
Conversation
module/metrics.go
Outdated
// 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, hotstuffChain string, hotstuffCurView uint64) |
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.
It doesn't seem like hotstuffChain
argument is included in any of the implementations (eg here)
@@ -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 comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to regenerate pb.go
files as well?
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.
updated
network/message/Makefile
Outdated
# go get github.com/gogo/protobuf/protoc-gen-gofast | ||
# brew install protobuf |
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.
We should be able to put at least the go get
under make install-tools
.
I don't think we assume people have brew
installed anywhere else though, so adding that could be breaking.
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.
Here's what grpc recommends for protoc installation:
https://grpc.io/docs/protoc-installation/
docker-compose -f docker-compose.metrics.yml up -d --remove-orphans | ||
DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1 docker-compose -f docker-compose.nodes.yml up --remove-orphans --build -d |
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 by docker-compose -f docker-compose.metrics.yml
module/metrics/ping.go
Outdated
pc.hotstuffCurView.With(prometheus.Labels{ | ||
LabelNodeID: node.NodeID.String(), | ||
LabelNodeAddress: node.Address, | ||
LabelNodeRole: node.Role.String(), |
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.
is it worth only reporting if it's collection/consensus? so we don't have a ton of zeros in our metrics?
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.
Already did. Only consensus will report this metrics.
I was thinking to report view for collection in the future, but it's a bit more complex, because we would need to also report chain ID.
For now, I think consensus hotstuff view is enough.
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.
I could remove this label as well
Codecov Report
@@ Coverage Diff @@
## master #1462 +/- ##
==========================================
- Coverage 55.30% 55.29% -0.01%
==========================================
Files 516 516
Lines 32168 32181 +13
==========================================
+ Hits 17791 17795 +4
- Misses 11990 11999 +9
Partials 2387 2387
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
// 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 comment
The 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 comment
The reason will be displayed to describe this comment to others. Learn more.
Only Consensus nodes will report metrics. See this screenshot
bors merge |
4bce670
to
4c3798d
Compare
Canceled. |
bors merge |
was flakey |
For https://github.com/dapperlabs/flow-go/issues/5920