bazelbuild / bazel-buildfarm

Bazel remote caching and execution service
https://bazel.build
Apache License 2.0
655 stars 207 forks source link

CGroups v2 #1834

Open jasonschroeder-sfdc opened 3 weeks ago

jasonschroeder-sfdc commented 3 weeks ago

Buildfarm is using cgroups v1 paths to create groups for executions.

Everything (operating systems with systemd etc, as well as k8s) seems to have moved on to cgroups v2.

Open questions:

werkt commented 3 weeks ago

We need both as a migration path. An installation maintainer should be able to throw a single config flag (ideally outside of buildfarm), and have it just work equivalently.

Detection of version support should be the mode of discovery, and both impls should function equivalently until we decide at a later change to deprecate v1