This commit is contained in:
cneira 2019-07-12 16:52:19 -04:00
parent 82baa8c5a7
commit 438d27c652
1 changed files with 11 additions and 3 deletions

View File

@ -25,7 +25,15 @@ task "http-echo-jail" {
Ip4_addr = "em1|192.168.1.102" Ip4_addr = "em1|192.168.1.102"
Exec_start = "/usr/local/bin/http-echo -listen :9999 -text hello" Exec_start = "/usr/local/bin/http-echo -listen :9999 -text hello"
Rctl = { Rctl = {
Vmemoryuse = 1200000 Vmemoryuse = {
Action = "deny"
Amount = "1G"
Per = "process"
}
Openfiles = {
Action = "deny"
Amount = "500"
}
} }
} }
} }
@ -61,7 +69,7 @@ The `jail-task-driver` driver supports most of [JAIL(8)][JAIL(8)] parameters, fo
## Resource control ## Resource control
Resource control on jails is enforced by [RCTL(8)][rctl-doc] all parameters for resource control Resource control on jails is enforced by [RCTL(8)][rctl-doc] all parameters for resource control
are supported but the action will always be **deny**. are supported.
* `Rctl` - (Optional) Set resource limits on the jail, for a list of currently supported parameters, please refer to the [Parameter Documentation][parameter-doc]. * `Rctl` - (Optional) Set resource limits on the jail, for a list of currently supported parameters, please refer to the [Parameter Documentation][parameter-doc].