This is an automated email from the ASF dual-hosted git repository.
mzhu pushed a change to branch 1.6.x
in repository https://gitbox.apache.org/repos/asf/mesos.git.
from a092c2c Sent SIGKILL to I/O switchboard server as a safeguard.
new 9883e06 Disallowed nan, inf and so on when parsing Value::Scalar.
new 2762d74 Pulled up the resource quantities class for more general use.
new 8c6f52a Added tests for `ResourceQuantities`.
new 610f9c6 Added a `Resources` method `contains(ResourceQuantities)`.
new 360e002 Extended `min_allocatable_resources` flag to cover non-scalar
resources.
The 5 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
docs/configuration/master.md | 22 ++--
include/mesos/allocator/allocator.hpp | 4 +-
include/mesos/resources.hpp | 11 ++
include/mesos/v1/resources.hpp | 11 ++
src/CMakeLists.txt | 1 +
src/Makefile.am | 3 +
src/common/resource_quantities.cpp | 138 +++++++++++++++++++++
src/common/resource_quantities.hpp | 127 +++++++++++++++++++
src/common/resources.cpp | 44 +++++++
src/common/values.cpp | 15 +++
src/master/allocator/mesos/allocator.hpp | 25 ++--
src/master/allocator/mesos/hierarchical.cpp | 11 +-
src/master/allocator/mesos/hierarchical.hpp | 5 +-
src/master/allocator/sorter/drf/sorter.cpp | 14 ++-
src/master/allocator/sorter/drf/sorter.hpp | 2 +
src/master/allocator/sorter/random/sorter.hpp | 2 +
src/master/flags.cpp | 22 ++--
src/master/master.cpp | 54 ++++----
src/tests/CMakeLists.txt | 1 +
src/tests/allocator.hpp | 2 +-
src/tests/hierarchical_allocator_tests.cpp | 13 +-
src/tests/master_allocator_tests.cpp | 106 ++++++++++++++++
src/tests/resource_quantities_tests.cpp | 171 ++++++++++++++++++++++++++
src/tests/resources_tests.cpp | 96 +++++++++++++++
src/tests/values_tests.cpp | 9 ++
src/v1/resources.cpp | 44 +++++++
src/v1/values.cpp | 15 +++
27 files changed, 890 insertions(+), 78 deletions(-)
create mode 100644 src/common/resource_quantities.cpp
create mode 100644 src/common/resource_quantities.hpp
create mode 100644 src/tests/resource_quantities_tests.cpp