forked from kubernetes/perf-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use performance metrics from the latest dnsperfgo client
- Loading branch information
Showing
4 changed files
with
73 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
clusterloader2/testing/load/modules/dns-k8s-hostnames.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{{$ENABLE_DNSTESTS := DefaultParam .CL2_ENABLE_DNSTESTS false}} | ||
# Guard the new DNS tests. Remove it once it's confirmed that it works on a subset of tests. | ||
{{$USE_ADVANCED_DNSTEST := DefaultParam .CL2_USE_ADVANCED_DNSTEST false}} | ||
|
||
# The number of DNS client pods for every 100 nodes. | ||
{{$dnsClientPodsFactor := DefaultParam .CL2_DNS_K8S_HOSTNAMES_CLIENT_PODS_FACTOR 1}} | ||
# Create 5 DNS client pods, plus additional based on the number of nodes. | ||
{{$dnsClientPods := AddInt 5 (MultiplyInt $dnsClientPodsFactor (DivideInt .Nodes 100))}} | ||
{{$qpsPerClient := DefaultParam .CL2_DNS_K8S_HOSTNAMES_PER_CLIENT_QPS 10}} | ||
{{$testDurationMinutes := DefaultParam .CL2_DNS_K8S_HOSTNAMES_TEST_MINUTES 10}} | ||
|
||
{{if and $ENABLE_DNSTESTS $USE_ADVANCED_DNSTEST}} | ||
steps: | ||
- name: Run DNS performance test for k8s hostnames | ||
measurements: | ||
- Identifier: DNSPerformanceK8sHostnames | ||
Method: DNSPerformanceK8sHostnames | ||
Params: | ||
podReplicas: {{$dnsClientPods}} | ||
qpsPerClient: {{$qpsPerClient}} | ||
testDurationMinutes: {{$testDurationMinutes}} | ||
|
||
- name: Wait 1m for DNS test to complete | ||
measurements: | ||
- Identifier: Wait | ||
Method: Sleep | ||
Params: | ||
duration: 1m | ||
{{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters