Skip to content

Commit 7477ae7

Browse files
author
smothiki
committed
feat(docs): add documentation for limits
1 parent 5fdf2da commit 7477ae7

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

src/managing-workflow/tuning-component-settings.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,23 @@ env:
1919
value: "admin_only"
2020
```
2121

22+
## Setting Resource limits
23+
24+
You can set resource limits to Workflow components by modifying the template file `tpl/generate_params.toml`.
25+
This file has a section for each Workflow component. To set a limit to any Workflow component just add `limits_cpu`, `limits_memory`
26+
in the section and set them to the appropriate values.
27+
28+
Below is an example of how the builder section of `tpl/generate_params.toml` might look with CPU and memory limits set:
29+
30+
```
31+
[builder]
32+
org = "deisci"
33+
pullPolicy = "Always"
34+
dockerTag = "canary"
35+
limits_cpu = "100m"
36+
limits_memory = "50Mi"
37+
```
38+
2239
## Customizing the Builder
2340

2441
The following environment variables are tunable for the [Builder][] component:

0 commit comments

Comments
 (0)