mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	bug 6264: changing the defaults for max volume size to gb
status 6264: resolved fixed
This commit is contained in:
		
							parent
							
								
									122b0d1aeb
								
							
						
					
					
						commit
						5d0d69ce48
					
				| @ -47,7 +47,7 @@ public enum Config { | ||||
| 	 | ||||
| 	StorageOverprovisioningFactor("Storage", StoragePoolAllocator.class, String.class, "storage.overprovisioning.factor", "2", "Used for storage overprovisioning calculation; available storage will be (actualStorageSize * storage.overprovisioning.factor)", null), | ||||
| 	StorageStatsInterval("Storage", ManagementServer.class, String.class, "storage.stats.interval", "60000", "The interval in milliseconds when storage stats (per host) are retrieved from agents.", null), | ||||
| 	MaxVolumeSize("Storage", ManagementServer.class, Integer.class, "max.volume.size.gb", "2093049000000", "The maximum size for a volume in bytes (2TB).", null), | ||||
| 	MaxVolumeSize("Storage", ManagementServer.class, Integer.class, "max.volume.size.gb", "2000", "The maximum size for a volume in gigabytes.", null), | ||||
| 	TotalRetries("Storage", AgentManager.class, Integer.class, "total.retries", "4", "The number of times each command sent to a host should be retried in case of failure.", null), | ||||
| 	 | ||||
| 	// Network | ||||
|  | ||||
| @ -478,9 +478,9 @@ public class ManagementServerImpl implements ManagementServer { | ||||
|         // and set them in the right places | ||||
| 
 | ||||
|         String maxVolumeSizeInTbString = _configs.get("max.volume.size.gb"); | ||||
|         long maxVolumeSizeBytes = NumbersUtil.parseLong(maxVolumeSizeInTbString, new Long("2093049000000")); | ||||
|         long maxVolumeSizeGBytes = NumbersUtil.parseLong(maxVolumeSizeInTbString, new Long("2000")); | ||||
| 
 | ||||
|         _maxVolumeSizeInGb = maxVolumeSizeBytes/1000000000; | ||||
|         _maxVolumeSizeInGb = maxVolumeSizeGBytes; | ||||
| 
 | ||||
|         _routerRamSize = NumbersUtil.parseInt(_configs.get("router.ram.size"),NetworkManager.DEFAULT_ROUTER_VM_RAMSIZE); | ||||
|         _proxyRamSize = NumbersUtil.parseInt(_configs.get("consoleproxy.ram.size"), ConsoleProxyManager.DEFAULT_PROXY_VM_RAMSIZE); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user