-
Notifications
You must be signed in to change notification settings - Fork 931
cluster status update interval inconsistent with --cluster-status-update-frequency in both push and pull mode #6281
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
Comments
seems like you put the wrong version here,1.31 is karmada latest version, what's your karmada version. |
@LivingCcj have you figured out the root cause? It would be great if you could point out the code that doesn't work as expected. |
At Predicate step, the In pull mode, the Predicate func for karmada-agent. karmada/pkg/util/helper/predicate.go Lines 158 to 174 in 787fd3a
In push mode, the Predicate func for karmada-controller-manager. karmada/cmd/controller-manager/app/controllermanager.go Lines 290 to 321 in 787fd3a
|
Are you saying that for both If so, it would be a serious mistake that affects the performance heavily. cc @zach593 @CharlesQQ take a look |
yeah,just like your saying |
this pr which could fix the issue |
I add and delete workload for many times, but not find the update the Cluster status continuously, which same as ![]() |
@CharlesQQ You've done the test I wanted to do! Thank you very much! |
Thank you for attentions firstly @RainbowMango @CharlesQQ.
|
@LivingCcj can you share some logs? Like @CharlesQQ posted above, showing the sync timeline. |
@LivingCcj Can you figure out which cluster status fields are changing? |
@LivingCcj Can this be reproduced with the upstream version? |
In member cluster,there are more short-period workloads, the number of pod and the request resource of pod will be changed frequently,and the cluster.status.resourceSummary will be updated frequently. @CharlesQQ
|
Seems I reproduced it on my side:
|
Hi @LivingCcj not only the pull cluster has this problem, but the push cluster also has the same problem? |
/assign @LivingCcj |
Thanks for your attentions, the same problem will be issued in |
Would you mind changing the title of this issue to make it clearer? |
/retitle cluster status update interval inconsistent with --cluster-status-update-frequency in both push and pull mode |
When the sub cluster frequently add and delete workload, karmad-agent will update cluster status frequently, that is inconsistent with the configured via the
cluster-status-update-frequency
args.What happened:
when cluster status be changed frequently, the karamda-controller-manager deal with the condition of cluster object frequently.
What you expected to happen:
the interval of cluster.status updated by karmad-agent should be inconsistent with the
cluster-status-update-frequency
(default 10s)How to reproduce it (as minimally and precisely as possible):
Environment:
The text was updated successfully, but these errors were encountered: