Meng Zhu created MESOS-9807:
-------------------------------

             Summary: Introduce a `struct Quota` wrapper.
                 Key: MESOS-9807
                 URL: https://issues.apache.org/jira/browse/MESOS-9807
             Project: Mesos
          Issue Type: Improvement
          Components: allocation
            Reporter: Meng Zhu


We should introduce:

struct Qutota {
  ResourceQuantities guarantees;
  ResourceLimits limits;
}

There are a couple of small hurdles. First, there is already a struct Quota 
wrapper in "include/mesos/quota/quota.hpp", we need to deprecate that first. 
Second, `ResourceQuantities` and `ResourceLimits` are right now only used in 
internal headers. We probably want to move them into public header, since this 
struct will also be used in allocator interface which is also in the public 
header. (Looking at this line, the boundary is alreayd breached: 
https://github.com/apache/mesos/blob/master/include/mesos/allocator/allocator.hpp#L41)



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

Reply via email to