> On May 26, 2015, 7:26 p.m., Vinod Kone wrote:
> > include/mesos/slave/oversubscription.proto, line 47
> > <https://reviews.apache.org/r/34581/diff/6/?file=970357#file970357line47>
> >
> >     why optional?
> 
> Bartek Plotka wrote:
>     IMO, because we can (only optionally) specify the descriptive reason of 
> some action.
>     
>     Secondly, it's not good idea to limit ourselves with too many required 
> fields - what if we will decide in the future that some actions will have 
> some special type of reasons? (:
> 
> Niklas Nielsen wrote:
>     I don't have a strong opinion on this, other than what Bartek said. 
> Required is forever. Vinod, still want it to be required?
> 
> Vinod Kone wrote:
>     optional is fine. can it be an enum though? if yes, that would make it 
> easier expose stats on it.
> 
> Niklas Nielsen wrote:
>     Don't think we can (yet) - we need more experience with the controller 
> before generalizing the reason. Should we call it 'message' instead and plan 
> for a 'reason' enum?

What about dropping that field, since we don't know the particular definition 
of that reason? It would be difficult to built the enum *reason* for now.. The 
*reason* will be very useful for some advanced alghoritms like smart corrective 
units or machine learning, so let's add it when we need such special msg?


- Bartek


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


On May 26, 2015, 10:24 p.m., Bartek Plotka wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/34581/
> -----------------------------------------------------------
> 
> (Updated May 26, 2015, 10:24 p.m.)
> 
> 
> Review request for mesos, Jie Yu, Joris Van Remoortere, Niklas Nielsen, 
> Szymon Konefal, and Vinod Kone.
> 
> 
> Bugs: MESOS-2760
>     https://issues.apache.org/jira/browse/MESOS-2760
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This proto describes a QoS correction message for particular executor or task.
> It is a generic message between QoS Controller and slave.
> 
> Additionaly, updated Makefile to include this proto during compilation.
> 
> This request updates the https://reviews.apache.org/r/34571/
> 
> 
> Diffs
> -----
> 
>   include/mesos/slave/oversubscription.proto PRE-CREATION 
>   src/Makefile.am 814468e3c5c750a6649b5eeb7c7f945f9e025c19 
> 
> Diff: https://reviews.apache.org/r/34581/diff/
> 
> 
> Testing
> -------
> 
> * make check
> * run mesos:
> 1) build (make)
> 2) checked that *oversubscription.pb.h* and *oversubscription.pb.cc* are in 
> the proper directories
> 3) run *mesos-slave*, *mesos-master* and checked if their behaviour is proper
> 
> 
> Thanks,
> 
> Bartek Plotka
> 
>

Reply via email to