-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Add GPU info to new dashboard #27074
Conversation
Have first node be default expanded Signed-off-by: Alan Guo <[email protected]>
Signed-off-by: Alan Guo <[email protected]>
This is great :) |
@alanwguo is it possible to assign someone else as well for reviewing the frontend code? I can review briefly, but I am not confident I can do a quality review. (only superficial one is possible from my end) |
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.
Signed-off-by: Alan Guo <[email protected]>
Signed-off-by: Alan Guo <[email protected]>
Signed-off-by: Alan Guo <[email protected]>
Signed-off-by: Alan Guo <[email protected]>
Signed-off-by: Alan Guo <[email protected]>
Signed-off-by: Alan Guo <[email protected]>
Signed-off-by: Alan Guo <[email protected]>
Signed-off-by: Alan Guo <[email protected]>
Signed-off-by: Alan Guo <[email protected]>
node: NodeDetail; | ||
}) => { | ||
const workerGRAMEntries = (node.gpus ?? []) | ||
.map((gpu, i) => { |
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.
use reduce() to handle workerGRAMEntries instead of map().filter()
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.
What's the reason for the suggestion? I find map + filter to be easier to understand (better for code maintainability) than reduce functions.
pick for 2.0.0 but not an rc0 blocker |
One question: What's the reason why GPU is N/A when there's GRAM available? |
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.
Approving for a high level approach. Didn't do detailed review in code
Only show N/A if gpu utilization is undefined Signed-off-by: Alan Guo <[email protected]>
@alanwguo do you think I can merge it without further frontend review? (should we ask someone like Shawn?) |
shawn is reviewing |
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. Would have liked to see some tests but I guess that there isn't test setup rn
export const NodeGPUView = ({ node }: { node: NodeDetail }) => { | ||
return ( | ||
<div style={{ minWidth: GPU_COL_WIDTH }}> | ||
{node.gpus !== undefined && node.gpus.length !== 0 ? ( |
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.
nit: you could do node.gpus?.length
instead of node.gpus !== undefined && node.gpus.length !== 0
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.
Unfortunately, the typescript compiler isn't smart enough to realize node.gpus
is not null in the next line when node.gpus.length is not null.
Signed-off-by: Alan Guo <[email protected]>
Lmk when it is ready to merge! |
@rkooo567 please merge anytime |
Support a GPU column for the new dashboard Have first node be default expanded Signed-off-by: Alan Guo [email protected] fixes #13889 Addresses comment from #26996
Support a GPU column for the new dashboard Have first node be default expanded Signed-off-by: Alan Guo [email protected] fixes #13889 Addresses comment from #26996
Support a GPU column for the new dashboard Have first node be default expanded Signed-off-by: Alan Guo [email protected] fixes ray-project#13889 Addresses comment from ray-project#26996 Signed-off-by: Stefan van der Kleij <[email protected]>
Have first node be default expanded
Signed-off-by: Alan Guo [email protected]
Why are these changes needed?
Related issue number
fixes #13889
Addresses comment from #26996
Checks
scripts/format.sh
to lint the changes in this PR.