-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: synchronization and paralellism docs improvements (#13393)
Signed-off-by: Alan Clucas <[email protected]> Signed-off-by: Anton Gilgur <[email protected]> Co-authored-by: Anton Gilgur <[email protected]>
- Loading branch information
Showing
4 changed files
with
92 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -182,6 +182,7 @@ memoizing | |
metadata | ||
minikube | ||
mutex | ||
mutexes | ||
namespace | ||
namespaces | ||
natively | ||
|
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,43 @@ | ||
# Limiting parallelism | ||
|
||
You can restrict the number of parallel workflow executions. | ||
|
||
## Controller-level | ||
|
||
You can limit the total number of parallel workflow executions in the [workflow controller ConfigMap](workflow-controller-configmap.yaml): | ||
|
||
```yaml | ||
data: | ||
parallelism: "10" | ||
``` | ||
You can also limit the total number of parallel workflow executions in a single namespace: | ||
```yaml | ||
data: | ||
namespaceParallelism: "4" | ||
``` | ||
!!! Note | ||
Workflows that are executing but restricted from running more nodes due to other mechanisms will still count toward parallelism limits. | ||
### Priority | ||
You can set a `priority` on workflows: | ||
|
||
```yaml | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Workflow | ||
metadata: | ||
generateName: priority- | ||
spec: | ||
priority: 3 | ||
# ... | ||
``` | ||
|
||
Workflows that have not started due to Controller-level parallelism will be queued: workflows with higher priority numbers will start before lower priority ones. | ||
The default is `priority: 0`. | ||
|
||
## Synchronization | ||
|
||
You can also use [mutexes, semaphores, and parallelism](synchronization.md) to control the parallel execution of workflows and templates. |
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