You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bm...@apache.org on 2018/06/04 21:16:44 UTC

[5/6] mesos git commit: Added typedefs for using the allocator with random sorters.

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/b8c635d7
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/b8c635d7
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/b8c635d7

Branch: refs/heads/master
Commit: b8c635d7205305ce09fd158a035f94c8baef93c7
Parents: 4356fea
Author: Benjamin Mahler <bm...@apache.org>
Authored: Mon Jun 4 15:17:19 2018 -0400
Committer: Benjamin Mahler <bm...@apache.org>
Committed: Mon Jun 4 17:15:49 2018 -0400

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


http://git-wip-us.apache.org/repos/asf/mesos/blob/b8c635d7/src/master/allocator/mesos/hierarchical.hpp
----------------------------------------------------------------------
diff --git a/src/master/allocator/mesos/hierarchical.hpp b/src/master/allocator/mesos/hierarchical.hpp
index 955ae3e..e9d1742 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 {