hashicorp / nomad-driver-podman

A nomad task driver plugin for sandboxing workloads in podman containers
https://developer.hashicorp.com/nomad/plugins/drivers/podman
Mozilla Public License 2.0
226 stars 62 forks source link

cgroups: set nomad.slice as the cgroup parent #248

Closed shoenig closed 1 year ago

shoenig commented 1 year ago

Change parent of the cgroup created by libpod to be Nomad's nomad.slice.

This by itself doesn't have much affect, but it's part of fixing up the cpuset management in the near term and in creating a systemd cgroup driver in the long term.

The upgrade path doesn't matter - existing tasks will continue to exist with the old cgroup location. When they get replaced the new tasks get a new cgroup, etc.