Skip to content
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

job: add job profiler bundles to the job details page #105481

Closed
wants to merge 2 commits into from

Conversation

adityamaru
Copy link
Contributor

This change adds a new component to the Profiler tab
of the job details page that supports collecting and viewing
job profiler bundles. The component has a button to collect
job profiler bundles. These bundles are then listed in a sorted
table with the ability to download each bundle.

The above operations are backed by the infrastructure added
in #105384.

Note, the Profiler tab is currently disabled for CC but this
change allows for a future project to enable the collection of
bundles through the CC console as well.

Informs: #105076
Release note (ui change): collect and download job profiler
bundles from the Profiler tab on the job details page.

Similar to statement bundles this change introduces the
infrastructure to collect and read job profiler bundles.
Right now, a job profiler bundle will only contain the
latest DSP diagram for a job, but going forward this will
give us a place to dump raw files such as:
- cluster-wide job traces
- cpu profiles
- trace-driven aggregated stats
- raw payload and progress protos

Downloading this bundle will be exposed in a future patch in
all of the places where statement bundles are today:
- DBConsole
- CLI shell
- SQL shell

This change introduces a builtin that constructs
and writes the bundle for a job to the system.job_info
table. It also introduces a new endpoint on the status
server to read this constructed bundle. The next set of
PRs will add the necessary components to allow downloading
the bundle from the DBConsole.

Informs: cockroachdb#105076

Release note: None
This change adds a new component to the `Profiler` tab
of the job details page that supports collecting and viewing
job profiler bundles. The component has a button to collect
job profiler bundles. These bundles are then listed in a sorted
table with the ability to download each bundle.

The above operations are backed by the infrastructure added
in cockroachdb#105384.

Note, the `Profiler` tab is currently disabled for CC but this
change allows for a future project to enable the collection of
bundles through the CC console as well.

Informs: cockroachdb#105076
Release note (ui change): collect and download job profiler
bundles from the `Profiler` tab on the job details page.
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@adityamaru adityamaru requested a review from a team June 24, 2023 03:19
@adityamaru
Copy link
Contributor Author

closing in favour of #106879

@adityamaru adityamaru closed this Jul 17, 2023
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.

2 participants