mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin Bannier <benjamin.bann...@mesosphere.io>
Subject Re: Review Request 60641: Allowed to pass total resources in 'UpdateSlaveMessage'.
Date Fri, 07 Jul 2017 08:54:21 GMT


> On July 7, 2017, 5:41 a.m., Jie Yu wrote:
> > src/messages/messages.proto
> > Lines 628 (patched)
> > <https://reviews.apache.org/r/60641/diff/2/?file=1770513#file1770513line628>
> >
> >     s/required/optional/
> >     
> >     See why enum should be optional in MESOS-4997

I made this field `optional` now.


> On July 7, 2017, 5:41 a.m., Jie Yu wrote:
> > src/slave/slave.cpp
> > Lines 1233 (patched)
> > <https://reviews.apache.org/r/60641/diff/2/?file=1770514#file1770514line1233>
> >
> >     Then, you don't have to change these if type is optional.

I would prefer to still explicitly set this field as that is the now expected usage pattern.
We should only automigrate `UNKNOWN` -> `OVERSUBSCRIBED` for backwards-compatibility reasons
external users, not to save tying.


- Benjamin


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


On July 7, 2017, 10:54 a.m., Benjamin Bannier wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/60641/
> -----------------------------------------------------------
> 
> (Updated July 7, 2017, 10:54 a.m.)
> 
> 
> Review request for mesos, Jie Yu and Jan Schlicht.
> 
> 
> Bugs: MESOS-7757
>     https://issues.apache.org/jira/browse/MESOS-7757
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This commit both extends the existing 'UpdateSlaveMessage' proto
> message, and adjusts its handling on the agent and master side.
> 
> To distinguish updates to 'oversubscribed_resources' from updates to
> 'total_resources' the message now contains a 'type' field to allow
> disambiguation among an empty list of resources and an unset list of
> resources. For backwards-compatibility we assume whenever the type
> field was not set that caller intended to use the
> 'oversubscribed_resources' field as opposed to the 'total_resources'
> field.
> 
> Currently, passing 'total_resources' is handled neither in the master
> nor the default allocator; we will implement this in a subsequent
> patch.
> 
> 
> Diffs
> -----
> 
>   src/master/master.hpp 95c2d0fab32d6b60f29a86037607ff009bd78717 
>   src/master/master.cpp 56b170ed70722eba30d98f6e648b6a31580d6b56 
>   src/messages/messages.proto 67cee3146a45f8f720b4e60739cf85085d18259b 
>   src/slave/slave.cpp 52f673633fa0041259ae40f88d4c0281a1e053b0 
>   src/tests/oversubscription_tests.cpp 2266510091b49c61310a363ab6644708655787dc 
> 
> 
> Diff: https://reviews.apache.org/r/60641/diff/3/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Benjamin Bannier
> 
>


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