mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-02 05:43:02 +02:00
Add resource-limit and resource-usage containers to YANG model. Podman, and later conmon, enforce CPU and memory limits in a delegated cgroupsv2 hierarchy managed by Finit. Resource usage is queried from 'podman inspect', which has more nodes than what is currently possible to limit. Requires Finit 4.15, or later. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
10 lines
537 B
Plaintext
10 lines
537 B
Plaintext
# Start a container instance (%i) and redirect logs to /log/container
|
|
# Give podman enough time to properly shut down the container, kill:30,
|
|
# which is also matched in the container script (podman default is 10!)
|
|
# The pre:script, responsibe for fetching a remote image and calling on
|
|
# 'podman load', must not have a timeout.
|
|
sysv log:prio:local1,tag:%i kill:30 pid:!/run/container:%i.pid \
|
|
pre:0,/usr/sbin/container cleanup:0,/usr/sbin/container \
|
|
cgroup.system,delegate \
|
|
[2345] <!> :%i container -n %i -- container %i
|