Skip to content

Commit ab27919

Browse files
committed
update test files
1 parent 153c90e commit ab27919

File tree

8 files changed

+20
-35
lines changed

8 files changed

+20
-35
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
apiVersion: k6.io/v1alpha1
2-
kind: K6
2+
kind: TestRun
33
metadata:
44
name: k6-uid2-load-test
55
spec:
6-
parallelism: 4
6+
parallelism: 10 # original 4
77
arguments: --out experimental-prometheus-rw --tag "testid=replacecomment"
88
script:
99
configMap:
@@ -14,4 +14,4 @@ spec:
1414
- name: K6_PROMETHEUS_RW_SERVER_URL
1515
value: "http://prometheus-server.prometheus/api/v1/write"
1616
- name: K6_PROMETHEUS_RW_TREND_AS_NATIVE_HISTOGRAM
17-
value: "true"
17+
value: "true"

performance-testing/uid2-operator/k6-token-generate-refresh-identitymap-keysharing.js

100644100755
Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,16 @@ import encoding from 'k6/encoding';
44
import { check } from 'k6';
55
import http from 'k6/http';
66

7-
const vus = 500;
8-
const baseUrl = "http://uid2-prod-opr-use2-alb-1657081774.us-east-2.elb.amazonaws.com";
7+
const vus = 300;
8+
const baseUrl = "https://integ.euid.eu";
99
const clientSecret = "";
1010
const clientKey = "";
1111

1212
const generateVUs = vus;
1313
const refreshVUs = vus;
1414
const identityMapVUs = vus;
1515
const keySharingVUs = vus;
16-
const testDuration = '10m'
17-
18-
//30 warm up on each
19-
// 5 min each
20-
// 12, 50, 100, 150, 200, 250, 300, 350, 400, 450, 500, 550, 600
21-
// 13 scenarios, each 5.5 min = 4290 se
16+
const testDuration = '6h'
2217

2318
export const options = {
2419
insecureSkipTLSVerify: true,
@@ -89,7 +84,7 @@ export const options = {
8984
duration: testDuration,
9085
gracefulStop: '0s',
9186
startTime: '30s',
92-
}/*,
87+
},
9388
identityMapLargeBatchSequential: {
9489
executor: 'constant-vus',
9590
exec: 'identityMapLargeBatch',
@@ -113,7 +108,7 @@ export const options = {
113108
duration: '300s',
114109
gracefulStop: '0s',
115110
startTime: '1590s',
116-
},*/
111+
},
117112
},
118113
// So we get count in the summary, to demonstrate different metrics are different
119114
summaryTrendStats: ['avg', 'min', 'med', 'max', 'p(90)', 'p(95)', 'p(99)', 'count'],

performance-testing/uid2-operator/k6-token-generate-refresh-identitymap.js

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,16 @@ import encoding from 'k6/encoding';
44
import { check } from 'k6';
55
import http from 'k6/http';
66

7-
const vus = 500;
8-
const baseUrl = "http://uid2-prod-opr-use2-alb-1657081774.us-east-2.elb.amazonaws.com";
7+
const vus = 50;
8+
const baseUrl = "https://integ.euid.eu";
99
const clientSecret = "";
1010
const clientKey = "";
1111

1212
const generateVUs = vus;
1313
const refreshVUs = vus;
1414
const identityMapVUs = vus;
1515
const keySharingVUs = vus;
16-
const testDuration = '10m'
17-
18-
//30 warm up on each
19-
// 5 min each
20-
// 12, 50, 100, 150, 200, 250, 300, 350, 400, 450, 500, 550, 600
21-
// 13 scenarios, each 5.5 min = 4290 se
16+
const testDuration = '6h'
2217

2318
export const options = {
2419
insecureSkipTLSVerify: true,
@@ -81,15 +76,15 @@ export const options = {
8176
duration: testDuration,
8277
gracefulStop: '0s',
8378
startTime: '30s',
84-
}/*,
79+
},/*
8580
keySharing:{
8681
executor: 'constant-vus',
8782
exec: 'keySharing',
8883
vus: keySharingVUs,
8984
duration: testDuration,
9085
gracefulStop: '0s',
9186
startTime: '30s',
92-
}
87+
},*/
9388
identityMapLargeBatchSequential: {
9489
executor: 'constant-vus',
9590
exec: 'identityMapLargeBatch',
@@ -113,7 +108,7 @@ export const options = {
113108
duration: '300s',
114109
gracefulStop: '0s',
115110
startTime: '1590s',
116-
},*/
111+
},
117112
},
118113
// So we get count in the summary, to demonstrate different metrics are different
119114
summaryTrendStats: ['avg', 'min', 'med', 'max', 'p(90)', 'p(95)', 'p(99)', 'count'],

performance-testing/uid2-operator/k6-token-generate.js

100644100755
Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,15 @@ import { check } from 'k6';
55
import http from 'k6/http';
66

77
const vus = 500;
8-
const baseUrl = "http://uid2-prod-opr-use2-alb-1657081774.us-east-2.elb.amazonaws.com";
8+
const baseUrl = "https://integ.euid.eu";
99
const clientSecret = "";
1010
const clientKey = "";
1111

1212
const generateVUs = vus;
1313
const refreshVUs = vus;
1414
const identityMapVUs = vus;
1515
const keySharingVUs = vus;
16-
const testDuration = '10m'
17-
18-
//30 warm up on each
19-
// 5 min each
20-
// 12, 50, 100, 150, 200, 250, 300, 350, 400, 450, 500, 550, 600
21-
// 13 scenarios, each 5.5 min = 4290 se
16+
const testDuration = '6h'
2217

2318
export const options = {
2419
insecureSkipTLSVerify: true,
@@ -65,7 +60,7 @@ export const options = {
6560
duration: testDuration,
6661
gracefulStop: '0s',
6762
startTime: '30s',
68-
}/*,
63+
},/*
6964
tokenRefresh: {
7065
executor: 'constant-vus',
7166
exec: 'tokenRefresh',
@@ -89,7 +84,7 @@ export const options = {
8984
duration: testDuration,
9085
gracefulStop: '0s',
9186
startTime: '30s',
92-
}
87+
},
9388
identityMapLargeBatchSequential: {
9489
executor: 'constant-vus',
9590
exec: 'identityMapLargeBatch',

performance-testing/uid2-operator/start-full.sh

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ if [ "$#" -ne 1 ]; then
66
COMMENT=$( date '+%F_%H:%M:%S' )
77
fi
88

9-
./start-named-test.sh k6-token-generate-refresh-identitymap-keysharing.js $COMMENT
9+
./start-named-test.sh k6-token-generate-refresh-identitymap-keysharing.js $COMMENT

performance-testing/uid2-operator/start-generate-refresh-identitymap.sh

100644100755
File mode changed.

performance-testing/uid2-operator/start-generate.sh

100644100755
File mode changed.

performance-testing/uid2-operator/start-named-test.sh

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ sed -i -e "s/replaced/$TEST_FILE/g" ./k6-test-resource-edited.yml
1919
sed -i -e "s/replacecomment/$COMMENT/g" ./k6-test-resource-edited.yml
2020

2121
kubectl create configmap operator-stress-test --from-file ./$TEST_FILE
22-
kubectl apply -f ./k6-test-resource-edited.yml
22+
kubectl apply -f ./k6-test-resource-edited.yml

0 commit comments

Comments
 (0)