All Products
Search
Document Center

Performance Testing:Custom traffic

Last Updated:Feb 27, 2026

Performance Testing Service (PTS) lets you control where stress test traffic originates. You can customize two aspects of traffic:

  • IPv6 traffic: Send stress test requests over IPv6 instead of IPv4.

  • Region-specific traffic: Choose which geographic regions your load generators are deployed in.

Both settings are configured in the Stress Mode Configuration section of a stress test.

Customize IPv6 traffic

By default, PTS generates stress test traffic over IPv4. You can enable IPv6 traffic to run stress tests against IPv6 addresses. This is useful when you need to verify that your application handles IPv6 connections correctly.

To enable IPv6 traffic, turn on the IPv6 traffic toggle in the Stress Mode Configuration section.

Note

IPv6 traffic is not supported for stress testing in Alibaba Cloud virtual private clouds (VPCs).

Customize region-specific traffic

By default, PTS randomly selects load generators from the following regions: China (Zhangjiakou), China (Hangzhou), China (Shanghai), China (Beijing), China (Qingdao), China (Shenzhen), and China (Chengdu).

You can enable region-specific traffic to control which regions the load generators are deployed in. This allows you to simulate user traffic from targeted geographic locations.

Configure region-specific traffic

  1. In the Stress Mode Configuration section, enable Region-specific Traffic.

  2. Click Add Region.

  3. Select a region and specify the number of machines to allocate.

  4. (Optional) Repeat steps 2-3 to add more regions. The number of machines allocated to each region determines its share of the total stress test traffic. You can view the distribution in the Traffic Source pie chart on the right side of the page.

    Region-specific traffic configuration with traffic distribution pie chart

Important

If you do not specify regions for stress traffic distribution, PTS randomly pulls load generators from the following regions by default: China (Zhangjiakou), China (Hangzhou), China (Shanghai), China (Beijing), China (Qingdao), China (Shenzhen), and China (Chengdu).

Prometheus metric data routing

The routing of Prometheus metric data depends on the region where the load generator resides:

Load generator regionRouting
China (Zhangjiakou), China (Hangzhou), China (Shanghai), China (Beijing), China (Qingdao), China (Shenzhen), or China (Chengdu)Data is written to the corresponding region over VPC.
Any other regionData is written to China (Zhangjiakou) over the Internet.