Browse Source

fix: 容器 CPU 限制上限改为机器逻辑核心数 (#1551)

pull/1558/head
ssongliu 1 year ago committed by GitHub
parent
commit
7e9a09c960
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      backend/app/service/container.go

2
backend/app/service/container.go

@ -264,7 +264,7 @@ func (u *ContainerService) Prune(req dto.ContainerPrune) (dto.ContainerPruneRepo
}
func (u *ContainerService) LoadResouceLimit() (*dto.ResourceLimit, error) {
cpuCounts, err := cpu.Counts(false)
cpuCounts, err := cpu.Counts(true)
if err != nil {
return nil, fmt.Errorf("load cpu limit failed, err: %v", err)
}

Loading…
Cancel
Save