mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Rukletsov" <ruklet...@gmail.com>
Subject Re: Review Request 38110: Quota: Checked sanity of quota set requests.
Date Mon, 09 Nov 2015 13:21:58 GMT


> On Nov. 5, 2015, 10:48 p.m., Joseph Wu wrote:
> > src/master/quota_handler.cpp, lines 166-168
> > <https://reviews.apache.org/r/38110/diff/11/?file=1116699#file1116699line166>
> >
> >     I checked the codepaths for `Operation::RESERVE` and apparently there's nothing
preventing you from reserving revocable resources.  (Unless I'm not seeing it.)
> >     
> >     I think we shouldn't allow this.  If we did, we may end up double counting (or
worse) the same resources.  For example, if the `ResourceEstimator` always returned the total
CPU on the agent, we would see that agent as having 2x CPU (half revocable).

Yep, it's possible, but I wouldn't do it either. Maybe a `TODO` is not the right tag for this
comment. I'll consider killing it.


- Alexander


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


On Nov. 5, 2015, 7:29 p.m., Alexander Rukletsov wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/38110/
> -----------------------------------------------------------
> 
> (Updated Nov. 5, 2015, 7:29 p.m.)
> 
> 
> Review request for mesos, Bernd Mathiske, Joerg Schad, Joris Van Remoortere, Joseph Wu,
and Michael Park.
> 
> 
> Bugs: MESOS-3074
>     https://issues.apache.org/jira/browse/MESOS-3074
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Performs a check whether a quota request is reasonable and can be satisfied at the moment.
A precise answer is impossible here, but a sanity check is still helpful, because it allows
us to filter knowingly unsatisfiable requests.
> 
> 
> Diffs
> -----
> 
>   src/master/master.hpp 3aa7017287506938d77bbfb1e06f510101009ee3 
>   src/master/quota_handler.cpp PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/38110/diff/
> 
> 
> Testing
> -------
> 
> make check (Mac OS X 10.10.4)
> 
> 
> Thanks,
> 
> Alexander Rukletsov
> 
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message