Skip to content

Commit 15800f2

Browse files
authored
Merge pull request #6151 from RainbowMango/pr_add_PriorityBasedScheduling_featuregate
Introduce PriorityBasedScheduling feature gate
2 parents 475356c + 3800652 commit 15800f2

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

artifacts/deploy/karmada-controller-manager.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ spec:
3333
- --cluster-status-update-frequency=10s
3434
- --failover-eviction-timeout=30s
3535
- --controllers=*,hpaScaleTargetMarker,deploymentReplicasSyncer
36-
- --feature-gates=Failover=true,PropagationPolicyPreemption=true,MultiClusterService=true,StatefulFailoverInjection=true
36+
- --feature-gates=AllAlpha=true,AllBeta=true
3737
- --health-probe-bind-address=0.0.0.0:10357
3838
- --v=4
3939
livenessProbe:

artifacts/deploy/karmada-scheduler.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ spec:
4848
- --scheduler-estimator-ca-file=/etc/karmada/pki/scheduler-estimator-client/ca.crt
4949
- --scheduler-estimator-cert-file=/etc/karmada/pki/scheduler-estimator-client/tls.crt
5050
- --scheduler-estimator-key-file=/etc/karmada/pki/scheduler-estimator-client/tls.key
51+
- --feature-gates=AllAlpha=true,AllBeta=true
5152
- --v=4
5253
volumeMounts:
5354
- name: karmada-config

pkg/features/features.go

+10
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,15 @@ const (
6363
// owner: @mszacillo, @XiShanYongYe-Chang
6464
// alpha: v1.12
6565
StatefulFailoverInjection featuregate.Feature = "StatefulFailoverInjection"
66+
67+
// PriorityBasedScheduling controls whether the Priority-Based Scheduling feature is enabled.
68+
// When enabled, the scheduler prioritizes applications with higher priority values, ensuring they
69+
// are scheduled before lower-priority ones. This is useful for cluster environments where critical
70+
// workloads must be processed first to meet SLA requirements.
71+
//
72+
// owner: @LeonZh0u, @seanlaii, @wengyao04, @whitewindmills, @zclyne
73+
// alpha: v1.13
74+
PriorityBasedScheduling featuregate.Feature = "PriorityBasedScheduling"
6675
)
6776

6877
var (
@@ -83,6 +92,7 @@ var (
8392
MultiClusterService: {Default: false, PreRelease: featuregate.Alpha},
8493
ResourceQuotaEstimate: {Default: false, PreRelease: featuregate.Alpha},
8594
StatefulFailoverInjection: {Default: false, PreRelease: featuregate.Alpha},
95+
PriorityBasedScheduling: {Default: false, PreRelease: featuregate.Alpha},
8696
}
8797
)
8898

0 commit comments

Comments
 (0)