set cmtbound for storage & cpu & memory

This commit is contained in:
Qiu Jian
2018-12-12 23:34:52 +08:00
parent 8c597cf135
commit e7b978955c
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -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()
+1
View File
@@ -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()