When you create a stress testing scenario for Performance Testing (PTS), you can configure the parameters in the General Settings section under Advanced Settings based on your business requirements. The parameters include Log Sampling Rate, Connection Timeout Duration, Request Timeout Duration, and Add Success Status Code.
Log Sampling Rate
The rate at which logs are sampled. Default value: 1. Unit: %. You can configure this parameter based on your business requirements. Valid values: 1 and an integer multiple of 10 in the range of 1 to 100. Example: 10 or 20.
If you specify a sampling rate greater than 1%, you are charged an additional fee. For example, if you set the sampling rate to 20%, you are charged an additional fee of 20% multiplied by the consumed virtual user minutes (VUM).
Connection Timeout Duration
The timeout period for an HTTP connection between the PTS stress testing engine and the server. By default, the connection timeout period is 5,000 ms.
You can set the connection timeout period to an integer multiple of 500 ms in the range of 500 ms to 60,000 ms. In this case, you can enter a value in the range of 1 to 120 in the field. For example, if you want to set the connection timeout period to 5,000 ms, you must enter 10 in the field.
Request Timeout Duration
The maximum period of time during which the PTS stress testing engine waits for a response from the server. By default, the request timeout period is 5,000 ms.
You can set the request timeout period to an integer multiple of 500 ms in the range of 500 ms to 60,000 ms. In this case, you can enter a value in the range of 1 to 120 in the field. For example, if you want to set the request timeout period to 5,000 ms, you must enter 10 in the field.
If you have specified a request timeout period when you configure basic request information for an HTTP node, this setting overwrites the request timeout period that you specify in the Advanced Settings section. For more information about how to specify a request timeout period when you configure basic request information, see Basic request information.
Add Success Status Code
You can specify status codes other than 2xx as success status codes based on your business requirements. Separate multiple status codes with commas (,). Example: 302,404. After the configuration is complete, both the newly added status codes and 2xx indicate a successful request.
URL Encode
By default, this check box is selected. The system decodes and then encodes the URL that you specify before it sends a request.
This setting applies when you directly copy a URL from the address bar of your browser to the HTTP node configurations for PTS stress testing. In most cases, you do not need to change the setting of this parameter. However, if the URL that you specify is not encoded and the URL contains plus signs (+), you must clear this check box to prevent your URL from becoming invalid due to decoding.