Create an Instance Offering
On the main menu of ZStack Cloud, choose . On the Instance Offering page, click Create Instance Offering. Then, the Create Instance Offering page is displayed.
On the displayed page, set the following parameters:
- Name: Enter a name for the instance offering.
The instance offering name must be 1 to 128 characters in length and can contain Chinese characters, letters, digits, hyphens (-), underscores (_), periods (.), parenthesis (), colons (:), and plus signs (+).
- Description: Optional. Enter a description for the instance offering.
- CPU: Enter the number of CPU cores of a VM instance. Note that this value must be an integer. Unit: core. Valid values: 1 to 1024.
- Memory: Set the size of the VM memory. Note that this value must be an integer. Unit: MB, GB, and TB. Valid values: 16 MB to 100 TB.
- Host Allocation Strategy: Specify how
the Cloud allocates hosts when you create VM instances. Default strategy:
Host with min. running VMs.
- Host with min. running VMs: Allocates the host with the minimum number of running VM instances to create VM instances.
- Host with min. CPU utilization: Allocates the host with the
minimum CPU utilization to create VM instances.
Note:
- The Cloud collects the host CPU loads over a period of time, calculates the CPU average utilization during this period, and then selects the host with the lowest CPU utilization to create VM instances.
- By default, the Cloud collects data at an interval of 10
minutes. You can change the collection cycle by using the
following method:
Go to Host CPU Utilization Collection Interval, and click the Edit icon.
, locate
- Host with min. memory utilization: Allocates the host with the
minimum memory utilization to create VM instances.
Note:
- The Cloud collects the host memory loads over a period of time, calculates the memory average utilization during this period, and then selects the host with the lowest memory utilization to create VM instances.
- By default, the Cloud collects data at an interval of 10
minutes. You can change the collection cycle by using the
following method:
Go to Host Memory Utilization Collection Interval, and click the Edit icon.
, locate
- Host with max. running VMs: Allocates the host with the maximum number of running VM instances to create VM instances. Before you can use this option, set the maximum number of VM instances that can run on a host. Then, the Cloud selects the host that meets the requirements to create VM instances. If no host is available, you will fail to create a VM instance.
- Host where the VM located last time: When you restart a stopped
VM instance, the system selects the host where the VM was running last
time.
Note: If you start a VM instance for the first time, the Cloud allocates a host randomly.
- Random allocation: Randomly allocates a host to create VM instances.
- Set Disk Bandwidth: Optional. Set an upper limit for the
I/O bandwidth of a volume.If not set, the I/O bandwidth of a volume is not limited. Unit: MB/s, GB/s, and TB/s. You can set the I/O bandwidth by using either of the following methods:
- Total Speed: Set an upper limit for the total read and write speed of a volume.
- Read/Write Speed: Set an upper limit for the
read or write speed of a volume.
- Read Speed: Optional. Set an upper limit for the read speed of a volume.
- Write Speed: Optional. Set an upper limit for the write speed of a volume.
- Set Network Bandwidth: Optional. Set an upper limit for
the network bandwidth of a VM instance.If not set, the network bandwidth of a VM instance is not limited. Unit: Kbps, Mbps, and Gbps. You can set the network bandwidth by using either of the following methods:
- Upstream Bandwidth: Optional. Set an upper limit of the network bandwidth for uploading data from a VM instance.
- Downstream Bandwidth: Optional. Set an upper limit of the network bandwidth for downloading data from a VM instance.
Note: Before you make any settings, make sure that you fully understand the configurations of the disk bandwidth and network bandwidth. Otherwise, you might fail to upload files to or download files from a VM instance.
- Advanced Parameter: Optional.
Configure a JSON file to customize disk performance.Sample:
The preceding configuration settings can be divided into the following three parts:{ "allocate": { "primaryStorage": { "type": "Enter a primary storage type. Valid values: Ceph, LocalStorage, NFS, and SharedBlock.", "uuid": "Enter the UUID of a primary storage.", "poolNames": [ "Enter the name of a Ceph pool. Delete this parameter if you do not specify a Ceph primary storage." ] } }, "priceUserConfig": { "rootVolume": { "priceKeyName": "Set the billing name of a root volume. Make sure that advanced parameter setting in the pricing list is consistent with this setting. Otherwise, the corresponding bills cannot be generated." } }, "displayAttribute": { "rootVolume": { "diskType": "Set the display type of a root volume. You can view this parameter setting on the VM details page." } } }
- Set the primary storage for root
volumes.
"allocate": { "primaryStorage": { "type": "Enter a primary storage type. Valid values: Ceph, LocalStorage, NFS, and SharedBlock.", "uuid": "Enter the UUID of a primary storage.", "poolNames": [ "Enter the name of a Ceph pool. Delete this parameter if you do not specify a Ceph primary storage." ] } }
- type: Enter a primary storage type. Valid values: Ceph, LocalStorage, NFS, and SharedBlock. If you specify a Ceph primary storage, you can specify a Ceph pool.
- uuid: Enter the UUID of a primary storage.
- poolNames: Enter the name of a Ceph pool. Delete this parameter if you do not specify a Ceph primary storage.
Note: If you do not specify a primary storage, delete the preceding parameter settings.
- Set the billing type of a root
volume.
"priceUserConfig": { "rootVolume": { "priceKeyName": "Set the billing name of a root volume. Make sure that advanced parameter setting in the pricing list is consistent with this setting. Otherwise, the corresponding bills cannot be generated." } }
- priceKeyName: Set the billing name of a root volume. Make sure that advanced parameter setting in the pricing list is consistent with this setting. Otherwise, the corresponding bills cannot be generated.
Note: If you do not need billing settings, delete the preceding parameter settings.
- Set the display type of a root
volume.
"displayAttribute": { "rootVolume": { "diskType": "Set the display type of a root volume. You can view this parameter setting on the VM details page." } }
- rootVolume: Set the display type of a root volume. You can view this parameter setting on the VM details page. You can also set multiple attributes in key-value pair format.
Note: If you do not need special display, delete the preceding parameter settings.
- Set the primary storage for root
volumes.
