Scale out stress testing machines
Performance Testing Service (PTS) lets you dynamically scale out stress testing machines and increase the maximum stress limit during a test. This prevents individual machines from becoming performance bottlenecks by reducing their load, which ensures accurate and reliable test results.
Use cases
Stress testing machine network bandwidth bottlenecks
This bottleneck occurs when traffic per machine reaches about 10 MB/s, causing concurrency and TPS to plateau while the RT value rises. This is common when testing static resources like HTML pages and images, or in file download tests.
Formula for traffic per machine: Traffic per machine = (Request Traffic + Response Traffic) / Number of Specified IPs
Stress testing machine CPU bottlenecks
This bottleneck occurs when CPU utilization approaches 100% and the Load1 metric remains high. It is common in stress tests that use HTTPS, extensive JSON data extraction, or complex regular expression matching. You can view CPU utilization and the Load1 metric in two ways:
-
Method 1: During a stress test, you can view the CPU utilization and Load1 metric on the Stress Test in Progress page, in the Stress Testing Machine Performance tab.
-
Method 2: After the test, go to the page. In the Actions column for your scenario, click View Report. On the Details page, view the CPU utilization and Load1 metric in the Stress Testing Machine Performance tab.
Stress testing machine memory bottlenecks
This bottleneck occurs with consistently high memory utilization and frequent, time-consuming JVM GC cycles. You can view the time consumed by JVM GC in two ways:
-
Method 1: During a stress test, you can view the time consumed by JVM GC on the Stress Test in Progress page, in the Stress Testing Machine Performance tab.
-
Method 2: After the test, go to the page. In the Actions column for your scenario, click View Report. On the Details page, view the time consumed by JVM GC in the Stress Testing Machine Performance tab.
Procedure
To use dynamic expansion, first log on to the PTS console to create and start a stress testing scenario. For more information, see Create a PTS stress testing scenario. After the test starts, on the Stress Test in Progress page, go to the Stress Upper Limit section, click Dynamic Expansion, select IP, and set the number of IPs to add.
After you set the number of IPs to add, the number of stress testing machines adjusts immediately. Continue to monitor the test metrics. If machine performance does not improve, repeat these steps to scale out further.
Limitations
-
If the adjusted stress upper limit is within the capacity of the current number of IPs, the change takes effect immediately. Otherwise, an IP expansion is triggered automatically, which can take 5 to 60 seconds to complete.
-
Triggering an IP expansion disables the feature that allows data files to be polled only once. Billing continues based on the adjusted configuration.
-
This feature only adjusts the maximum pressure. To adjust the actual test pressure, on the Stress Test in Progress page, you can click Global Batch Speed Adjustment, Serial Link Speed Adjustment, or Adjust Speed to adjust the concurrency or RPS of the stress test. For more information, see Adjust Speed.
Billing example
Suppose you need to configure a stress testing scenario with the following traffic model: The test runs for a total of two minutes. For the first minute, the test maintains a concurrency of 2,500. For the second minute, the concurrency is increased to 5,000.

Without dynamic expansion
IPs required: maximum scenario concurrency / maximum concurrency per machine = 5,000 / 500 = 10 IPs
Cost: Number of IPs × maximum concurrency per machine × Test duration in minutes = 10 × 500 × 2 = 10,000 VUM
With dynamic expansion
-
Cost for the first minute:
-
IPs required: maximum scenario concurrency / maximum concurrency per machine = 2,500 / 500 = 5 IPs
-
Cost: Number of IPs × maximum concurrency per machine × Test duration in minutes = 5 × 500 × 1 = 2,500 VUM
-
-
Cost for the second minute:
-
IPs required: maximum scenario concurrency / maximum concurrency per machine = 5,000 / 500 = 10 IPs
-
Cost: Number of IPs × maximum concurrency per machine × Test duration in minutes = 10 × 500 × 1 = 5,000 VUM
-
Total cost with dynamic expansion: 2,500 VUM + 5,000 VUM = 7,500 VUM.