I am provisioning an Org VDC using the Java SDK. Code Snippet 1, below shows the allocation being set to "2048 MB" and limit is set to "4048 MB". Shown in Code Snippet 2, the guarantees are set to 0.5.
When I view the properties of this Org VDC from the UI, I can see that the CPU allocation is set to 2 GB and CPU resources guaranteed is set to 50%. However, I do not see the Limit of 4 GB reflected anywhere. Am I missing something ? Should we use the 'Limit' field for 'Allocation Pool' VDC's or should it be used only for 'Reservation Pool' and PAYG VDC's ?
private void setComputeCapacity(CreateVdcParamsType createVdcParams) { // Change the compute capacities cpu, memory ComputeCapacityType computeCapacity = new ComputeCapacityType(); CapacityWithUsageType cpu = new CapacityWithUsageType(); cpu.setUnits("MHz"); cpu.setAllocated(Long.parseLong("2048")); cpu.setLimit(Long.parseLong("4048")); computeCapacity.setCpu(cpu); CapacityWithUsageType mem = new CapacityWithUsageType(); mem.setUnits("MB"); mem.setAllocated(Long.parseLong("2048")); mem.setLimit(Long.parseLong("4048")); computeCapacity.setMemory(mem); createVdcParams.setComputeCapacity(computeCapacity); }
Code Snippet 1
createVdcParams.setResourceGuaranteedCpu(0.5); createVdcParams.setResourceGuaranteedMemory(0.5);
Code Snippet 2
--
Thanks
Parag