Merge pull request #88637 from jktomer/priority-fairness-flag
Rename --enable-inflight-quota-handler to --enable-priority-and-fairness Kubernetes-commit: 79377454e8dfa4c9c96f786c2f34e2a6230f7139
This commit is contained in:
		
						commit
						65eed4cf58
					
				|  | @ -50,7 +50,7 @@ type ServerRunOptions struct { | ||||||
| 	// apiserver library can wire it to a flag.
 | 	// apiserver library can wire it to a flag.
 | ||||||
| 	MaxRequestBodyBytes       int64 | 	MaxRequestBodyBytes       int64 | ||||||
| 	TargetRAMMB               int | 	TargetRAMMB               int | ||||||
| 	EnableInflightQuotaHandler bool | 	EnablePriorityAndFairness bool | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| func NewServerRunOptions() *ServerRunOptions { | func NewServerRunOptions() *ServerRunOptions { | ||||||
|  | @ -64,7 +64,7 @@ func NewServerRunOptions() *ServerRunOptions { | ||||||
| 		ShutdownDelayDuration:       defaults.ShutdownDelayDuration, | 		ShutdownDelayDuration:       defaults.ShutdownDelayDuration, | ||||||
| 		JSONPatchMaxCopyBytes:       defaults.JSONPatchMaxCopyBytes, | 		JSONPatchMaxCopyBytes:       defaults.JSONPatchMaxCopyBytes, | ||||||
| 		MaxRequestBodyBytes:         defaults.MaxRequestBodyBytes, | 		MaxRequestBodyBytes:         defaults.MaxRequestBodyBytes, | ||||||
| 		EnableInflightQuotaHandler:  true, | 		EnablePriorityAndFairness:   true, | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | @ -193,7 +193,7 @@ func (s *ServerRunOptions) AddUniversalFlags(fs *pflag.FlagSet) { | ||||||
| 		"handler, which picks a randomized value above this number as the connection timeout, "+ | 		"handler, which picks a randomized value above this number as the connection timeout, "+ | ||||||
| 		"to spread out load.") | 		"to spread out load.") | ||||||
| 
 | 
 | ||||||
| 	fs.BoolVar(&s.EnableInflightQuotaHandler, "enable-inflight-quota-handler", s.EnableInflightQuotaHandler, ""+ | 	fs.BoolVar(&s.EnablePriorityAndFairness, "enable-priority-and-fairness", s.EnablePriorityAndFairness, ""+ | ||||||
| 		"If true and the APIPriorityAndFairness feature gate is enabled, replace the max-in-flight handler with an enhanced one that queues and dispatches with priority and fairness") | 		"If true and the APIPriorityAndFairness feature gate is enabled, replace the max-in-flight handler with an enhanced one that queues and dispatches with priority and fairness") | ||||||
| 
 | 
 | ||||||
| 	fs.DurationVar(&s.ShutdownDelayDuration, "shutdown-delay-duration", s.ShutdownDelayDuration, ""+ | 	fs.DurationVar(&s.ShutdownDelayDuration, "shutdown-delay-duration", s.ShutdownDelayDuration, ""+ | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue