Performance testing in an Alibaba Cloud VPC

Updated at:

Performance Testing Service (PTS) allows you to run performance tests where the load generators and the target servers are in the same region, communicating over a private network in an Alibaba Cloud VPC. This topic describes how to use this feature to test services that run on a single instance or across multiple instances.

Limitations

The following limits apply to performance tests within an Alibaba Cloud VPC:

  • Resource limits: The supported throughput varies by region, ranging from 20,000 to 100,000 TPS.

  • IP address limits:

    • You must select the VPC where your target service is located.

    • The test endpoints must be private IP addresses within the Alibaba Cloud VPC. You can use IP addresses directly or domain names that resolve to private IP addresses. For more information about how to bind domain names, see Domain name binding.

    • A test scenario can only target a single region. All API endpoints must be for internal services within that region, as cross-region testing is not supported.

    • To test services in another cloud or an on-premises data center connected by a leased line, your VPC and the connected networks must share the same address range (for example, 10.0.0.0/8).

  • Whitelist limits:

    • You must manually grant internal network access, which requires familiarity with Alibaba Cloud ECS security groups and SLB.

    • The security groups must not restrict outbound traffic. Security groups managed by other cloud services are not supported.

    • You must add the vSwitch CIDR block to the target service's internal network whitelist.

Before you start a test, check that your configuration meets these conditions, especially the IP address and whitelist limits. Otherwise, network connectivity issues may occur.

Test a single-instance service

Follow these steps to test a service that is deployed on a single ECS instance within an Alibaba Cloud VPC:

  1. Log on to the PTS console. In the navigation pane on the left, choose performance testing > Create Scenario, and then click PTS stress test.
  2. Click the Scenario Configuration tab and complete the scenario configuration. For more information, see Create a stress testing scenario.

  3. Click the Load Configuration tab, set Load Source to Alibaba Cloud VPC, and then select the Region and VPC Information. For more information, see Load Sources (Public Network and VPC).

    Note
    • The selected VSwitch must have enough available IP addresses for all load generators.

  4. Click Save and Start Test on the page to start the performance test.

Test a multi-instance service

To test a service that is deployed across multiple ECS instances within an Alibaba Cloud VPC, first create a load balancer instance and then configure the performance test.

  1. Create a load balancer instance.

    1. Log on to the CLB console. In the left-side navigation pane, click Instances.

    2. On the Instances page, click Create CLB and configure the parameters. Set Instance type to private network and Network type to VPC. For more information, see Create and manage a CLB instance.

    3. After you complete the configuration, click Buy now.

    4. On the Instances page, find the target instance and click Configure listener in the Actions column. For detailed steps, see CLB listeners.

      Note
      • In the Advanced section of the Protocol & Listener configuration, leave the Access control switch disabled.

      • Creating a load balancer instance incurs additional charges.

      • An undersized load balancer can become a performance bottleneck during the test.

  2. Enable PTS performance testing within an Alibaba Cloud VPC.

    1. PTS consolePerformance testingCreate ScenarioPTS stress test
    2. Click the Scenario Configuration tab and configure the scenario. For more information, see Create a stress testing scenario.

    3. Click the Load Configuration tab, set Load Source to Alibaba Cloud VPC, and then select the Region and VPC Information. For more information, see Load Sources (Public Network and VPC).