You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@mesos.apache.org by Benjamin Bannier <be...@mesosphere.io> on 2018/06/01 15:41:13 UTC

Re: Review Request 67344: WIP: Made disk allocatable on their own.

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

(Updated June 1, 2018, 5:41 p.m.)


Review request for mesos, Benjamin Mahler, Gaston Kleiman, Greg Mann, and Jie Yu.


Changes
-------

Added another test.


Summary (updated)
-----------------

WIP: Made disk allocatable on their own.


Bugs: MESOS-8626
    https://issues.apache.org/jira/browse/MESOS-8626


Repository: mesos


Description
-------

This patch makes it possible to offer `disk` resources in isolation
which previously was only possible for `cpus` or `mem` resources.

While it is not possible to perform launch operations on `disk`
resources alone, frameworks could still perform most other operations
on them. With the introduction of resource providers we introduced
operations which do not take effect immediately, but only after the
master has received a status update on the operations success, so that
with the changes here frameworks can now operate on `disk` resources
independently of task launch operations.

Since resource provider resources are independent from agent-default
resources, the full agent resources are not necessarily in the same
role. Due to the way the default allocator takes roles into account,
this could in the past have lead to situations where it was impossible
to find suitable `cpus` or `mem` resources to make `disk` resources
from some other role offerable at all. This problem also disappears if
`disk` become offerable on their own.


Diffs (updated)
-----

  src/master/allocator/mesos/hierarchical.cpp b558228290e5ae6dbcc1b8a6e1fe69db9fd5874c 
  src/master/constants.hpp b31e5f027b44d371050cea9a4662a4b54127812f 
  src/tests/hierarchical_allocator_tests.cpp c97b2ba0884a7ded867c2d80e4749de54c89b5e4 
  src/tests/master_allocator_tests.cpp e1aef8a9625a805e7ad2dfad37bfeedee82f160d 
  src/tests/persistent_volume_tests.cpp 43f31b2e613666a989c205b8543ef1cde484d93c 


Diff: https://reviews.apache.org/r/67344/diff/2/

Changes: https://reviews.apache.org/r/67344/diff/1-2/


Testing
-------

`make check`


Thanks,

Benjamin Bannier


Re: Review Request 67344: WIP: Made disk allocatable on their own.

Posted by Mesos Reviewbot Windows <re...@mesos.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/67344/#review204194
-----------------------------------------------------------



PASS: Mesos patch 67344 was successfully built and tested.

Reviews applied: `['67344']`

All the build artifacts available at: http://dcos-win.westus.cloudapp.azure.com/mesos-build/review/67344

- Mesos Reviewbot Windows


On June 1, 2018, 3:41 p.m., Benjamin Bannier wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/67344/
> -----------------------------------------------------------
> 
> (Updated June 1, 2018, 3:41 p.m.)
> 
> 
> Review request for mesos, Benjamin Mahler, Gaston Kleiman, Greg Mann, and Jie Yu.
> 
> 
> Bugs: MESOS-8626
>     https://issues.apache.org/jira/browse/MESOS-8626
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This patch makes it possible to offer `disk` resources in isolation
> which previously was only possible for `cpus` or `mem` resources.
> 
> While it is not possible to perform launch operations on `disk`
> resources alone, frameworks could still perform most other operations
> on them. With the introduction of resource providers we introduced
> operations which do not take effect immediately, but only after the
> master has received a status update on the operations success, so that
> with the changes here frameworks can now operate on `disk` resources
> independently of task launch operations.
> 
> Since resource provider resources are independent from agent-default
> resources, the full agent resources are not necessarily in the same
> role. Due to the way the default allocator takes roles into account,
> this could in the past have lead to situations where it was impossible
> to find suitable `cpus` or `mem` resources to make `disk` resources
> from some other role offerable at all. This problem also disappears if
> `disk` become offerable on their own.
> 
> 
> Diffs
> -----
> 
>   src/master/allocator/mesos/hierarchical.cpp b558228290e5ae6dbcc1b8a6e1fe69db9fd5874c 
>   src/master/constants.hpp b31e5f027b44d371050cea9a4662a4b54127812f 
>   src/tests/hierarchical_allocator_tests.cpp c97b2ba0884a7ded867c2d80e4749de54c89b5e4 
>   src/tests/master_allocator_tests.cpp e1aef8a9625a805e7ad2dfad37bfeedee82f160d 
>   src/tests/persistent_volume_tests.cpp 43f31b2e613666a989c205b8543ef1cde484d93c 
> 
> 
> Diff: https://reviews.apache.org/r/67344/diff/2/
> 
> 
> Testing
> -------
> 
> `make check`
> 
> 
> Thanks,
> 
> Benjamin Bannier
> 
>