DevinLeamy commented on code in PR #562:
URL: https://github.com/apache/mesos/pull/562#discussion_r1569352376
##########
src/linux/cgroups2.hpp:
##########
@@ -101,6 +101,41 @@ Try<std::set<pid_t>> threads(const std::string& cgroup);
// Get the absolute of a cgroup. The cgroup provided should not start with '/'.
std::string path(const std::string& cgroup);
+// Cgroup types.
+// "domain": Allows the cgroup to manage resources.
+//
+// "threaded": Allows threads to live in internal nodes but can only enable
+// the "cpu", "cpuset", "perf_event", and "pids" controllers.
+namespace type {
+
+// Domain cgroup.
+const std::string DOMAIN = "domain";
+
+// Threaded cgroup.
+const std::string THREADED = "threaded";
+
+// Domain cgroup that serves as the root of a threaded subtree.
+const std::string THREADED_DOMAIN = "domain threaded";
+
+// Cgroup in an invalid state. Can't be assigned processes or have controllers
+// enabled.
+const std::string INVALID = "domain invalid";
Review Comment:
Added for completeness; `cgroup.type` only has four possible values.
src: https://docs.kernel.org/admin-guide/cgroup-v2.html#core-interface-files
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]