-
Notifications
You must be signed in to change notification settings - Fork 890
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
karmada controller reconcile performs performance optimization #5790
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
Comments
CharlesQQ
added
the
kind/feature
Categorizes issue or PR as related to a new feature.
label
Nov 6, 2024
CharlesQQ
changed the title
resource_match_policy takes too long time
Resource Detector controller reconcile performs performance optimization
Nov 8, 2024
/assign @CharlesQQ |
CharlesQQ
changed the title
Resource Detector controller reconcile performs performance optimization
karmada controller reconcile performs performance optimization
Nov 13, 2024
For the resource detector controller, by adjusting the parameter concurrent-resource-template-syncs=60, the queue backlog is reduced from 16 minutes to less than 1 minute. |
This was referenced Nov 13, 2024
By setting the parameters --kube-api-qps=200 --kube-api-burst=300, bind-controller's queue backlog is reduced to 1 minute and 15 seconds. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What would you like to be added:
karmada/pkg/detector/detector.go
Lines 356 to 387 in b3d3bcd
The resource amount of pp and deployment is about 7000
runtime.DefaultUnstructuredConverter.FromUnstructured
andruntime.DefaultUnstructuredConverter.FromUnstructured
take a long time to perform type conversion; can this function call be removed?Is there a better way to optimize the above problems?
Why is this needed:
As shown below, The resource_match_policy_duration_seconds_bucket metric indicates that the execution took more than 0.5 seconds or even 0.9 seconds; This may cause the execution time of the resource detector controller reconcile to be too long, and the workqueue queue to create a long backlog.
By looking at the pprof cpu profile, we found that the function ConvertToTypedObject takes a long time to execute.
The text was updated successfully, but these errors were encountered: