You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by "Ashutosh Jain (JIRA)" <ji...@apache.org> on 2014/03/16 16:51:42 UTC
[jira] [Commented] (MESOS-1106) TODO(benh): choose a better scheme
to set disk in slave/containerizer/containerizer.cpp
[ https://issues.apache.org/jira/browse/MESOS-1106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13937194#comment-13937194 ]
Ashutosh Jain commented on MESOS-1106:
--------------------------------------
I have chosen 50% of disk as criteria . Similar to issue 1105.
// Limit set to 50% of disk and doing a check so that disk is set
// to 50% of disk and not more than 5 GB
Bytes limit = disk.megabytes()/2;
if (disk > Gigabytes(10))
{ disk = disk - Gigabytes(5); }
else
{ disk = disk - limit; }
> TODO(benh): choose a better scheme to set disk in slave/containerizer/containerizer.cpp
> ---------------------------------------------------------------------------------------
>
> Key: MESOS-1106
> URL: https://issues.apache.org/jira/browse/MESOS-1106
> Project: Mesos
> Issue Type: Improvement
> Affects Versions: 0.19.0
> Reporter: Ashutosh Jain
> Assignee: Ashutosh Jain
> Priority: Minor
>
> Similar to the memory check issue Mesos-1105.
> Here a better scheme should be chosen i.e., % scheme to allocate disk.
> Link : https://github.com/apache/mesos/blob/master/src/slave/containerizer/containerizer.cpp?source=c#L135
--
This message was sent by Atlassian JIRA
(v6.2#6252)