[
https://issues.apache.org/jira/browse/MESOS-2154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15418333#comment-15418333
]
Zhitao Li commented on MESOS-2154:
----------------------------------
[[email protected]], in fact, we can just make{{--cpu-quota}} an optional
argument to {{Docker::run}} and pass it directly if
{{flags.cgroups_enable_cfs}} is set. I think this will much better.
I believe one reason we did not do that initially is older version of docker
daemon does not have this, but it seems like we have version checking for
docker daemon now, and we can check major.minor version >= 1.7 (which is the
version the flag is added, and error out).
I actually don't need this fix in my cluster at the moment since all executors
we are using is custom, but it seems like a better fix to me.
> Port CFS quota support to Docker Containerizer
> ----------------------------------------------
>
> Key: MESOS-2154
> URL: https://issues.apache.org/jira/browse/MESOS-2154
> Project: Mesos
> Issue Type: Improvement
> Components: docker, isolation
> Affects Versions: 0.21.0
> Environment: Linux (Ubuntu 14.04.1)
> Reporter: Andrew Ortman
> Assignee: Steve Niemitz
> Priority: Minor
> Fix For: 1.0.0
>
>
> Port the CFS quota support the Mesos Containerizer has to the Docker
> Containerizer. Whenever the --cgroup_enable_cfs flag is set, the Docker
> Containerizer should update the cfs_period_us and cfs_quota_us values to
> allow hard CPU capping on the container.
> Current workaround is to pass those values as LXC configuration parameters
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)