...
3.) Metering of these dynamically assigned resources for usage details.
Design details:
Dynamic Offerings.
...
storing these values in the dynamicuservm_service_offering_details table. This table will contain the dynamic_offering id, VM VM id and a name,
value pair.
Different size of root disk when using same template.
we introduce a new parameter rootDisksize to deployVM API , using this parameter we mention the size of the root disk. This
parameter should be used only when we use templates for VM deployment.
To specify | Parameter when using | Parameter when using |
---|---|---|
root disk size | rootDiskSize* | size |
data disk size | size | cannot specify |
* to be used only when using templates for deploying a VM.The rootdisk size can be specified using a map of custom parameters.
Metering.
Every time a VM is launched or scaled we generate a usage event. The usage event has a serviceOffeirng ID. If the VM is created form a dynamic service offering we populate
...
DeployVM API.
parameters added. we added a map of custom parameters called customparameters. all the custom values need to be specified using this map.
presently on cpu cores. rootDisk size, cpu, memory and cpuNumber. cpu speed can be specified only when using dynamic service offering.
DAO changes.
Adding a new DAO to access the dynamic_offeirng_details table and Usage Usage_details_table.
Changes to the ServiceOfferingDao.
...
...
changing the return types to objects to indicate that they can be null.
Things Open to discussion.
...
need to call the api deploy vm with the additional parameters memory, cpu and cpunumber new parameter called custom parameters when using
dynamic service offering.
Upgrade:
No Upgrade changes.
Note the custom root disk size support will be available in next release.