Help Center/ CodeArts PerfTest/ User Guide/ Test Resource Management/ Managing a Private Resource Group
Updated on 2024-09-26 GMT+08:00

Managing a Private Resource Group

After a private resource group is created, you can perform the following operations on it.

Custom JMeter Installation Package

To switch the JMeter version, customize the JMeter installation package to meet service requirements.

  1. Log in to the CodeArts PerfTest console and choose Resource Groups in the navigation pane.
  2. Download JMeter installation package of the required version.
  3. In the resource group list, click Customization JMeter Installation package, import the installation package, and wait until a message is displayed indicating that the import is successful.

    The JMeter installation package must be in .tgz, .tar.gz, or .zip format and smaller than 100 MB. The version must be 5.2.1 or later. Ensure that the installation package can be executable locally.

  4. (Optional) Delete the JMeter installation package.

    If a message is displayed indicating that the upload fails, or you need to upload the JMeter installation package again, click to delete the current package.

Advanced Configuration

  • This feature is for whitelisted users. To use this feature, contact background support personnel to enable it and approve your request.
  • Modifying advanced configuration parameters may cause task execution failures. Exercise caution when performing this operation.

When the private resource group is idle (the number of running executors is 0), you can adjust the CPU and memory specifications of a single executor.

  1. Log in to the CodeArts PerfTest console and choose Resource Groups in the navigation pane.
  2. In the resource group card, click Advanced Config. Set parameters by following the instructions in Table 1.

    Table 1 Advanced configuration

    Parameter

    Description

    Single Executor CPU

    The value is an integer ranging from 1 to 128. The default value is 4 (unit: core).

    Single Executor Memory

    The value is an integer ranging from 1024 to 524,288. The default value is 8192 (unit: MB).

    Container/Node IP Address

    Select whether the container IP address is consistent with the node IP address.

    DNS Policy

    Select Cluster DNS or Node DNS.

  3. Click OK.
  4. Click Reset to restore the default settings.

Adding a Cluster

When you create a private resource group, a node cluster is selected. If many clusters or clusters in different regions are required to run a pressure test task, add clusters and configure the pressure percent to allocate the task to different clusters.

  1. Log in to the CodeArts PerfTest console and choose Resource Groups in the navigation pane.
  2. In the resource group card, click Resource Adjust.
  3. Add a cluster.

    Click Add Cluster, set the basic information by referring to Table 2, and click OK.

    Table 2 Adding a cluster

    Parameter

    Description

    Region

    Select the region of the created CCE node cluster from the drop-down list. The region can be different from the current CodeArts PerfTest region.

    Node Cluster

    Select a CCE cluster from the drop-down list.

    Execution Node

    Select a pressure target machine that provides performance data during a pressure test.

    NOTE:

    If the region of the new cluster is different from the current CodeArts PerfTest region, use a cross-region node. Bind an EIP to the node or use NAT to allow the node to access the public network.

    You can repeat this step to add more clusters.

  4. Configure the pressure percent.

    After clusters are added, you can view all node clusters of the current resource group in the Resource Adjust dialog box, and adjust the Pressure Percent of different clusters.

  5. (Optional) Delete a node cluster.

    In the Resource Adjust dialog box, click Delete.

Scaling a Node Cluster

  1. Log in to the CodeArts PerfTest console and choose Resource Groups in the navigation pane.
  2. In the resource group card, click Resource Adjust.
  3. Scale a node cluster.

    • Scale out the resource group: Click Scale, select existing nodes and new nodes in the Select Execution Node dialog box, and click OK.
    • Scale in the resource group: Click Scale under the resource group, select the execution nodes you want to keep, and click OK.

Viewing Information About a Private Resource Group

  1. Log in to the CodeArts PerfTest console and choose Resource Groups in the navigation pane.
  2. In a resource group card, you can view the information listed in the following table.

    Table 3 Private resource group information

    Name

    Description

    Private Resource Group Name

    Name entered when you were creating a private resource group.

    Private Resource Group Status

    Running

    Abnormal

    Upgradable

    Deploying

    Actuators

    In-use/Total Actuators

    Concurrency supported by a single executor of high-performance test projects is 5,000 (HTTP/HTTPS), 5,000 (WebSocket), 5,000 (MQTT), 1,000 (JMeter), or 1,000 (HLS/RTMP/HTTP-FLV).

    A single executor of scalable test projects supports 500 concurrent users.

    NOTE:

    Scalable test projects are for whitelisted users. To use this feature, submit a request to background support personnel.

    Current Concurrency

    Sum of concurrent users of all node clusters in the current private resource group.

    Debug Node

    Debugging nodes selected when you were creating a private resource group.

    Execution Node

    Execution nodes of all node clusters in a resource group. Click More to view all execution nodes of the resource group.

    Created At

    Time when the private resource group was created.

    Modified At

    Last time when the private resource group was modified.

Upgrading a Private Resource Group

  1. Log in to the CodeArts PerfTest console and choose Resource Groups in the navigation pane.
  2. In a resource group card, click Upgrade.

Deleting a Private Resource Group

  1. Log in to the CodeArts PerfTest console and choose Resource Groups in the navigation pane.
  2. In a resource group card, click Delete.

    When you delete a resource group, nodes will not be used in pressure tests again instead of being deleted. To delete a node, go to the corresponding service to perform the deletion.