fix: host backup task worker limit (#23347)

Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
This commit is contained in:
Jian Qiu
2025-09-22 09:48:20 +08:00
committed by GitHub
parent 64fa9f1675
commit 185332fa28
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -312,7 +312,7 @@ func initImageCacheWorkerManager() {
}
func initBackupWorkerManager() {
backupW = workmanager.NewWorkManger("BackupDelayTaskWorkers", TaskFailed, TaskComplete, options.HostOptions.DefaultRequestWorkerCount)
backupW = workmanager.NewWorkManger("BackupDelayTaskWorkers", TaskFailed, TaskComplete, options.HostOptions.BackupTaskWorkerCount)
}
func InitWorkerManagerWithCount(count int) {
+1
View File
@@ -171,6 +171,7 @@ type SHostOptions struct {
MaxReservedMemory int `default:"10240" help:"host reserved memory"`
BackupTaskWorkerCount int `default:"2" help:"backup task worker count"`
DefaultRequestWorkerCount int `default:"8" help:"default request worker count"`
ImageCacheWorkerCount int `default:"8" help:"default request worker count"`
ContainerStartWorkerCount int `default:"1" help:"container start worker count"`