@@ -113,6 +113,20 @@ const (
113
113
// owner: @mszacillo, @Dyex719, @RainbowMango, @XiShanYongYe-Chang, @zhzhuang-zju, @seanlaii
114
114
// alpha: v1.15
115
115
MultiplePodTemplatesScheduling featuregate.Feature = "MultiplePodTemplatesScheduling"
116
+
117
+ // ControllerPriorityQueue controls whether the controller-runtime Priority Queue for controllers is enabled.
118
+ // When enabled, during the startup phase of karmada-controller-manager and karmada-agent,
119
+ // controllers implemented with controller-runtime will prioritize processing recent cluster changes first,
120
+ // while deferring items without recent updates that still need to be processed to the end of the queue.
121
+ // This helps the system quickly catch up with the latest state and reduces the perceived
122
+ // backlog from external users.
123
+ // However, enabling this feature may increase the overall number of reconciliations. This is
124
+ // because newer events spend less time in the queue, which reduces the chance of them being
125
+ // deduplicated before processing.
126
+ //
127
+ // owner: @zach593
128
+ // alpha: v1.15
129
+ ControllerPriorityQueue featuregate.Feature = "ControllerPriorityQueue"
116
130
)
117
131
118
132
var (
@@ -139,6 +153,7 @@ var (
139
153
LoggingBetaOptions : {Default : true , PreRelease : featuregate .Beta },
140
154
ContextualLogging : {Default : true , PreRelease : featuregate .Beta },
141
155
MultiplePodTemplatesScheduling : {Default : false , PreRelease : featuregate .Alpha },
156
+ ControllerPriorityQueue : {Default : false , PreRelease : featuregate .Alpha },
142
157
}
143
158
)
144
159
0 commit comments