Skip to content

Commit

Permalink
Disable scheduling and latency tests if less than 100 nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
lyzs90 committed Jan 29, 2021
1 parent 51fb1a4 commit 91a2abe
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions clusterloader2/testing/load/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#Constants
# Cater for the case where the number of nodes is less than nodes per namespace. See https://github.com/kubernetes/perf-tests/issues/887
{{$NODES_PER_NAMESPACE := MinInt .Nodes (DefaultParam .NODES_PER_NAMESPACE 100)}}
# See https://github.com/kubernetes/perf-tests/pull/1667#issuecomment-769642266
{{$ENABLE_RESOURCE_HEAVY_STEPS := .Nodes ge 100}}
{{$PODS_PER_NODE := DefaultParam .PODS_PER_NODE 30}}
{{$LOAD_TEST_THROUGHPUT := DefaultParam .CL2_LOAD_TEST_THROUGHPUT 10}}
{{$DELETE_TEST_THROUGHPUT := DefaultParam .CL2_DELETE_TEST_THROUGHPUT $LOAD_TEST_THROUGHPUT}}
Expand Down Expand Up @@ -51,11 +53,13 @@
{{$mediumDeploymentsPerNamespace := DivideInt $podsPerNamespace (MultiplyInt 4 $MEDIUM_GROUP_SIZE)}}
# smallDeployments - 1/2 of namespace pods should be in small Deployments.
{{$smallDeploymentsPerNamespace := DivideInt $podsPerNamespace (MultiplyInt 2 $SMALL_GROUP_SIZE)}}
# Reduce the number of small and medium deployments per namespace

# Stateful sets are enabled. Reduce the number of small and medium deployments per namespace
# See https://github.com/kubernetes/perf-tests/issues/1036#issuecomment-607631768
{{$smallDeploymentsPerNamespace := SubtractInt $smallDeploymentsPerNamespace $SMALL_STATEFUL_SETS_PER_NAMESPACE}}
{{$mediumDeploymentsPerNamespace := SubtractInt $mediumDeploymentsPerNamespace $MEDIUM_STATEFUL_SETS_PER_NAMESPACE}}

# Reduce the number of small, medium, big deployments per namespace.
# Jobs are enabled. Reduce the number of small, medium, big deployments per namespace.
{{$smallDeploymentsPerNamespace := SubtractInt $smallDeploymentsPerNamespace 1}}
{{$mediumDeploymentsPerNamespace := SubtractInt $mediumDeploymentsPerNamespace 1}}
{{$bigDeploymentsPerNamespace := SubtractInt $bigDeploymentsPerNamespace 1}}
Expand Down Expand Up @@ -389,6 +393,7 @@ steps:
{{end}}
{{if not $EXIT_AFTER_EXEC}}

{{if $ENABLE_RESOURCE_HEAVY_STEPS}}
# BEGIN scheduler throughput
- name: Creating scheduler throughput measurements
measurements:
Expand Down Expand Up @@ -464,7 +469,9 @@ steps:
Params:
action: gather
# END scheduler throughput
{{end}}

{{if $ENABLE_RESOURCE_HEAVY_STEPS}}
# TODO(https://github.com/kubernetes/perf-tests/issues/1024): Ideally, we wouldn't need this section.
# BEGIN pod-startup-latency
- name: Starting latency pod measurements
Expand Down Expand Up @@ -527,6 +534,7 @@ steps:
Params:
action: gather
# END pod-startup-latency
{{end}}

- name: Scaling and updating objects
phases:
Expand Down

0 comments on commit 91a2abe

Please sign in to comment.