Merge pull request #6151 from RainbowMango/pr_add_PriorityBasedScheduling_featuregate

Introduce PriorityBasedScheduling feature gate
This commit is contained in:
karmada-bot 2025-02-24 15:31:19 +08:00 committed by GitHub
commit 15800f237e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 1 deletions

View File

@ -33,7 +33,7 @@ spec:
- --cluster-status-update-frequency=10s - --cluster-status-update-frequency=10s
- --failover-eviction-timeout=30s - --failover-eviction-timeout=30s
- --controllers=*,hpaScaleTargetMarker,deploymentReplicasSyncer - --controllers=*,hpaScaleTargetMarker,deploymentReplicasSyncer
- --feature-gates=Failover=true,PropagationPolicyPreemption=true,MultiClusterService=true,StatefulFailoverInjection=true - --feature-gates=AllAlpha=true,AllBeta=true
- --health-probe-bind-address=0.0.0.0:10357 - --health-probe-bind-address=0.0.0.0:10357
- --v=4 - --v=4
livenessProbe: livenessProbe:

View File

@ -48,6 +48,7 @@ spec:
- --scheduler-estimator-ca-file=/etc/karmada/pki/scheduler-estimator-client/ca.crt - --scheduler-estimator-ca-file=/etc/karmada/pki/scheduler-estimator-client/ca.crt
- --scheduler-estimator-cert-file=/etc/karmada/pki/scheduler-estimator-client/tls.crt - --scheduler-estimator-cert-file=/etc/karmada/pki/scheduler-estimator-client/tls.crt
- --scheduler-estimator-key-file=/etc/karmada/pki/scheduler-estimator-client/tls.key - --scheduler-estimator-key-file=/etc/karmada/pki/scheduler-estimator-client/tls.key
- --feature-gates=AllAlpha=true,AllBeta=true
- --v=4 - --v=4
volumeMounts: volumeMounts:
- name: karmada-config - name: karmada-config

View File

@ -63,6 +63,15 @@ const (
// owner: @mszacillo, @XiShanYongYe-Chang // owner: @mszacillo, @XiShanYongYe-Chang
// alpha: v1.12 // alpha: v1.12
StatefulFailoverInjection featuregate.Feature = "StatefulFailoverInjection" StatefulFailoverInjection featuregate.Feature = "StatefulFailoverInjection"
// PriorityBasedScheduling controls whether the Priority-Based Scheduling feature is enabled.
// When enabled, the scheduler prioritizes applications with higher priority values, ensuring they
// are scheduled before lower-priority ones. This is useful for cluster environments where critical
// workloads must be processed first to meet SLA requirements.
//
// owner: @LeonZh0u, @seanlaii, @wengyao04, @whitewindmills, @zclyne
// alpha: v1.13
PriorityBasedScheduling featuregate.Feature = "PriorityBasedScheduling"
) )
var ( var (
@ -83,6 +92,7 @@ var (
MultiClusterService: {Default: false, PreRelease: featuregate.Alpha}, MultiClusterService: {Default: false, PreRelease: featuregate.Alpha},
ResourceQuotaEstimate: {Default: false, PreRelease: featuregate.Alpha}, ResourceQuotaEstimate: {Default: false, PreRelease: featuregate.Alpha},
StatefulFailoverInjection: {Default: false, PreRelease: featuregate.Alpha}, StatefulFailoverInjection: {Default: false, PreRelease: featuregate.Alpha},
PriorityBasedScheduling: {Default: false, PreRelease: featuregate.Alpha},
} }
) )