Merge pull request #4472 from chaosi-zju/log
simply optimizing the scheduler log
This commit is contained in:
commit
5ca4e5a3f6
|
@ -104,6 +104,8 @@ func (g *genericScheduler) Schedule(
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return result, fmt.Errorf("failed to assign replicas: %w", err)
|
return result, fmt.Errorf("failed to assign replicas: %w", err)
|
||||||
}
|
}
|
||||||
|
klog.V(4).Infof("Assigned Replicas: %v", clustersWithReplicas)
|
||||||
|
|
||||||
if scheduleAlgorithmOption.EnableEmptyWorkloadPropagation {
|
if scheduleAlgorithmOption.EnableEmptyWorkloadPropagation {
|
||||||
clustersWithReplicas = attachZeroReplicasCluster(clusters, clustersWithReplicas)
|
clustersWithReplicas = attachZeroReplicasCluster(clusters, clustersWithReplicas)
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
return availableTargetClusters
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue