Attach domain names

Updated at:

Performance Testing Service (PTS) supports attaching domain names to specific IP addresses. During a stress test, traffic is sent directly to the attached IP address to test the target service.

Scenarios

Attaching domain names lets you quickly switch test addresses across multiple stress tests. For example, you can use a staging IP address for the staging environment and a production IP address for the production environment.

Stress testing in a public network environment

When stress testing a service over the public network, you can attach the public domain name to a staging environment IP address. This isolates stress test traffic from online traffic and prevents any impact on your online business.

Stress testing in an Alibaba Cloud VPC private network

When testing a service within an Alibaba Cloud VPC, you can attach the domain name used in your test API to a private IP address in the VPC. This lets you run stress tests within the private network without changing the domain name. For more information, see Stress testing in an Alibaba Cloud VPC private network.

After you complete the Scenario Configuration, the system automatically detects all domain names in the configuration. On the Advanced Configuration tab, configure the domain names in the Domain Name Attachment area:

  1. Select Enable to the right of the target domain name and enter the corresponding IP addresses in the IP List field. Separate multiple IP addresses with commas (,).

  2. Click Save Configuration in the lower-right corner to attach the domain name.

    After the domain name is attached, stress tests send traffic directly to the IP addresses that you configured.