Skip to content

Commit

Permalink
Merge pull request kubernetes#1177 from jprzychodzen/probes-config
Browse files Browse the repository at this point in the history
Add configurable timeout for probes in configs
  • Loading branch information
k8s-ci-robot authored Apr 17, 2020
2 parents cf9fd4b + 038d353 commit f57a411
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions clusterloader2/testing/density/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
# failure won't fail the test. See https://github.com/kubernetes/kubernetes/issues/73461#issuecomment-467338711
{{$saturationDeploymentHardTimeout := MaxInt $saturationDeploymentTimeout 1200}}

# Probe measurements shared parameter
{{$PROBE_MEASUREMENTS_CHECK_PROBES_READY_TIMEOUT := DefaultParam .CL2_PROBE_MEASUREMENTS_CHECK_PROBES_READY_TIMEOUT "5m"}}

name: density
automanagedNamespaces: {{$namespaces}}
tuningSets:
Expand Down Expand Up @@ -64,11 +67,13 @@ steps:
Method: InClusterNetworkLatency
Params:
action: start
checkProbesReadyTimeout: {{$PROBE_MEASUREMENTS_CHECK_PROBES_READY_TIMEOUT}}
replicasPerProbe: {{AddInt 2 (DivideInt .Nodes 100)}}
- Identifier: DnsLookupLatency
Method: DnsLookupLatency
Params:
action: start
checkProbesReadyTimeout: {{$PROBE_MEASUREMENTS_CHECK_PROBES_READY_TIMEOUT}}
replicasPerProbe: {{AddInt 2 (DivideInt .Nodes 100)}}
- Identifier: TestMetrics
Method: TestMetrics
Expand Down
5 changes: 5 additions & 0 deletions clusterloader2/testing/load/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
{{$mediumDeploymentsPerNamespace := SubtractInt $mediumDeploymentsPerNamespace 1}}
{{$bigDeploymentsPerNamespace := SubtractInt $bigDeploymentsPerNamespace 1}}

# Probe measurements shared parameter
{{$PROBE_MEASUREMENTS_CHECK_PROBES_READY_TIMEOUT := DefaultParam .CL2_PROBE_MEASUREMENTS_CHECK_PROBES_READY_TIMEOUT "5m"}}

name: load
automanagedNamespaces: {{$namespaces}}
tuningSets:
Expand Down Expand Up @@ -87,11 +90,13 @@ steps:
Method: InClusterNetworkLatency
Params:
action: start
checkProbesReadyTimeout: {{$PROBE_MEASUREMENTS_CHECK_PROBES_READY_TIMEOUT}}
replicasPerProbe: {{AddInt 2 (DivideInt .Nodes 100)}}
- Identifier: DnsLookupLatency
Method: DnsLookupLatency
Params:
action: start
checkProbesReadyTimeout: {{$PROBE_MEASUREMENTS_CHECK_PROBES_READY_TIMEOUT}}
replicasPerProbe: {{AddInt 2 (DivideInt .Nodes 100)}}
{{if $PROMETHEUS_SCRAPE_KUBE_PROXY}}
- Identifier: NetworkProgrammingLatency
Expand Down
5 changes: 5 additions & 0 deletions clusterloader2/testing/load/experimental-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@
{{$latencyReplicas := DivideInt $totalLatencyPods $namespaces}}
# END pod-startup-latency section

# Probe measurements shared parameter
{{$PROBE_MEASUREMENTS_CHECK_PROBES_READY_TIMEOUT := DefaultParam .CL2_PROBE_MEASUREMENTS_CHECK_PROBES_READY_TIMEOUT "5m"}}

name: load
automanagedNamespaces: {{AddInt $namespaces $schedulerThroughputNamespaces}}
tuningSets:
Expand Down Expand Up @@ -123,11 +126,13 @@ steps:
Method: InClusterNetworkLatency
Params:
action: start
checkProbesReadyTimeout: {{$PROBE_MEASUREMENTS_CHECK_PROBES_READY_TIMEOUT}}
replicasPerProbe: {{AddInt 2 (DivideInt .Nodes 100)}}
- Identifier: DnsLookupLatency
Method: DnsLookupLatency
Params:
action: start
checkProbesReadyTimeout: {{$PROBE_MEASUREMENTS_CHECK_PROBES_READY_TIMEOUT}}
replicasPerProbe: {{AddInt 2 (DivideInt .Nodes 100)}}
{{if $PROMETHEUS_SCRAPE_KUBE_PROXY}}
- Identifier: NetworkProgrammingLatency
Expand Down

0 comments on commit f57a411

Please sign in to comment.