-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Notebook Culling for VSCode/CodeServer style notebooks #6920
Comments
I've sent a PR to extend the existing implementation of the culling controller (#6807 and proposals/20220121-jupyter-notebook-idleness.md) to extract Istio HTTP metrics from VSCode and RStudio Νotebook Pods and use them to decide on their idleness. |
@apo-ger will this also work for vscode and rstudio within jupyterlab via jupyter-server-proxy? |
#7186 is related |
I believe This is due to the Culling controller is only considering notebook kernel's Here's my proposal for fixing this issue: User shall be able to config Culling controller to consider terminals workload by adding options to the notebook-controller-config, for example:
|
@wjhhuizi check the |
It seems that proposals was created 2 years ago, and I tested running a long execution code block in the notebook then close the browser tab, it seems the last_activity from api/status is still updating properly. Code Tested:
|
Okay it seems if I remove the line |
Updating proposal to
|
We will probably just replace this one here with #7156 |
+1 |
/kind feature
Why you need this feature:
We use VSCode/CodeServer style notebooks (https://github.com/coder/code-server) where it is critical to have a mechanism to terminate underutilized resources. If such a mechanism does not exist, it can be easy to have notebooks bound to expensive GPU resources even while no one is actively using them.
Describe the solution you'd like:
For Jupyter style notebooks there is a
notebook culling
feature where underutilized resources can be automatically terminated by the notebook controller if unused for a certain amount of time. It does not appear this feature works when using VSCode style notebooks, but the same type of feature would solve this problem as well.Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
The text was updated successfully, but these errors were encountered: