mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
set cmtbound for storage & cpu & memory
This commit is contained in:
@@ -1340,6 +1340,8 @@ func (manager *SHostManager) newFromCloudHost(extHost cloudprovider.ICloudHost,
|
||||
host.MemSize = extHost.GetMemSizeMB()
|
||||
host.StorageSize = extHost.GetStorageSizeMB()
|
||||
host.StorageType = extHost.GetStorageType()
|
||||
host.CpuCmtbound = 8.0
|
||||
host.MemCmtbound = 1.0
|
||||
|
||||
host.ManagerId = extHost.GetManagerId()
|
||||
host.IsEmulated = extHost.IsEmulated()
|
||||
|
||||
@@ -746,6 +746,7 @@ func (manager *SStorageManager) newFromCloudStorage(extStorage cloudprovider.ICl
|
||||
storage.MediumType = extStorage.GetMediumType()
|
||||
storage.StorageConf = extStorage.GetStorageConf()
|
||||
storage.Capacity = extStorage.GetCapacityMB()
|
||||
storage.Cmtbound = 1.0
|
||||
|
||||
storage.Enabled = extStorage.GetEnabled()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user