DRX adds VMs that provide the same service in the same cluster to a VM group. By periodically checking the number of connections, average CPU usage, and average memory usage of VMs in the group, it dynamically adjusts the number of VMs in the group based on DRX policies and resource rejection mode, and resource reclaim policies and reclaim mode.
With DRX, resource load balancing can be implemented for single-service systems.
DRX resource management allows operators to add, edit, delete, enable, and disable DRX services.
The system automatically creates VMs when thresholds set in an extension policy and a reclaim policy are both matched, and the reclaim policy will not take effect any more.
Deleting a DRX service does not delete VMs created by this DRX service.
To clone all data of a VM if you use fast clone for resource injection, first re-publish the VM to merge its image files.
On the top navigation bar, click Services.
Click Add DRX Service.
Configure the DRX service parameters as described in "Parameters."
Click Finish.
On the top navigation bar, click Services.
Edit the DRX service parameters as described in "Parameters."
Click Finish.
On the top navigation bar, click Services.
In the dialog box that opens, click OK.
On the top navigation bar, click Services.
Click the Enable icon for a DRX service, or select DRX > DRX service name from the navigation pane and then click Enable DRX.
Configure the parameters and then click OK.
On the top navigation bar, click Services.
Click the Disable icon for a DRX service, or select DRX > DRX service name from the navigation pane and then click Disable DRX.
Click OK.
On the top navigation bar, click Services.
In the dialog box that opens, click OK.
Basic Info:
Cluster: Select a cluster for the DRX service.
Storage: Specify a shared storage pool for automatically created VMs.
Backup Cluster: Specify the backup cluster to run the DRX service. VMs are created in the backup cluster if the current cluster cannot satisfy the DRX requirements. For VMs to be created in the backup cluster, a cluster and its backup cluster must use the same shared storage when the resource import type is set to Fast Clone.
Storage: Specify a backup shared storage pool for automatically created VMs.
VMs: Specify the maximum number of VMs supported by the DRX service. It is the maximum number of VMs allowed in a VM group.
Effective: Select the way in which a DRX service takes effect. Options include Now, Custom, and No.
Now—The DRX service takes effect immediately after it is created.
Custom—The DRX service takes effect in the specified time range.
No—The DRX service does not take effect.
Start Time: Specify the start time when the DRX service takes effect. This field is required if you select Custom from the Effective list. If you set only the start time, the DRX service is always effective from this time.
End Time: Specify the end time when the DRX service takes effect. This field is required if you select Custom from the Effective list. If you set only the end time, the DRX service is effective from the current time to the end time.
Bind Load Balancer: Configure whether to bind a load balancer to the DRX service.
Service parameters:
Duration: Specify the time during which the average CPU usage and memory usage and the number of connections of the VMs in a VM group cross the thresholds multiple times in an extension monitoring policy, or drop below the thresholds multiple times in a reclaim monitoring policy.
Detection Interval: Specify the interval at which the CPU usage, memory usage, and connections of VMs in a VM group are detected.
Resource Import Settings: Click the Edit icon to configure resource import settings. When the average CPU usage, average memory usage, connection number, network traffic, disk I/O, and IOPS of the VMs in a VM group cross the thresholds multiple times in an extension monitoring policy, VMs are automatically created in the VM group.
Import Mode: Select the mode in which a VM is created in the VM group corresponding to the DRX service. Options include Fast Deployment and Fast Clone.
Fast Deployment—VMs are created in a VM group through the selected VM template.
Fast Clone—VMs are created in a VM group through selecting VMs to be cloned.
VMs to Create: Specify the number of VMs to create for each DRX task, in the range of 1 to 10.
Resource Reclaim Settings: Click the Edit icon to configure resource reclaim settings. When the average CPU usage, average memory usage, connection number, network traffic, disk I/O, and IOPS of the VMs in a VM group drop below the thresholds multiple times in a resource reclaim monitoring policy, VMs in the VM group are automatically reclaimed.
Reclaim Type: Select a reclaim type. Options include Reclaim Now and Slow-Offline.
Reclaim Now—A VM is reclaimed as long as the reclamation conditions are met.
Slow-Offline—When the reclamation conditions are met, the system prevents a VM from receiving TCP packets and identifies whether the number of packets sent by the VM is smaller than the threshold every 10 seconds. If the number is smaller than the threshold, the system reclaims the VM immediately. If the number is not smaller than the threshold, the system waits until the number is smaller than the threshold and reclaims the VM or waits until the timeout is reached and reclaims the VM.
Threshold—Specify the maximum number of packets sent by a VM that can trigger slow-offline VM reclamation. This field is required only when you select Slow-Offline as the reclamation type.
Timeout—Specify the timeout that can trigger slow-offline VM reclamation. This field is required only when you select Slow-Offline as the reclamation type.
Reclaim Mode: Select the mode in which a VM is reclaimed. Options include Shut Down VM, Delete VM, and Put VM to Sleep.
Shut Down VM—Powers off a VM.
Delete VM—Deletes a VM.
Put VM to Sleep—Hibernates a VM.
Min. Running VMs: Specify the minimum number of VMs that must be in running state in a resource reclamation task.
LB parameters:
Load Balancer: Select a load balancer. A load balancer distributes traffic to real servers based on different policies.
Virtual Server: Select a virtual server. A virtual server has a virtual IP. It receives user requests, and the load balancer selects a real server to respond to the user requests.
Real Server Farm: Select a real server farm which contains VMs that provide services.
VM Port: Enter a port for the VM to provide services. Different ports provide different services.
VM parameters:
Service VM: Click Yes to add VMs that run the same service to a VM group.
Auto Reclaim: Select whether to reclaim the VM automatically based on the resource reclaim policy. To reclaim the VM, click the icon. To not reclaim the VM, click the
icon.
Other parameters:
VM Template: Select a VM template for quick deployment. This parameter is required only when you select Fast Deployment as the resource import type.
VM to Clone: Select the VM to clone. This parameter is required only when you select Fast Clone as the resource import type. You can select a VM to clone only from the selected VM group and the VM must meet the following requirements:
The image file is in the shared storage pool.
No USB, PCI, SR-IOV, or TPM devices exist on the VM.
The VM is not bound to any NUMA node or physical CPU.
The storage type of the VM is intelligent.
VM Prefix: Enter the prefix of the VM to be created in a VM group.
Start Number: Enter the start number of the VM. This number is displayed after the VM prefix. The number increases as the number of created VMs increases until the maximum number is reached.
Start IP: Start IP address of the VM.