mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
test api/status for capacity (#164864)
## Summary Adding API capacity test for `GET /api/status` Stats: ``` "warmupAvgResponseTime": 39, "rpsAtWarmup":10, "warmupDuration":30, "rpsMax":695, "responseTimeMetric":"85%", "threshold1ResponseTime":1000, "rpsAtThreshold1":435, "threshold2ResponseTime":3000, "rpsAtThreshold2":475, "threshold3ResponseTime":5000, "rpsAtThreshold3":495 ```
This commit is contained in:
parent
43b3f2e1cf
commit
555f865694
2 changed files with 95 additions and 0 deletions
48
x-pack/test/scalability/apis/api.status.json
Normal file
48
x-pack/test/scalability/apis/api.status.json
Normal file
|
@ -0,0 +1,48 @@
|
|||
{
|
||||
"journeyName": "POST /api/status",
|
||||
"scalabilitySetup": {
|
||||
"responseTimeThreshold": {
|
||||
"threshold1": 1000,
|
||||
"threshold2": 3000,
|
||||
"threshold3": 5000
|
||||
},
|
||||
"warmup": [
|
||||
{
|
||||
"action": "constantUsersPerSec",
|
||||
"userCount": 10,
|
||||
"duration": "30s"
|
||||
}
|
||||
],
|
||||
"test": [
|
||||
{
|
||||
"action": "rampUsersPerSec",
|
||||
"minUsersCount": 10,
|
||||
"maxUsersCount": 700,
|
||||
"duration": "138s"
|
||||
}
|
||||
],
|
||||
"maxDuration": "6m"
|
||||
},
|
||||
"testData": {
|
||||
"esArchives": [],
|
||||
"kbnArchives": []
|
||||
},
|
||||
"streams": [
|
||||
{
|
||||
"requests": [
|
||||
{
|
||||
"http": {
|
||||
"method": "GET",
|
||||
"path": "/api/status",
|
||||
"headers": {
|
||||
"Cookie": "",
|
||||
"Accept-Encoding": "gzip, deflate, br",
|
||||
"Content-Type": "application/json; charset=utf-8"
|
||||
},
|
||||
"statusCode": 200
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
47
x-pack/test/scalability/apis/api.status.no_auth.json
Normal file
47
x-pack/test/scalability/apis/api.status.no_auth.json
Normal file
|
@ -0,0 +1,47 @@
|
|||
{
|
||||
"journeyName": "POST /api/status",
|
||||
"scalabilitySetup": {
|
||||
"responseTimeThreshold": {
|
||||
"threshold1": 1000,
|
||||
"threshold2": 3000,
|
||||
"threshold3": 5000
|
||||
},
|
||||
"warmup": [
|
||||
{
|
||||
"action": "constantUsersPerSec",
|
||||
"userCount": 10,
|
||||
"duration": "30s"
|
||||
}
|
||||
],
|
||||
"test": [
|
||||
{
|
||||
"action": "rampUsersPerSec",
|
||||
"minUsersCount": 10,
|
||||
"maxUsersCount": 1210,
|
||||
"duration": "80s"
|
||||
}
|
||||
],
|
||||
"maxDuration": "4m"
|
||||
},
|
||||
"testData": {
|
||||
"esArchives": [],
|
||||
"kbnArchives": []
|
||||
},
|
||||
"streams": [
|
||||
{
|
||||
"requests": [
|
||||
{
|
||||
"http": {
|
||||
"method": "GET",
|
||||
"path": "/api/status",
|
||||
"headers": {
|
||||
"Accept-Encoding": "gzip",
|
||||
"Content-Type": "application/json; charset=utf-8"
|
||||
},
|
||||
"statusCode": 200
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue