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
Large amounts of notebook servers 50+ causes jupyter webapp slowness. #7259
Comments
Created PR #7260 |
After doing additional testing I realized the primary problem was the read from disk for every request for every notebook. I expect the serialized API requests will also cause slowness but a better fix for that is true pagination. |
I took a look at the code and fixing that backend code to allow pagination should be pretty straightforward. I'd be happy to pick up that work. Although I do not have experience with angular js for implementing the front end changes. |
…ow#7259 (kubeflow#7260) * Only load spawner_ui_config.yaml once every 10 minutes. * Update cache to 60 seconds
The way the jupyter web app is loaded causes slowness when the there are a lot of notebooks in a single namespace.
The notebook_dict_from_k8s_obj function calls the kubernetes api for events on each notebook in the namespace. With 50 notebooks we're seeing around 1.8-2 second response time. This is really bogging down the UI.
Relevant Code:
kubeflow/components/crud-web-apps/jupyter/backend/apps/common/routes/get.py
Lines 52 to 57 in d1c40f9
kubeflow/components/crud-web-apps/jupyter/backend/apps/common/utils.py
Lines 122 to 143 in d1c40f9
kubeflow/components/crud-web-apps/jupyter/backend/apps/common/status.py
Lines 46 to 49 in d1c40f9
kubeflow/components/crud-web-apps/jupyter/backend/apps/common/status.py
Lines 160 to 175 in d1c40f9
The text was updated successfully, but these errors were encountered: