-
Notifications
You must be signed in to change notification settings - Fork 266
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
The secret list page loads slowly #6400
Comments
Thanks for raising this issue. Can you confirm
There are a number of performance issues we are currently investigating and this information will greatly help |
@richard-cox Thanks for your reply.
I have seen from a community user environment that the data download size for the secret interface is about 30MB.
Obviously, yes. However, this may not be their intention. Because the svc-token and tls certificate types in the secret store the x509 certificate, this data will be relatively large.
I try to create 2k svc accounts, these will be created as secrets synchronously and saved as x509 certificates. Referring to this script, 2k secrets can be generated in the test namespace.
Check one of the secrets and you'll see an x509 certificate.
Using a browser to access the secret list page, even if I specify the In my network environment, this API request(/v1/secrets) completed the request in about 5s+:
|
The UI frequently uses Currently the work of filtering by namespace is done in ResourceTable. It would be more efficient if we just fetched less data with |
Related issue #6515 |
Related issue #6483 (which is a workaround, more improvements to come) |
The related issues should help sort this out but there are also going to be backend fixes coming in later that should address this. |
@niusmallnan You might be interested in a feature from 2.7.5 that filters resources via the values in the namespace / project filter in the header. This greatly reduces the number of resources fetched by the UI. To enable please go to burger menu top left --> |
This falls in the general 'we shouldn't fetch all resources' sphere. There's a current workaround listed in #6400 (comment) and will be fully resolved via #8527 |
Setup
Describe the bug
If the number of these two kinds of secrets is large: svc-account token and TLS certificate.
When using global admin or cluster owner to view the secret list, the UI response time is slow.
To Reproduce
Create hundreds of secrets with the svc-account token or TLS certificate.
Result
Even if ns is specified on the UI, this API interface(
/v1/secrets/
) will obtain the data of all namespaces, and it will take a long time to download the data.Expected Result
The UI loads quickly and improves the user experience.
Additional context
I try to think of some solutions.
Option One
Only request the specified ns data, which can avoid loading all secrets with a high probability.
Option II
Secret type filtering is supported on the UI, and only data of type
Opaque
is queried by default. This may require some enhancements to the steve API.The text was updated successfully, but these errors were encountered: