-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[frontend] Kubeflow does N queries for in the "Runs" page #11346
Comments
#10797 should resolve this. Make sure that you're on the latest version of KFP. |
@droctothorpe I see. |
@droctothorpe I've tried to replace only the |
That's odd. Maybe look at the source code in the chrome console and make sure it includes the code in question. Alternatively, you can try to build and push a new image from the master branch and deploy that. Another option is to run the UI in development mode from your local machine. You can see how to do that here. |
@droctothorpe I believe that the build of 2.3.0 didn't build your PR. Would be great if you can try it yourself, test the |
@asaff1 Can you confirm your issue is solved if you build the image manually and use in your deployment? If the latest image did not fix this issue, we need to reopen it. |
@rimolive I will try to build and will update. What I can say for sure is that the 2.3.0 image still have the bug. This doesn't match the release notes of the 2.3.0. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
2.4 was just released, @asaff1. Have you tried against that version of the frontend? |
@droctothorpe As for now, I don't see an available image for frontend version 2.4.0. |
Crud. Guess you'll need to build yourself until that's cut. |
@asaff1 in 2.4 we have moved away from GCR and instead are using GHCR: https://github.com/kubeflow/pipelines/pkgs/container/kfp-frontend |
@HumairAK |
Thanks for confirming, @asaff1. I'll take a look at this. |
@asaff1, I just tested on my local machine. I have 2.3 deployed on a local (colima-backed) k8s cluster. The image is set to The non-duplicated request being made is: |
And here's the experiments page only making a single request to the runs API: |
@droctothorpe Looks different on my end - In your screenshot of the "Runs" page I see the [View pipeline] placeholder, on my 2.3.0 UI it shows the actual pipeline name. Is it possible it is due to a configuration difference passed to the UI deployment, or something different the UI gets from the backend? I only tried to upgrade the UI image to 2.3.0 (and 2.4.0), I didn't upgrade the API backend (ml-pipeline), and not the whole kubeflow installation. My backend (and the kubeflow release) is still at 2.1.0. I assumed this issue is only a UI bug. (This is what I understood from your fix PR) |
I recommend checking if you can reproduce the error against a full KFP 2.3.0 install. |
@droctothorpe I cannot fully install 2.3.0, because it had another bugs. (I checked full kubeflow installations from 2.1.0 to 2.4.0 and settled on 2.1.0). |
@asaff1 The PR was tested against and contributed as a fix for the current version of the code, not older versions and not environments that mix and match different versions. You can try upgrading just your KFP backend version or diffing the relevant code between 2.1.0 and the tip of master to identify the discrepancy. |
Environment
Kubeflow pipelines standalone, AWS setup
Steps to reproduce
Open your network panel in dev tools. Navigate to the Runs page and look at your network console. Try to increase page size in the UI, and see many requests.
When navigating to the "Runs" page, kubeflow will send an API call to fetch a list of runs. There are two problems here:
total_size
field, which does unneeded COUNT(*) query on the whole "run_details" table, the count is not even displayed in the UI.This is really slow, even for page size of 10, tested with my medium size RDS instance. When page size is 100, this page will do over 100 SQL queries.
Expected result
To get the runs data with the pipeline info, one query should be enough. Page should load faster.
Materials and Reference
Impacted by this bug? Give it a 👍.
The text was updated successfully, but these errors were encountered: