Skip to content

Switch to EventSource #19

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

Closed
wants to merge 3 commits into from
Closed

Switch to EventSource #19

wants to merge 3 commits into from

Conversation

yuvipanda
Copy link
Collaborator

@yuvipanda yuvipanda commented Jun 15, 2019

Switch to using EventSource

  • One request per user, with automatic reconnects! Much
    better than getting request logs be flodded by calls to
    /metrics
  • Doesn't overlap with the prometheus endpoint at
    /metrics anymore

TODO:

  • Add a polyfill so this works on IE / Edge

Add plugin mechanism

  • Plugins can provide arbitrary resources that are sent
    to the client on the same EventSource.
  • Default rss metric is provided this way

- One request per user, with automatic reconnects! Much
  better than getting request logs be flodded by calls to
  /metrics
- Doesn't overlap with the prometheus endpoint at
  /metrics anymore

IE doesn't support EventSource, so we need to figure out
how to add a shim
Plugins can provide resource usage metrics that are
sent to the client via the eventsource
I like this a little better, since we can add more
resources other than memory later.

Also pass the notebookapp to plugins, rather than
specific config. They can thus use their own
configurables
@yuvipanda
Copy link
Collaborator Author

Would be nice to resurrect this.

davidbrochart pushed a commit to davidbrochart/jupyter-resource-usage that referenced this pull request Dec 14, 2022
…nt-pooling

Pool only the active kernel and if the sidebar is visible
@yuvipanda
Copy link
Collaborator Author

And the universe keeps spinning

@yuvipanda yuvipanda closed this Jan 10, 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.

1 participant