-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Improve Node Shutdown Observability #78727
Changes from 4 commits
1e60cef
e781b81
e34a533
64055cb
37e0250
b637514
57756c2
069079b
bb7660c
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 |
---|---|---|
|
@@ -80,6 +80,13 @@ public ClusterState execute(ClusterState currentState) { | |
request.getType(), | ||
request.getReason() | ||
); | ||
} else { | ||
logger.info( | ||
"creating shutdown record for node [{}] of type [{}] with reason [{}]", | ||
request.getNodeId(), | ||
request.getType(), | ||
request.getReason() | ||
); | ||
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. Can you include all the info we have here? Maybe overriding toString in SingleNodeShutdownMetadata would work so we can include the throttling and target node name of those are present. 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. Done - I did indeed delegate this to |
||
} | ||
|
||
final boolean nodeSeen = currentState.getNodes().nodeExists(request.getNodeId()); | ||
|
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.
Super minor nit, but since this is the top-level decision first rather than a plain list (it definitely has multiple sub parts though), can this be 'node_allocation_decision'?
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.
Done and good catch!