Merge pull request #4472 from chaosi-zju/log

simply optimizing the scheduler log
This commit is contained in:
karmada-bot 2023-12-26 11:02:21 +08:00 committed by GitHub
commit 5ca4e5a3f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -104,6 +104,8 @@ func (g *genericScheduler) Schedule(
if err != nil {
return result, fmt.Errorf("failed to assign replicas: %w", err)
}
klog.V(4).Infof("Assigned Replicas: %v", clustersWithReplicas)
if scheduleAlgorithmOption.EnableEmptyWorkloadPropagation {
clustersWithReplicas = attachZeroReplicasCluster(clusters, clustersWithReplicas)
}

View File

@ -96,7 +96,7 @@ func calAvailableReplicas(clusters []*clusterv1alpha1.Cluster, spec *workv1alpha
}
}
klog.V(4).Infof("Target cluster: %v", availableTargetClusters)
klog.V(4).Infof("Target cluster calculated by estimators (available cluster && maxAvailableReplicas): %v", availableTargetClusters)
return availableTargetClusters
}