This is an automatically generated e-mail. To reply, visit:

(Updated Sept. 22, 2015, 2:14 a.m.)

Review request for mesos, Connor Doyle and Niklas Nielsen.

Summary (updated)

Add a new callback enabling custom resource discovery logic

Bugs: MESOS-3366

Repository: mesos


First API draft for MESOS-3366.

1) Only supports resources for now, we can add another hook for attributes with 
a very similar code.
2) The callback currently receives the full SlaveInfo structure and construct a 
new Resources object.
3) If there is multiple callbacks, each callback will see the changes made by 
previous callbacks and are free to override or merge the detected resources as 
they see fit.


  include/mesos/hook.hpp 2353602 
  src/examples/test_hook_module.cpp 0dc74d6 
  src/hook/manager.hpp a517c05 
  src/hook/manager.cpp 691976e 
  src/slave/slave.cpp 29865ec 
  src/tests/hook_tests.cpp b23a587 

Diff: https://reviews.apache.org/r/38279/diff/


make clean && make && make check


Felix Abecassis

Reply via email to