You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ya...@apache.org on 2016/08/02 15:56:32 UTC

mesos git commit: Enhanced benchmark tests for resources to include shared resources.

Repository: mesos
Updated Branches:
  refs/heads/master 74ceb051c -> 59a61a4b3


Enhanced benchmark tests for resources to include shared resources.

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


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

Branch: refs/heads/master
Commit: 59a61a4b3a0070c2889e75cdf307e0abcd15f20a
Parents: 74ceb05
Author: Anindya Sinha <an...@apple.com>
Authored: Mon Aug 1 18:06:32 2016 -0700
Committer: Jiang Yan Xu <xu...@apple.com>
Committed: Tue Aug 2 08:56:21 2016 -0700

----------------------------------------------------------------------
 src/tests/resources_tests.cpp | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/59a61a4b/src/tests/resources_tests.cpp
----------------------------------------------------------------------
diff --git a/src/tests/resources_tests.cpp b/src/tests/resources_tests.cpp
index 54eaabd..e61bdef 100644
--- a/src/tests/resources_tests.cpp
+++ b/src/tests/resources_tests.cpp
@@ -2664,9 +2664,19 @@ public:
     ranges.resources = Resources::parse("ports:[" + ports + "]").get();
     ranges.totalOperations = 1000;
 
+    // Test a typical vector of scalars which include shared resources
+    // (viz, shared persistent volumes).
+    Resource disk = createDiskResource(
+        "256", "test", "persistentId", "/volume", None(), true);
+
+    Parameter shared;
+    shared.resources = Resources::parse("cpus:1;mem:128").get() + disk;
+    shared.totalOperations = 50000;
+
     parameters_.push_back(std::move(scalars));
     parameters_.push_back(std::move(reservations));
     parameters_.push_back(std::move(ranges));
+    parameters_.push_back(std::move(shared));
 
     return parameters_;
   }