To add a new compute zone, use the following request:
XML Request Example
JSON Request Example
label* - title of a new compute zone
server_type - specify the type of servers that will reside within this compute zone:
- virtual - choose the virtual type to create a Xen, KVM, VMware or CloudBoot zone
- smart - choose the smart server type to create a smart server zone
- baremetal - choose the baremetal server type to create a baremetal server zone
location_group - specify the location group to which the compute zone will be assigned
release_resource_type - specify the release resource type. Release resource option allows to free up compute resources by over-committing RAM, CPU and CPU shares of virtual servers that are shut down. By default, the compute zone is created with the Memory Guarantee option enabled. In this case the release resources option is not used. Then, to enable resource over-committing you should choose either the Ballooning or Only Started VS option.
memory_guarantee - the actual free compute memory is calculated. All virtual servers residing on the compute resource will be able to start.
ballooning - free compute memory is calculated with the ability to use memory over-committing. The ballooning option is only available for KVM compute resources. NOTE: Virtual server may be migrated to another compute resource if there is not enough memory for it to start up on the compute resource with the ballooning option enabled.
Do not use the ballooning option if there is at least one edge or storage server within the compute zone.
only_started_vms - only the memory of running virtual servers is calculated.
max_vms_start_at_once - the maximum number of virtual servers that can be started simultaneously within this compute zone
recovery_type - specify the compute resource selection algorithm, which will be used on virtual server provisioning and recovery, per compute zone:
roundrobin - set the roundrobin type to select the compute resource with maximum free RAM during the VS recovery
Note: this option behaves in different ways, depending on the event:
- On provisioning, the round-robin algorithm will be used on compute resource selection.
- On recovery, the compute resource with maximum free RAM will be selected.
- fillnext - select the fillnext type to select the compute resource with minimum required free RAM. This option allows to fill compute resource as tightly as possible before starting to use next appliance in the zone
failover_timeout - time period for which the iterations will run during the failover if the compute resource does not respond
prefer_local_reads - set 1 to minimise the network throughput dependency for read heavy workloads. When this option is enabled, reads go over the local software bridge to a local replica of the data rather than traverse a physical NIC + switch.
run_sysprep - set 1 to enable Windows virtual server deployment without running sysprep
NOTE: It is not possible to set VS password when creating a Windows-based VMware virtual server without running a sysprep.
cpu_units - set the number of cpu units for applied to each compute resource in this compute zone
default_gateway - external gateway IP address. All virtual servers within the compute zone will be rerouted to this gateway.
- added cpu_units parameters
- added the following parameters: