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

Review request for mesos and Jie Yu.


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


Repository: mesos


Description
-------

The `ScaleTestContainerizer` and `ScaleTestExecutor` implement the basic
behaviors of a containerizer and executor while consuming no resources.
They are intended for use in scale testing a large number of agents
interacting with a master.

The containerizer does no actual containerization nor does it actually
even run the taks. It simply runs a `ScaleTestExecutor` which sends
`TASK_RUNNING` on `Executor::launchTask()` and `TASK_KILLED` on
`Executor::killTask()`.

Because no resources are actually consumed (but are accounted for by
the agent) any amount of resources can be offered by the agent through
`--resources` so that any desired number of tasks can be run.

Enable it with `--containerizers=scale-test`.


Diffs
-----

  src/Makefile.am a4c03c2b918816e6dd8872d37e5208f055619c47 
  src/slave/containerizer/containerizer.cpp 
d46882baa904fd439bffb23c324828b777228f1c 
  src/slave/containerizer/scale_test/containerizer.hpp PRE-CREATION 
  src/slave/containerizer/scale_test/containerizer.cpp PRE-CREATION 
  src/slave/containerizer/scale_test/executor.hpp PRE-CREATION 
  src/slave/containerizer/scale_test/executor.cpp PRE-CREATION 
  src/tests/containerizer/scale_test_containerizer_tests.cpp PRE-CREATION 

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


Testing
-------

Added a test to verify that `TASK_RUNNING` and `TASK_KILLED` statuses are 
reported upon task "launching" and "killing". Ran `make check`.


Thanks,

Ilya Pronin

Reply via email to