question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Resource Info Request

See original GitHub issue

This is a bit of a follow on to https://github.com/jupyter/jupyter/issues/212, addressing the computational context section of the jupyter spark roadmap.

/cc @holdenk @minrk @yuvipanda @rdblue


When working in a jupyter environment, it would be helpful to see current resource usage

  • CPU(s)
  • Memory of the system
  • Memory of the current kernel

Beyond that, people need information from libraries. Taking Spark as an example, they want to know several fields:

  • Spark UI (string - URL)
  • Memory on executors
  • State of executors (?)
  • Spark Version (string)
  • Hadoop Version (string)

Min, Yuvi and I have been talking about a message, similar to the kernel_info_request called resource_info_request and resource_info_reply to get information about the system.

Message type: resource_info_request:

content = {
}

Message type: resource_info_reply:

content = {
  resources: [
    {
      type: "kernel",
      metrics: [
        { value: x, max: y, name: "cpu" },
        { value: x, max: y, name: "memory" }
      ]
    }
  ]
};

If the kernel supports it (and the frontend wants to handle it), other types / libraries can provide their own information on resources (in Python, they’d have a registration API).

{
  type: "spark",
  metrics: [
    { value: x, name: "num_executors", display_name: "Executors" },
    ...
  ]
}

Optionally, if the kernel sends the system level data:

    {
      type: "system",
      metrics: [
        { value: x, max: y, name: "cpu" },
        { value: x, max: y, name: "memory" }
      ]
    },

I’m not hard set on any of the messaging here, so I’d love to hear more about naming and extensibility on top of this.


Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:4
  • Comments:26 (26 by maintainers)

github_iconTop GitHub Comments

4reactions
rgbkrkcommented, Aug 22, 2018

Live at JupyterCon, a standing ovation occurred for this protocol change.

1reaction
ivanovcommented, Aug 28, 2017

I’ve got a prototype implementation of this that I’m developing with the help of the Jovyan Popular Front.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ResourceInfo (Java(TM) EE 7 Specification APIs)
public interface ResourceInfo. An injectable class to access the resource class and resource method matched by the current request. Methods in this class ......
Read more >
Quest Resource Holding Corp - Information Request Form
Information Request Form · First Name* · Last Name* · Title · Organization · Investor Type* · Address · Address 2 · City....
Read more >
Resources - Information Request - Mastercard Incorporated
By submitting the form, you agree and acknowledge that your personal data will be processed by Mastercard International Incorporated and its affiliates (“ ......
Read more >
FOIA.gov - Freedom of Information Act
This site can help you determine if filing a FOIA request is the best option for you and help you create your request...
Read more >
Resources - Information Request - HP Investor Relations
To request information via mail, please fill out and submit the form below: Investor Kit (Latest Annual Report, 10-K, Proxy, Earnings Release, &...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found