[ 
https://issues.apache.org/jira/browse/MESOS-9104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16556900#comment-16556900
 ] 

Meng Zhu commented on MESOS-9104:
---------------------------------

{noformat}
commit 1dde9531104415c7759ebc1fb560bb55e16bbd8b
Author: Meng Zhu 
Date:   Mon Jul 23 15:32:03 2018 -0700

    Added a helper for capability filtering in the allocator.
    
    `isCapableOfReceivingAgent(` returns whether a framework is capable
    of receiving any resources on the agent.
    
    Review: https://reviews.apache.org/r/67777/
{noformat}


{noformat}
commit a9d50efd63bf4cc47a49ffe3feaef87dfc0ffa7a
Author: Meng Zhu 
Date:   Wed Jul 25 15:57:47 2018 -0700

    Updated `Slave::getAvailable()` to return all shared resources.
    
    Currently, `HierarchicalAllocatorProcess::Slave::getAvailable()`
    only exposes the unallocated portion of shared resources. However,
    we currently always consider a copy of shared resources to be
    available for allocation.
    
    This helps us acheive some cleanup of one-off shared resources logic
    in the allocation loop.
    
    Review: https://reviews.apache.org/r/67826/
{noformat}

{noformat}
commit eeb74c03695a8311a9c3bf2d2f895c6c25f86266
Author: Meng Zhu 
Date:   Wed Jul 25 16:15:48 2018 -0700

    Added a `stripIncapableResources` helper in the allocator.
    
    This helper removes any resources that the framework is not
    capable of receiving based on the given framework capability.
    
    Review: https://reviews.apache.org/r/67827/
{noformat}



> Refactor capability related logic in the allocator.
> ---------------------------------------------------
>
>                 Key: MESOS-9104
>                 URL: https://issues.apache.org/jira/browse/MESOS-9104
>             Project: Mesos
>          Issue Type: Improvement
>          Components: allocation
>            Reporter: Meng Zhu
>            Assignee: Meng Zhu
>            Priority: Major
>              Labels: mesosphere
>
> - Add a function for returning the subset of frameworks that are capable of 
> receiving offers from the agent. This moves the capability checking out of 
> the core allocation logic and means the loops can just iterate over a smaller 
> set of framework candidates rather than having to write 'continue' cases. 
> This covers the GPU_RESOURCES and REGION_AWARE capabilities.
> - Similarly, add a function that allows framework capability based filtering 
> of resources. This pulls out the filtering logic from the core allocation 
> logic and instead the core allocation logic can just all out to the 
> capability filtering function. This covers the SHARED_RESOURCES, 
> REVOCABLE_RESOURCES and RESERVATION_REFINEMENT capabilities. Note that in 
> order to implement this one, we must refactor the shared resources logic in 
> order to have the resource generation occur regardless of the framework 
> capability (followed by getting filtered out via this new function if the 
> framework is not capable).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to