-
Notifications
You must be signed in to change notification settings - Fork 41
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
feat: add solana_node_is_active metric #84
feat: add solana_node_is_active metric #84
Conversation
It looks great @andreclaro ! |
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.
LGTM!
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 must admit, I don't quite understand this metric. getIdentity
will return the identity of the node that the validator is pointed to, and then all we do is check if that identity is one of the configured -nodekey
's? I don't quite see how that matches the descriptive of "whether or not the nodekey is active and participating in consensus"
All that being said, I could be misunderstanding completely, so feel free to harshly correct.
@johnstonematt , We operate two mainnet nodes: one is active, and the other is passive.
Failover between the active and passive nodes is managed through a mechanism similar to the Identity Transition process used by Pumpkins Pool, using set-identity feature. You can find more details on this process in their documentation: https://pumpkins-pool.gitbook.io/pumpkins-pool Consequently, we need to know which node is active and passive at every single time: As I mentioned in the description, I implemented a similar feature in solana-mission-control a few months ago: andreclaro/solana-mission-control@a512d72 Aren't you using a similar mechanism? How are you tracking active and passive node? CC: @SEJeff |
I think the issue here is a misunderstanding of the intended use of the I like the idea of tracking whether a validator is active, but I don't think the What do you think? @andreclaro @SEJeff Also, note that I merged in #83 |
d733891
to
ed1fda1
Compare
Yes, agree and I can add that new config parameter and update the logic. I'm just not sure about the name for this new parameter. |
2384750
to
4273fa6
Compare
4273fa6
to
8f30983
Compare
Summary
feat: add solana_node_is_active metric
Details
add the solana_node_is_active metric based on the node keys provided.
This feature will help identify the active validator node(s), serving as the first step toward replacing solana-mission-control, the service currently in use. We implemented a similar feature in solana-mission-control a few months ago: andreclaro/solana-mission-control@a512d72
Testing
Tested in our testnet nodes:
Passive: