General settings

更新时间: 2026-03-11 03:52:00

Configure timeouts, log sampling, success status codes, and URL encoding for your Performance Testing (PTS) stress test scenario. These settings apply globally to all requests in a scenario unless overridden at the node level.

SettingWhat it controlsDefault
Log Sampling RatePercentage of requests with detailed logs1%
Connection Timeout DurationMaximum wait for an HTTP connection5,000 ms
Request Timeout DurationMaximum wait for a server response5,000 ms
Add Success Status CodeHTTP status codes treated as successfulAll 2xx codes (200--299)
URL EncodeWhether PTS re-encodes URLs before sendingSelected (enabled)

To configure these settings, open your stress test scenario and expand Advanced Settings > General Settings.

Timeout settings

Connection Timeout Duration

The maximum time the PTS engine waits to establish an HTTP connection to the target server.

  • Default: 5,000 ms

  • Range: 500 ms -- 60,000 ms, in 500 ms increments

Request Timeout Duration

The maximum time the PTS engine waits for a response after sending a request.

  • Default: 5,000 ms

  • Range: 500 ms -- 60,000 ms, in 500 ms increments

How to set a timeout value

The console input field accepts a multiplier (1--120) instead of a raw millisecond value. Multiply the entered value by 500 to get the actual timeout in milliseconds.

MultiplierTimeout
1500 ms
10 (default)5,000 ms
6030,000 ms
12060,000 ms (maximum)

For example, to set a 10-second timeout, enter 20 (20 x 500 ms = 10,000 ms).

Override request timeout per node

A request timeout configured in the basic request information of an individual HTTP node takes precedence over the global Request Timeout Duration in General Settings.

Use a per-node override when a specific endpoint needs more time than the global setting allows -- for example, a file upload endpoint or a report-generation API that processes large datasets.

Log Sampling Rate

The percentage of requests for which PTS records detailed logs.

  • Default: 1%

  • Valid values: 1, 10, 20, 30, 40, 50, 60, 70, 80, 90, or 100

The value must be 1 or a multiple of 10.

Billing impact

Important

Sampling rates above 1% incur additional charges. The extra fee equals the sampling rate percentage multiplied by the consumed virtual user minutes (VUM). For example, a 20% sampling rate adds a surcharge of 20% x VUM.

Add Success Status Code

PTS treats all 2xx status codes (200--299) as successful by default. To treat additional status codes as successful, enter them as a comma-separated list.

Example: 302,404

After you save this setting, both the specified codes and all 2xx codes count as successful requests in your test results.

URL Encode

When selected, PTS decodes and then re-encodes the request URL before sending it.

  • Default: Selected (enabled)

Leave this option selected when you paste a URL from a browser address bar into an HTTP node configuration. Browsers often pre-encode special characters, and PTS normalizes the encoding to prevent double-encoding issues.

When to disable URL encoding

Clear this check box if your URL contains literal plus signs (+) and is not already encoded. The decode-then-encode cycle converts + to a space character, which breaks the URL.

上一篇: Configure advanced settings 下一篇: Configure HTTPS settings
阿里云首页 性能测试 相关技术圈