DevinLeamy commented on code in PR #539:
URL: https://github.com/apache/mesos/pull/539#discussion_r1544570723
##########
src/slave/containerizer/mesos/containerizer.cpp:
##########
@@ -363,6 +368,21 @@ Try<MesosContainerizer*> MesosContainerizer::create(
Shared<Provisioner> provisioner = _provisioner->share();
+#ifdef __linux__
+ // Initialize either the cgroups v2 or cgroups v1 isolator, based on what
+ // is available on the host machine.
+ auto cgroupsIsolatorSelector = [] (const Flags& flags) -> Try<Isolator*> {
+ #ifdef ENABLE_CGROUPS_V2
+ Try<bool> supported =
+ mesos::internal::slave::cgroups2_isolator::supported();
+ if (supported.isSome() && *supported) {
+ return Cgroups2IsolatorProcess::create(flags);
+ }
+ #endif // ENABLE_CGROUPS_V2
+
+ return CgroupsIsolatorProcess::create(flags);
+ };
Review Comment:
Removed this function altogether.
--
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]