Skip to content

[WIP] Rewrite the dashboard documentation - #32854

Merged
rkooo567 merged 15 commits into
ray-project:masterfrom
rkooo567:dashboard-v2-doc
Mar 24, 2023
Merged

rkooo567 merged 15 commits into
ray-project:masterfrom
rkooo567:dashboard-v2-doc

Conversation

@rkooo567

Copy link
Copy Markdown
Contributor

Why are these changes needed?

It is the first draft. Images are not added yet, and they are marked as SANG-TODO here.

The new doc focuses on the usage workflow rather than individual pages. Basically,

  1. It explains a list of common workflows
  2. Have a how-to guide to explain how to do some workflows.
  3. Explanation for individual pages
  4. Advanced usages
  5. References (need a bit more work. Won't be included in this PR)

Related issue number

Checks

Signed-off-by: SangBin Cho <[email protected]>
@rkooo567
rkooo567 requested a review from a team as a code owner February 27, 2023 13:45
Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Comment thread doc/source/ray-core/ray-dashboard.rst Outdated

TODO-SANG Add images

In this case, resource specification for those tasks is incorrect.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we say why it's important for logical CPU to match the expected hardware utilization?

Actually, is it important for those to match?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of "incorrect", maybe explain the impact of this.
Something like: "resource specification for those tasks will lead to wasted physical resources. To address this issue, let’s adjust the num_cpus value to 0.1 so that other tasks or actors can be scheduled to leverage the hardware."

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On top of the page, I added

"""
If the logical resources don't match the physical resource usage, it can lead to the under-utilization of the cluster because the number of tasks and actors are throttled by
the logical resource requirements.
"""

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also added a huawei's comment

Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
@scottsun94

Copy link
Copy Markdown
Contributor
  1. It seems that this documentation page starts to get very long. Shall we consider introducing sub-pages? Something like:
    Ray dashboard
    Get started
    User guides
    Advanced Usage
  2. Shall we talk about each individual view first before the how-to guides? I'm not sure if it's easy to follow before they are familiar with the UI.

Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Comment thread doc/source/ray-core/ray-dashboard.rst Resolved

The cluster view visualizes hierarchical relationship of
machines (nodes) and workers (processes). Each host consists of many workers, and
you can see them by clicking the + button. This also shows the assignment of GPU resources to specific actors or tasks.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we currently show "assignment of GPU resources to specific actors or tasks."?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh it doesn't now. This was a copy from the existing doc (maybe the incorrect information).

We will support this feature though. Maybe I will just keep it since we will fix this within this release

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is supported now

@rkooo567

rkooo567 commented Mar 13, 2023 •

Copy link
Copy Markdown
Contributor Author

It seems that this documentation page starts to get very long. Shall we consider introducing sub-pages? Something like:

Hmm is there the best practice here? I don't think it is long enough to break down the pages (it will be rather cluttered)?

Shall we talk about each individual view first before the how-to guides? I'm not sure if it's easy to follow before they are familiar with the UI.

IMO, it is better starting how to guide. I don't think it is difficult to learn each UI view & anyone will want to learn all individual UIs (it should be on-demand) without purposes. I am open for the discussion though

@ollie-iterators

Copy link
Copy Markdown

Is this going to stop the documentation tests showing up as failing on https://flakey-tests.ray.io/?

@rkooo567

Copy link
Copy Markdown
Contributor Author

@ollie-iterators no it is not related

@ollie-iterators

Copy link
Copy Markdown

Ok, I just saw that the documentation tests are passing now anyway.

@ollie-iterators

Copy link
Copy Markdown

I was just wondering if it would cause it to pass because the documentation test was not failing in this PR.

@rkooo567

Copy link
Copy Markdown
Contributor Author

It seems that this documentation page starts to get very long. Shall we consider introducing sub-pages? Something like:
Ray dashboard
Get started
User guides
Advanced Usage

Hmm actually thinking again, I think it is not a bad idea. What about this structure?

Ray dashboard
Get started
User guides
> How to Guide
> Views
Advanced Usage

@rkooo567

Copy link
Copy Markdown
Contributor Author

Also, @alanwguo @scottsun94 before I add pictures, can you have a final look?

Signed-off-by: SangBin Cho <[email protected]>
Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Comment thread doc/source/ray-core/ray-dashboard.rst Outdated

References
----------
How to disable the dashboard

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above, we should either show how to do it in both vm and kuberay here or send users to the dashboard section under the ray cluster documentation where we list all different ways to do it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done. But idk how to do it in k8s. do you know who I should follow up with?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
@rkooo567

Copy link
Copy Markdown
Contributor Author

Btw, I synced with @angelinalg Here's the conclusion

  1. we won't break down the doc by sections for now. She & I will restructure the debugging doc at some point, and we will address it at that time.
  2. For more complicated workflows, we will move them to "advanced usage"

@rkooo567 rkooo567 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done addressing comments. Btw, I removed the comment about "comparing hardware vs logical resources" because I think that fits into the troubleshooting doc (troubleshooting the under-utilization of the cluster).

I will add images tomorrow and ask for the final feedback.

Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Comment thread doc/source/ray-core/ray-dashboard.rst Outdated

References
----------
How to disable the dashboard

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done. But idk how to do it in k8s. do you know who I should follow up with?

Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Signed-off-by: SangBin Cho <[email protected]>
Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Comment thread doc/source/ray-core/ray-dashboard.rst Resolved

@angelinalg angelinalg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
Comment thread doc/source/ray-core/ray-dashboard.rst Resolved
@rkooo567

Copy link
Copy Markdown
Contributor Author

Hey I will merge the PR first and then update the youtube video in a separate PR.

@rkooo567
rkooo567 merged commit 3d1f6b4 into ray-project:master Mar 24, 2023
elliottower pushed a commit to elliottower/ray that referenced this pull request Apr 22, 2023
It is the first draft. Images are not added yet, and they are marked as SANG-TODO here.

The new doc focuses on the usage workflow rather than individual pages. Basically,

It explains a list of common workflows
Have a how-to guide to explain how to do some workflows.
Explanation for individual pages
Advanced usages
References (need a bit more work. Won't be included in this PR)

Signed-off-by: elliottower <[email protected]>
ProjectsByJackHe pushed a commit to ProjectsByJackHe/ray that referenced this pull request May 4, 2023
It is the first draft. Images are not added yet, and they are marked as SANG-TODO here.

The new doc focuses on the usage workflow rather than individual pages. Basically,

It explains a list of common workflows
Have a how-to guide to explain how to do some workflows.
Explanation for individual pages
Advanced usages
References (need a bit more work. Won't be included in this PR)

Signed-off-by: Jack He <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants