make synchromanager worker configurable
Closed this issue · 6 comments
cleverhu commented
What would you like to be added?
- Add option WorkerNumber for
clustersynchro-manager
such as
WorkerNumber int // WorkerNumber is the number of worker goroutines
- change the code from
synchromanager.Run(1, ctx.Done())
tosynchromanager.Run(c.WorkerNumber, ctx.Done())
in
pkg/synchromanager/clustersynchro_manager.go
- If the WorkerNumber is less than or equal to 0, we should set the default value to 3.
Why is this needed?
Now the worker goroutine number for the cluster synchronization controller in clustersynchro manager is hardcode to 1, which results in the cluster init will become slowly if the user joined too many clusters. Therefore, the worker goroutine number should be configurable.
clusterpedia-bot commented
cleverhu commented
/kind good-first-issue
clusterpedia-bot commented
wlp1153468871 commented
/assign
Iceber commented
@wlp1153468871 If there are any questions we can discuss together.
wlp1153468871 commented
@wlp1153468871 If there are any questions we can discuss together.
I'm a bit busy recently, I'll deal with it on weekends.Thanks.