-
Notifications
You must be signed in to change notification settings - Fork 561
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create multiple jobs based on number of nodes
Separate Indexed from NonIndexed to compare.
- Loading branch information
1 parent
3a1ad1c
commit 66d6f33
Showing
3 changed files
with
96 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,116 @@ | ||
{{$pods_per_node_per_size := 20}} | ||
{{$total_pods_per_size := MultiplyInt .Nodes $pods_per_node_per_size}} | ||
{{$small_job_size := 5}} | ||
{{$small_jobs_count := DivideInt $total_pods_per_size $small_job_size}} | ||
{{$medium_job_size := 20}} | ||
{{$medium_jobs_count := DivideInt $total_pods_per_size $medium_job_size}} | ||
{{$large_job_size := 400}} | ||
{{$large_jobs_count := DivideInt $total_pods_per_size $large_job_size}} | ||
|
||
name: batch | ||
|
||
namespace: | ||
number: 1 | ||
|
||
tuningSets: | ||
- name: Uniform1qps | ||
- name: Uniform5qps | ||
qpsLoad: | ||
qps: 1 | ||
qps: 5 | ||
|
||
steps: | ||
- name: Start measurements | ||
measurements: | ||
- Identifier: WaitForFinishedJobs | ||
- Identifier: WaitForFinishedNonIndexedJobs | ||
Method: WaitForFinishedJobs | ||
Params: | ||
action: start | ||
labelSelector: group = test-job | ||
- name: Create job | ||
labelSelector: mode = NonIndexed | ||
- Identifier: WaitForFinishedIndexedJobs | ||
Method: WaitForFinishedJobs | ||
Params: | ||
action: start | ||
labelSelector: mode = Indexed | ||
- name: Create non-indexed jobs | ||
phases: | ||
- namespaceRange: | ||
min: 1 | ||
max: 1 | ||
replicasPerNamespace: 1 | ||
tuningSet: Uniform1qps | ||
replicasPerNamespace: {{$small_jobs_count}} | ||
tuningSet: Uniform5qps | ||
objectBundle: | ||
- basename: small-non-indexed | ||
objectTemplatePath: "job.yaml" | ||
templateFillMap: | ||
Replicas: {{$small_job_size}} | ||
Mode: NonIndexed | ||
- namespaceRange: | ||
min: 1 | ||
max: 1 | ||
replicasPerNamespace: {{$medium_jobs_count}} | ||
tuningSet: Uniform5qps | ||
objectBundle: | ||
- basename: medium-non-indexed | ||
objectTemplatePath: "job.yaml" | ||
templateFillMap: | ||
Replicas: {{$medium_job_size}} | ||
Mode: NonIndexed | ||
- namespaceRange: | ||
min: 1 | ||
max: 1 | ||
replicasPerNamespace: {{$large_jobs_count}} | ||
tuningSet: Uniform5qps | ||
objectBundle: | ||
- basename: large-non-indexed | ||
objectTemplatePath: "job.yaml" | ||
templateFillMap: | ||
Replicas: {{$large_job_size}} | ||
Mode: NonIndexed | ||
- name: Wait for non-indexed jobs to finish | ||
measurements: | ||
- Identifier: WaitForFinishedNonIndexedJobs | ||
Method: WaitForFinishedJobs | ||
Params: | ||
action: gather | ||
timeout: 10m | ||
- name: Create indexed jobs | ||
phases: | ||
- namespaceRange: | ||
min: 1 | ||
max: 1 | ||
replicasPerNamespace: {{$small_jobs_count}} | ||
tuningSet: Uniform5qps | ||
objectBundle: | ||
- basename: small-indexed | ||
objectTemplatePath: "job.yaml" | ||
templateFillMap: | ||
Replicas: {{$small_job_size}} | ||
Mode: Indexed | ||
- namespaceRange: | ||
min: 1 | ||
max: 1 | ||
replicasPerNamespace: {{$medium_jobs_count}} | ||
tuningSet: Uniform5qps | ||
objectBundle: | ||
- basename: medium-indexed | ||
objectTemplatePath: "job.yaml" | ||
templateFillMap: | ||
Replicas: {{$medium_job_size}} | ||
Mode: Indexed | ||
- namespaceRange: | ||
min: 1 | ||
max: 1 | ||
replicasPerNamespace: {{$large_jobs_count}} | ||
tuningSet: Uniform5qps | ||
objectBundle: | ||
- basename: test-job | ||
- basename: large-indexed | ||
objectTemplatePath: "job.yaml" | ||
templateFillMap: | ||
Replicas: 10 | ||
- name: Wait for jobs to finish | ||
Replicas: {{$large_job_size}} | ||
Mode: Indexed | ||
- name: Wait for indexed jobs to finish | ||
measurements: | ||
- Identifier: WaitForFinishedJobs | ||
- Identifier: WaitForFinishedIndexedJobs | ||
Method: WaitForFinishedJobs | ||
Params: | ||
action: gather | ||
timeout: 1m | ||
timeout: 10m |
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