Skip to content

Commit

Permalink
[PRDP-75] Tuning performance tests (#20)
Browse files Browse the repository at this point in the history
* [PRDP-75] Added constant scenario

* [PRDP-75] Changed resources request for performance tests

* [PRDP-75] Changed min & max replica
  • Loading branch information
svariant authored Jul 26, 2023
1 parent 1b8c437 commit f3d7d59
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 15 deletions.
1 change: 1 addition & 0 deletions .devops/performance-test-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ parameters:
displayName: "Test type"
type: string
values:
- "constant"
- "load"
- "spike"
- "stress"
Expand Down
6 changes: 3 additions & 3 deletions helm/values-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@ microservice-chart:
resources:
requests:
memory: "1024Mi"
cpu: "1"
cpu: "0.75"
limits:
memory: "1024Mi"
cpu: "1"
cpu: "0.75"
autoscaling:
enable: true
minReplica: 1
maxReplica: 10
pollingInterval: 10 # seconds
cooldownPeriod: 50 # seconds
cooldownPeriod: 120 # seconds
triggers:
- type: cpu
metadata:
Expand Down
10 changes: 5 additions & 5 deletions helm/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,17 @@ microservice-chart:
allowPrivilegeEscalation: false
resources:
requests:
memory: "512Mi"
cpu: "0.5"
memory: "1024Mi"
cpu: "0.75"
limits:
memory: "512Mi"
cpu: "0.5"
memory: "1024Mi"
cpu: "0.75"
autoscaling:
enable: true
minReplica: 3
maxReplica: 10
pollingInterval: 10 # seconds
cooldownPeriod: 50 # seconds
cooldownPeriod: 120 # seconds
triggers:
- type: cpu
metadata:
Expand Down
14 changes: 7 additions & 7 deletions helm/values-uat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,17 @@ microservice-chart:
allowPrivilegeEscalation: false
resources:
requests:
memory: "512Mi"
cpu: "0.5"
memory: "1024Mi"
cpu: "0.75"
limits:
memory: "512Mi"
cpu: "0.5"
memory: "1024Mi"
cpu: "0.75"
autoscaling:
enable: true
minReplica: 1
maxReplica: 3
minReplica: 3
maxReplica: 7
pollingInterval: 10 # seconds
cooldownPeriod: 50 # seconds
cooldownPeriod: 120 # seconds
triggers:
- type: cpu
metadata:
Expand Down
50 changes: 50 additions & 0 deletions performance-test/src/test-types/constant.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"discardResponseBodies": true,
"summaryTrendStats": [
"avg",
"min",
"med",
"max",
"p(95)",
"p(99)",
"p(99.99)",
"count"
],
"scenarios": {
"contacts": {
"executor": "constant-arrival-rate",
"duration": "3m",
"rate": 200,
"timeUnit": "1s",
"preAllocatedVUs": 150,
"maxVUs": 200
}
},
"thresholds": {
"http_req_failed": [
"rate<0.1"
],
"http_req_duration": [
"p(99)<2000"
],
"http_req_duration{group:::setup}": [
"max>=0"
],
"http_req_duration{scenario:contacts}": [
"max>=0"
],
"iteration_duration{scenario:contacts}": [
"max>=0"
],
"iteration_duration{group:::setup}": [
"max>=0"
],
"iterations{group:::setup}": [
"rate>=0"
],
"iterations{scenario:contacts}": [
"rate>=0"
]
},
"setupTimeout": "60m"
}

0 comments on commit f3d7d59

Please sign in to comment.