[
https://issues.apache.org/jira/browse/MESOS-4586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15326574#comment-15326574
]
haosdent commented on MESOS-4586:
---------------------------------
[~xds2000] I just double check the code today. According to the code, let me
use cpu as a example,
{code}
for each framework {
$scope.used_cpus += framework.resources.cpus;
}
$scope.used_cpus -= $scope.offered_cpus;
$scope.idle_cpus = $scope.total_cpus - ($scope.offered_cpus + $scope.used_cpus);
{code}
My understand is
{code}
total_cpus = idle_cpus + allocated_cpus
allocated_cpus = offered_cpus + used_cpus
{code}
So the webui looks correct. Do you encounter the problem that {{Idle}} show
enough resources but stuck when launch tasks?
> Resources clarification in Mesos UI
> -----------------------------------
>
> Key: MESOS-4586
> URL: https://issues.apache.org/jira/browse/MESOS-4586
> Project: Mesos
> Issue Type: Improvement
> Reporter: Craig W
> Assignee: haosdent
>
> On the Mesos UI under the "resources" section when it lists CPUs and Mem,
> it seems to be calculated by sum up every executor cpu and memory statistics,
> which would be less than <= "allocated" resources.
> On the page that displays information for a slave it shows the CPUs and Mem
> show used and allocated.
> When I look at the Mesos UI front page, I was looking at "Idle" resources as
> the amount of resources I have available for offers. However, that's not the
> case. It would be nice to have it show the amount of "free" or "available"
> resources as well as "idle", so I can better determine how many resources I
> actually have available for scheduling additional tasks.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)