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

Commits on Jun 22, 2023

  1. jobsprofiler: introduce collection of job bundles

    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
    adityamaru committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    ec46b6b View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2023

  1. job: add job profiler bundles to the job details page

    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.
    adityamaru committed Jun 24, 2023
    Configuration menu
    Copy the full SHA
    f0aa43e View commit details
    Browse the repository at this point in the history