You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Anindya Sinha (JIRA)" <ji...@apache.org> on 2016/07/21 16:53:20 UTC

[jira] [Comment Edited] (MESOS-4892) Support arithmetic operations for shared resources with consumer counts

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

Anindya Sinha edited comment on MESOS-4892 at 7/21/16 4:52 PM:
---------------------------------------------------------------

https://reviews.apache.org/r/45958/
https://reviews.apache.org/r/45959/
https://reviews.apache.org/r/48616/
https://reviews.apache.org/r/50205/


was (Author: anindya.sinha):
https://reviews.apache.org/r/45958/
https://reviews.apache.org/r/45959/
https://reviews.apache.org/r/48616/

> Support arithmetic operations for shared resources with consumer counts
> -----------------------------------------------------------------------
>
>                 Key: MESOS-4892
>                 URL: https://issues.apache.org/jira/browse/MESOS-4892
>             Project: Mesos
>          Issue Type: Improvement
>          Components: general
>            Reporter: Anindya Sinha
>            Assignee: Anindya Sinha
>              Labels: external-volum, persistent-volumes, resource
>
> With the introduction of shared resources, we need to add support for arithmetic operations on Resources which perform such operations on shared resources. Shared resources need to be handled differently so as to account for incrementing/decrementing consumer counts maintained by each Resources object.
> Case 1:
> Resources total += shared_resource;
> If shared_resource exists in total, this would imply that the consumer count is incremented. If shared_resource does not exist in total, this would imply we start tracking consumers for this shared resource initialized to 0 consumers.
> Case 2
> Resources total -= shared_resource;
> If shared_resource exists in total, this would imply that the consumer count is decremented. However, the shared_resource is removed from total if the consumer count is originally 0 in total).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)