mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Meng Zhu <m...@mesosphere.io>
Subject Re: Review Request 71486: Added `allocated` flag to the `Allocator::recoverResources()` method.
Date Wed, 02 Oct 2019 19:34:04 GMT

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


Fix it, then Ship it!





include/mesos/allocator/allocator.hpp
Line 380 (original), 380 (patched)
<https://reviews.apache.org/r/71486/#comment305488>

    For the uninformed, we need to be specific about are allocated resource, how about:
    
    ```
    ... or allocated resources (i.e. resources used for launching tasks, NOT including unused
reservations) that are ....
    ```



src/master/allocator/mesos/allocator.hpp
Lines 152 (patched)
<https://reviews.apache.org/r/71486/#comment305489>

    how about "isAllocated"?


- Meng Zhu


On Sept. 27, 2019, 5:59 a.m., Andrei Sekretenko wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/71486/
> -----------------------------------------------------------
> 
> (Updated Sept. 27, 2019, 5:59 a.m.)
> 
> 
> Review request for mesos, Benjamin Mahler and Meng Zhu.
> 
> 
> Bugs: MESOS-9949
>     https://issues.apache.org/jira/browse/MESOS-9949
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This patch extends the signature of `recoverResources()` with a flag
> indicating wheteher the resources being recovered were actaully
> allocated to a framework, or only offered.
> 
> This is a prerequisite for tracking quota consumption in the allocator.
> 
> 
> Diffs
> -----
> 
>   include/mesos/allocator/allocator.hpp 2bab53ab5fb25931a724c20a039e1301983ba574 
>   src/master/allocator/mesos/allocator.hpp 6921581745bf876ee42bcfb62b59245f23fcbf47 
>   src/master/allocator/mesos/hierarchical.hpp d42124f534536ad044bff9878d242892fa042f24

>   src/master/allocator/mesos/hierarchical.cpp 47281542792486854b71c7e75dfa8ea3ee3ef3fc

>   src/master/master.cpp 65994aa72ec4bfefdb09b88a62db910727bb0897 
>   src/tests/allocator.hpp 01e6d2ce3d0655ad408f605c7be84cd7c0f0d479 
>   src/tests/hierarchical_allocator_benchmarks.cpp ede116989fe64893f5da56347aab52c6f445e9dc

>   src/tests/hierarchical_allocator_tests.cpp a13eb017f7a93ee67c8426e4150858a547175ed6

>   src/tests/master_allocator_tests.cpp e9607577c57c4ae36133a649667b5a416ba9dece 
>   src/tests/slave_recovery_tests.cpp b23162d68e2aeaa7b1f1c0d74804bbef5cb1f045 
> 
> 
> Diff: https://reviews.apache.org/r/71486/diff/3/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Andrei Sekretenko
> 
>


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