-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[UI] [Nodes] Disable actions for dead nodes #34387
[UI] [Nodes] Disable actions for dead nodes #34387
Conversation
Signed-off-by: chaowang <[email protected]>
25f2abc
to
50aebb8
Compare
needs more discussion with @scottsun94 about how to deal with dead workers logs |
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.
For all UI changes, please add a screenshot to the PR description.
CPU Flame Graph | ||
</a> | ||
<br /> | ||
{/* )} */} |
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.
remove
Hm. I'm not sure. I think at one point we only showed alive Nodes in the list view but that is no longer the case. Please remove the hard-coding. |
Thanks Alan. I just wanted to double-confirm that the backend logic has filtered the workers and is only returning "ALIVE" workers to the front end. This is because I need to display different UI for workers that are "ALIVE" versus those that are "DEAD". Could you please let me know whom I should contact to confirm the backend logic, or provide me with a code pointer that I can refer to? |
Please check |
@alanwguo In this PR, I need to demonstrate distinct UIs for dead workers and alive workers. However, I'm unable to determine the state of a worker(not node) using the available API, as it doesn't include a "state" or "is_alive" field |
Double confirmed, no filtering in |
I think all workers are guaranteed to be alive. We don't show information about dead workers. Can we apply this change only to nodes for this PR? |
@scottsun94 All workers are guaranteed to be alive and we don't show information about dead workers. According to this figma. Do you think we could skip the UI changes for workers? |
SG. Let's skip it for this PR. However, is there any reason why we don't expose/have the info about the dead workers? @rkooo567 |
@@ -94,7 +95,9 @@ export const NodeRow = ({ | |||
</Box> | |||
</TableCell> | |||
<TableCell> | |||
<Link to={`/logs/${encodeURIComponent(logUrl)}`}>Log</Link> |
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 tried to get the state of a node to decide whether to show logs or hide logs. But I noticed that in line 78, we are using raylet.state.
<TableCell>
<StatusChip type="node" status={raylet.state} />
</TableCell>
Thus, we have two state here, node's state and raylet's state.
Why do we need to show raylet's state here? Do I need to hide or show the logs based on raylet's state?
@alanwguo
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.
@rkooo567 can you explain the difference between these states?
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.
node == raylet in Ray
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.
Besides, we can refactor these API responses from the dashboard at some point..
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.
Good idea!
@@ -94,7 +95,9 @@ export const NodeRow = ({ | |||
</Box> | |||
</TableCell> | |||
<TableCell> | |||
<Link to={`/logs/${encodeURIComponent(logUrl)}`}>Log</Link> |
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.
Besides, we can refactor these API responses from the dashboard at some point..
oops sorry ignore my aproval ^ |
Signed-off-by: chaowang <[email protected]>
Signed-off-by: chaowang <[email protected]>
Signed-off-by: chaowang <[email protected]>
Signed-off-by: chaowang <[email protected]>
Signed-off-by: chaowang <[email protected]>
Signed-off-by: chaowang <[email protected]>
Signed-off-by: chaowang <[email protected]>
453d9b3
to
b261517
Compare
Signed-off-by: chaowang <[email protected]>
We are going to remove logs for dead nodes and remove Stack Trace and CPU Flame Graph for dead workers. Otherwise, users will click the link and jump to a page without information they need. Signed-off-by: Jack He <[email protected]>
We are going to remove logs for dead nodes and remove Stack Trace and CPU Flame Graph for dead workers. Otherwise, users will click the link and jump to a page without information they need.
Why are these changes needed?
We are going to remove logs for dead nodes and remove Stack Trace and CPU Flame Graph for dead workers.
Otherwise, users will click the link and jump to a page without information they need.
Summary of Changes
Discussion and Confusion
As part of the PR, we have also come to an agreement, which I will list here for future reference.
Related issue number
fixes #32593
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.