Skip to content

Commit 75a8839

Browse files
committed
Added eks load test
1 parent 31564e4 commit 75a8839

File tree

4 files changed

+21
-8
lines changed

4 files changed

+21
-8
lines changed

performance-testing/uid2-operator/k6-test-resource.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ spec:
88
script:
99
configMap:
1010
name: operator-stress-test
11-
file: k6-uid2-operator.js
11+
file: k6-uid2-operator-encrypt-inline.js

performance-testing/uid2-operator/k6-uid2-operator-encrypt-inline.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import encoding from 'k6/encoding';
33
import { check } from 'k6';
44
import http from 'k6/http';
55

6-
const generateVUs = 10;
7-
const refreshVUs = 10;
8-
const identityMapVUs = 10;
9-
const testDuration = '30s'
6+
const generateVUs = 500;
7+
const refreshVUs = 500;
8+
const identityMapVUs = 500;
9+
const testDuration = '10m'
1010

1111
//30 warm up on each
1212
// 5 min each
@@ -18,15 +18,15 @@ export const options = {
1818
noConnectionReuse: false,
1919
scenarios: {
2020
// Warmup scenarios
21-
21+
2222
tokenGenerateWarmup: {
2323
executor: 'ramping-vus',
2424
exec: 'tokenGenerate',
2525
stages: [
2626
{ duration: '30s', target: generateVUs}
2727
],
2828
gracefulRampDown: '0s',
29-
},
29+
},
3030
tokenRefreshWarmup: {
3131
executor: 'ramping-vus',
3232
exec: 'tokenRefresh',
@@ -404,4 +404,3 @@ const generateSinceTimestampStr = () => {
404404

405405
return `${year}-${month}-${day}T00:00:00`;
406406
};
407-
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
echo "Delete existing tests"
4+
kubectl delete -f ./k6-test-resource.yml
5+
kubectl delete configmap operator-stress-test
6+
7+
echo "Starting tests"
8+
kubectl create configmap operator-stress-test --from-file ./k6-uid2-operator-encrypt-inline.js
9+
kubectl apply -f ./k6-test-resource.yml
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
echo "Delete existing tests"
4+
kubectl delete -f ./k6-test-resource.yml
5+
kubectl delete configmap operator-stress-test

0 commit comments

Comments
 (0)