forked from argoproj/argo-workflows
-
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.
Significantly increase efficiency of workflow control loop (resolves a…
…rgoproj#505) The following improvements were made to reduce the amount of processing in the controller: 1. use a field selector in the pod watch to ignore Pending pods 2. introduce a TTL cache to prevent redundant evaluation of completed pods 3. update PodIP only for daemoned steps
- Loading branch information
Showing
7 changed files
with
168 additions
and
25 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Stress test to test upper bounds of concurrent pods | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Workflow | ||
metadata: | ||
generateName: pod-limits- | ||
spec: | ||
entrypoint: pod-limits | ||
arguments: | ||
parameters: | ||
- name: limit | ||
value: 1000 | ||
|
||
templates: | ||
- name: pod-limits | ||
inputs: | ||
parameters: | ||
- name: limit | ||
steps: | ||
- - name: gen-number-list | ||
template: gen-number-list | ||
arguments: | ||
parameters: | ||
- name: count | ||
value: "{{inputs.parameters.limit}}" | ||
- - name: run-pod | ||
template: run-pod | ||
withParam: "{{steps.gen-number-list.outputs.result}}" | ||
|
||
- name: gen-number-list | ||
inputs: | ||
parameters: | ||
- name: count | ||
script: | ||
image: python:3.6 | ||
command: [python] | ||
source: | | ||
import json | ||
import sys | ||
json.dump([i for i in range(1, {{inputs.parameters.count}}+1)], sys.stdout) | ||
- name: run-pod | ||
container: | ||
image: "alpine:3.7" | ||
command: [sh, -c] | ||
args: ["echo sleeping 1s; sleep 1"] |
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
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