Updates a stress testing task.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:UpdateBenchmarkTask |
*BenchmarkTask
|
None | None |
Request syntax
PUT /api/v2/benchmark-tasks/{ClusterId}/{TaskName} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The ID of the region where the stress testing task is performed. |
cn-shanghai |
| TaskName |
string |
Yes |
The name of the stress testing task. |
benchmark-larec-test-645c |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
string |
No |
The request body, which includes the parameters for creating a stress testing task. For more information, see Table 1. Fields in the base parameter. |
{ "base": { "qps": 200 } } |
Table 1. Fields in the base parameter
The following table describes the modifiable fields in the base parameter.
| Field | Description |
| duration | The total stress testing duration, in seconds. Default value: 1200. |
| qps | The expected queries per second (QPS). Default value: 10000. |
| concurrency | The number of concurrent connections per instance. Default value: 40. This value can be automatically adjusted. |
| agentCount | The number of instances for the stress testing task. Default value: 1. This value can be automatically adjusted. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
40325405-579C-4D82*** |
| Message |
string |
The returned message. |
Benchmark task [benchmark-larec-test-1076] is Updating |
Examples
Success response
JSON format
{
"RequestId": "40325405-579C-4D82***",
"Message": "Benchmark task [benchmark-larec-test-1076] is Updating"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.