You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/memberagent/main.go
+49-4Lines changed: 49 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -87,14 +87,21 @@ var (
87
87
propertyProvider=flag.String("property-provider", "none", "The property provider to use for the agent.")
88
88
region=flag.String("region", "", "The region where the member cluster resides.")
89
89
cloudConfigFile=flag.String("cloud-config", "/etc/kubernetes/provider/config.json", "The path to the cloud cloudconfig file.")
90
-
availabilityCheckInterval=flag.Int("availability-check-interval", 5, "The interval in seconds between attempts to check for resource availability when resources are not yet available.")
91
-
driftDetectionInterval=flag.Int("drift-detection-interval", 15, "The interval in seconds between attempts to detect configuration drifts in the cluster.")
92
90
watchWorkWithPriorityQueue=flag.Bool("enable-watch-work-with-priority-queue", false, "If set, the apply_work controller will watch/reconcile work objects that are created new or have recent updates")
93
91
watchWorkReconcileAgeMinutes=flag.Int("watch-work-reconcile-age", 60, "maximum age (in minutes) of work objects for apply_work controller to watch/reconcile")
94
92
deletionWaitTime=flag.Int("deletion-wait-time", 5, "The time the work-applier will wait for work object to be deleted before updating the applied work owner reference")
pprofPort=flag.Int("pprof-port", 6065, "port for pprof profiling")
97
95
hubPprofPort=flag.Int("hub-pprof-port", 6066, "port for hub pprof profiling")
96
+
// Work applier requeue rate limiter settings.
97
+
workApplierRequeueRateLimiterAttemptsWithFixedDelay=flag.Int("work-applier-requeue-rate-limiter-attempts-with-fixed-delay", 1, "If set, the work applier will requeue work objects with a fixed delay for the specified number of attempts before switching to exponential backoff.")
98
+
workApplierRequeueRateLimiterFixedDelaySeconds=flag.Float64("work-applier-requeue-rate-limiter-fixed-delay-seconds", 5.0, "If set, the work applier will requeue work objects with this fixed delay in seconds for the specified number of attempts before switching to exponential backoff.")
99
+
workApplierRequeueRateLimiterExponentialBaseForSlowBackoff=flag.Float64("work-applier-requeue-rate-limiter-exponential-base-for-slow-backoff", 1.2, "If set, the work applier will start to back off slowly at this factor after it finished requeueing with fixed delays, until it reaches the slow backoff delay cap. Its value should be larger than 1.0 and no larger than 100.0")
100
+
workApplierRequeueRateLimiterInitialSlowBackoffDelaySeconds=flag.Float64("work-applier-requeue-rate-limiter-initial-slow-backoff-delay-seconds", 2, "If set, the work applier will start to back off slowly at this delay in seconds.")
101
+
workApplierRequeueRateLimiterMaxSlowBackoffDelaySeconds=flag.Float64("work-applier-requeue-rate-limiter-max-slow-backoff-delay-seconds", 15, "If set, the work applier will not back off longer than this value in seconds when it is in the slow backoff stage.")
102
+
workApplierRequeueRateLimiterExponentialBaseForFastBackoff=flag.Float64("work-applier-requeue-rate-limiter-exponential-base-for-fast-backoff", 1.2, "If set, the work applier will start to back off fast at this factor after it completes the slow backoff stage, until it reaches the fast backoff delay cap. Its value should be larger than the base value for the slow backoff stage.")
103
+
workApplierRequeueRateLimiterMaxFastBackoffDelaySeconds=flag.Float64("work-applier-requeue-rate-limiter-max-fast-backoff-delay-seconds", 900, "If set, the work applier will not back off longer than this value in seconds when it is in the fast backoff stage.")
104
+
workApplierRequeueRateLimiterSkipToFastBackoffForAvailableOrDiffReportedWorkObjs=flag.Bool("work-applier-requeue-rate-limiter-skip-to-fast-backoff-for-available-or-diff-reported-work-objs", true, "If set, the rate limiter will skip the slow backoff stage and start fast backoff immediately for work objects that are available or have diff reported.")
0 commit comments