-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/31665/#review80370
-----------------------------------------------------------



src/master/master.hpp
<https://reviews.apache.org/r/31665/#comment130237>

    For example, could we document in NOTE on these total variables that 
subtraction is safe even though non-scalars lose information?
    
    Specifically, is my understanding correct here: 
    
    (1) For overlapping set items / ranges across slaves, these will get added 
N times but only represented 1 time in the Resources. 
    (2) So, when an initial subtraction occurs (N-1), the resource is no longer 
represented. We don't expose non-scalars for now, so this is safe for now.
    (3) When any further subtractions occur (N-(1+M)), the Resources simply 
ignores the subtraction since there's nothing to remove, so this is safe for 
now.


- Ben Mahler


On April 15, 2015, 10:45 p.m., Michael Park wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/31665/
> -----------------------------------------------------------
> 
> (Updated April 15, 2015, 10:45 p.m.)
> 
> 
> Review request for mesos, Alexander Rukletsov and Ben Mahler.
> 
> 
> Bugs: MESOS-2373
>     https://issues.apache.org/jira/browse/MESOS-2373
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> `master::Framework` holds 2 member variables of type `Resources`: 
> `usedResources` and `offeredResources`. Both of these are aggregates of 
> resources from multiple slaves. We add the `hashmap<SlaveID, Resources>` 
> versions since we can lose non-scalar resources by summing them up across 
> multiple slaves. For further details refer to 
> [MESOS-2373](https://issues.apache.org/jira/browse/MESOS-2373).
> 
> In [r31666](https://reviews.apache.org/r/31666/), we report 
> `usedResourcesBySlaveId` rather than `usedResources` when adding the 
> framework to the allocator.
> 
> We don't actually use `offeredResourcesBySlaveId` currently, but it should be 
> kept for symmetry. There will be a ticket to expose `usedResourcesBySlaveId` 
> as well as `offeredResourcesBySlaveId` via the HTTP endpoint.
> 
> 
> Diffs
> -----
> 
>   src/master/master.hpp 6141917644b84edfed9836fa0a005d55a36880e3 
> 
> Diff: https://reviews.apache.org/r/31665/diff/
> 
> 
> Testing
> -------
> 
> make check
> 
> 
> Thanks,
> 
> Michael Park
> 
>

Reply via email to