mesos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bmah...@apache.org
Subject [1/7] mesos git commit: Added typedefs for using the allocator with random sorters.
Date Mon, 02 Jul 2018 06:24:21 GMT
Repository: mesos
Updated Branches:
  refs/heads/1.6.x 0587245b6 -> 47a481265


Added typedefs for using the allocator with random sorters.

Review: https://reviews.apache.org/r/67373/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/d3ad02e2
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/d3ad02e2
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/d3ad02e2

Branch: refs/heads/1.6.x
Commit: d3ad02e2ca166d35b8e06521dc27d0f592e6b260
Parents: 4dc8f26
Author: Benjamin Mahler <bmahler@apache.org>
Authored: Mon Jun 4 15:17:19 2018 -0400
Committer: Benjamin Mahler <bmahler@apache.org>
Committed: Fri Jun 29 16:32:24 2018 -0700

----------------------------------------------------------------------
 src/master/allocator/mesos/hierarchical.hpp | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/d3ad02e2/src/master/allocator/mesos/hierarchical.hpp
----------------------------------------------------------------------
diff --git a/src/master/allocator/mesos/hierarchical.hpp b/src/master/allocator/mesos/hierarchical.hpp
index d79da28..19aed2d 100644
--- a/src/master/allocator/mesos/hierarchical.hpp
+++ b/src/master/allocator/mesos/hierarchical.hpp
@@ -38,6 +38,7 @@
 #include "master/allocator/mesos/metrics.hpp"
 
 #include "master/allocator/sorter/drf/sorter.hpp"
+#include "master/allocator/sorter/random/sorter.hpp"
 
 #include "master/constants.hpp"
 
@@ -60,6 +61,12 @@ HierarchicalDRFAllocatorProcess;
 typedef MesosAllocator<HierarchicalDRFAllocatorProcess>
 HierarchicalDRFAllocator;
 
+typedef HierarchicalAllocatorProcess<RandomSorter, RandomSorter, RandomSorter>
+HierarchicalRandomAllocatorProcess;
+
+typedef MesosAllocator<HierarchicalRandomAllocatorProcess>
+HierarchicalRandomAllocator;
+
 
 namespace internal {
 


Mime
View raw message