When karmada scheduler use scheduler estimator feature, the replicaEstimators.maxAvailableReplicas will invoke accurate scheduler estimator and general scheduler estimator.
In practical scenarios, we prefer to determine which scheduler estimators to enable through parameter configuration.
There are three kind of scheduler estimator mode:
1、general scheduler-estimator
2、resource model scheduler-estimator
3、accurate scheduler-estimator
Current configuration:
1、 general scheduler-estimator
|
func init() { |
|
replicaEstimators["general-estimator"] = NewGeneralEstimator() |
|
} |
2、accurate scheduler-estimator
|
func RegisterSchedulerEstimator(se *SchedulerEstimator) { |
|
replicaEstimators["scheduler-estimator"] = se |
|
unschedulableReplicaEstimators["scheduler-estimator"] = se |
|
} |
|
|
When karmada scheduler use scheduler estimator feature, the
replicaEstimators.maxAvailableReplicaswill invoke accurate scheduler estimator and general scheduler estimator.In practical scenarios, we prefer to determine which scheduler estimators to enable through parameter configuration.
There are three kind of scheduler estimator mode:
1、general scheduler-estimator
2、resource model scheduler-estimator
3、accurate scheduler-estimator
Current configuration:
1、 general scheduler-estimator
karmada/pkg/estimator/client/general.go
Lines 34 to 36 in 307163d
2、accurate scheduler-estimator
karmada/pkg/estimator/client/accurate.go
Lines 34 to 38 in 307163d