Skip to content

Commit

Permalink
test api/status for capacity (#164864)
Browse files Browse the repository at this point in the history
## 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
```
  • Loading branch information
dmlemeshko authored Sep 1, 2023
1 parent 43b3f2e commit 555f865
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 0 deletions.
48 changes: 48 additions & 0 deletions x-pack/test/scalability/apis/api.status.json
Original file line number Diff line number Diff line change
@@ -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 changes: 47 additions & 0 deletions x-pack/test/scalability/apis/api.status.no_auth.json
Original file line number Diff line number Diff line change
@@ -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
}
}
]
}
]
}

0 comments on commit 555f865

Please sign in to comment.