Skip to content

Commit 4f1e7f0

Browse files
Syspretorjiuyu
andauthored
Support set the num of maxConcurrentReconciles (#4405)
Signed-off-by: jiuyu <guotongyu.gty@alibaba-inc.com> Co-authored-by: jiuyu <guotongyu.gty@alibaba-inc.com>
1 parent fdc1508 commit 4f1e7f0

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

charts/fluid/fluid/templates/controller/thinruntime_controller.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ spec:
4242
- --development=false
4343
- --pprof-addr=:6060
4444
- --enable-leader-election
45+
- --runtime-workers={{ .Values.runtime.thin.runtimeWorkers }}
4546
- --leader-election-namespace={{ include "fluid.namespace" . }}
4647
command: ["thinruntime-controller", "start"]
4748
env:

charts/fluid/fluid/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ runtime:
212212
# cpu: 1000m
213213
# memory: 512Mi
214214
enabled: false
215+
runtimeWorkers: 3
215216
controller:
216217
imagePrefix: *defaultImagePrefix
217218
imageName: thinruntime-controller

cmd/thin/app/thin.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ func init() {
8484
startCmd.Flags().StringVarP(&pprofAddr, "pprof-addr", "", "", "The address for pprof to use while exporting profiling results")
8585
startCmd.Flags().BoolVarP(&development, "development", "", true, "Enable development mode for fluid controller.")
8686
startCmd.Flags().BoolVar(&eventDriven, "event-driven", true, "The reconciler's loop strategy. if it's false, it indicates period driven.")
87+
startCmd.Flags().IntVar(&maxConcurrentReconciles, "runtime-workers", 3, "Set max concurrent workers for ThinRuntime controller")
8788
startCmd.Flags().Float32VarP(&kubeClientQPS, "kube-api-qps", "", 20, "QPS to use while talking with kubernetes apiserver.") // 20 is the default qps in controller-runtime
8889
startCmd.Flags().IntVarP(&kubeClientBurst, "kube-api-burst", "", 30, "Burst to use while talking with kubernetes apiserver.") // 30 is the default burst in controller-runtime
8990
startCmd.Flags().StringVar(&controllerWorkqueueDefaultSyncBackoffStr, "workqueue-default-sync-backoff", "5ms", "base backoff period for failed reconcilation in controller's workqueue")

0 commit comments

Comments
 (0)