Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exec2: update documentation with oom_score_adj settings #23327

Merged
merged 1 commit into from
Jul 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions website/content/plugins/drivers/exec2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,10 @@ enabled in plugin configuration.

```hcl
config {
command = "/usr/bin/cat"
args = ["/etc/os-release"]
unveil = ["r:/etc/os-release"]
command = "/usr/bin/cat"
args = ["/etc/os-release"]
unveil = ["r:/etc/os-release"]
oom_score_adj = 500
}
```

Expand All @@ -281,6 +282,8 @@ config {
to `command`
- `unveil` - (list(string): optional) - list of additional filesystem paths to
provide access to the task (requires `unveil_by_task` in plugin config).
- `oom_score_adj` - (optional) - The likelihood of the task being OOM killed,
must be a positive integer. Defaults to `0`.

##### cpu

Expand Down
Loading