{"action":"created","comment":{"url":"https://api.github.com/repos/apache/storm/pulls/comments/48058248","id":48058248,"diff_hunk":"@@ -0,0 +1,1166 @@\n+/**\n+ * Licensed to the Apache Software Foundation (ASF) under one\n+ * or more contributor license agreements.  See the NOTICE file\n+ * distributed with this work for additional information\n+ * regarding copyright ownership.  The ASF licenses this file\n+ * to you under the Apache License, Version 2.0 (the\n+ * \"License\"); you may not use this file except in compliance\n+ * with the License.  You may obtain a copy of the License at\n+ * <p>\n+ * http://www.apache.org/licenses/LICENSE-2.0\n+ * <p>\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+package backtype.storm.scheduler.resource;\n+\n+import backtype.storm.Config;\n+import backtype.storm.scheduler.Cluster;\n+import backtype.storm.scheduler.ExecutorDetails;\n+import backtype.storm.scheduler.INimbus;\n+import backtype.storm.scheduler.IScheduler;\n+import backtype.storm.scheduler.SchedulerAssignment;\n+import backtype.storm.scheduler.SchedulerAssignmentImpl;\n+import backtype.storm.scheduler.SupervisorDetails;\n+import backtype.storm.scheduler.Topologies;\n+import backtype.storm.scheduler.TopologyDetails;\n+import backtype.storm.scheduler.WorkerSlot;\n+import backtype.storm.utils.Time;\n+import backtype.storm.utils.Utils;\n+import backtype.storm.validation.ConfigValidation;\n+import org.junit.Assert;\n+import org.junit.Test;\n+import org.slf4j.Logger;\n+import org.slf4j.LoggerFactory;\n+\n+import java.util.Collection;\n+import java.util.HashMap;\n+import java.util.Iterator;\n+import java.util.Map;\n+import java.util.Set;\n+\n+public class TestResourceAwareScheduler {\n+\n+    private static final int NUM_SUPS = 20;\n+    private static final int NUM_WORKERS_PER_SUP = 4;\n+    private final String TOPOLOGY_SUBMITTER = \"jerry\";\n+\n+    private static final Logger LOG = LoggerFactory.getLogger(TestResourceAwareScheduler.class);\n+\n+    @Test\n+    public void TestReadInResourceAwareSchedulerUserPools() {\n+\n+        Map fromFile = Utils.findAndReadConfigFile(\"user-resource-pools.yaml\", false);\n+        LOG.info(\"fromFile: {}\", fromFile);\n+        ConfigValidation.validateFields(fromFile);\n+    }\n+\n+    @Test\n+    public void TestTopologySortedInCorrectOrder() {\n+        INimbus iNimbus = new TestUtilsForResourceAwareScheduler.INimbusTest();\n+        Map<String, Number> resourceMap = new HashMap<String, Number>();\n+        resourceMap.put(Config.SUPERVISOR_CPU_CAPACITY, 100.0);\n+        resourceMap.put(Config.SUPERVISOR_MEMORY_CAPACITY_MB, 1024.0);\n+        Map<String, SupervisorDetails> supMap = TestUtilsForResourceAwareScheduler.genSupervisors(20, 4, resourceMap);\n+        Config config = new Config();\n+        config.putAll(Utils.readDefaultConfig());\n+        config.put(Config.RESOURCE_AWARE_SCHEDULER_EVICTION_STRATEGY, backtype.storm.scheduler.resource.strategies.eviction.DefaultEvictionStrategy.class.getName());\n+        config.put(Config.RESOURCE_AWARE_SCHEDULER_PRIORITY_STRATEGY, backtype.storm.scheduler.resource.strategies.priority.DefaultSchedulingPriorityStrategy.class.getName());\n+        config.put(Config.TOPOLOGY_SCHEDULER_STRATEGY, backtype.storm.scheduler.resource.strategies.scheduling.DefaultResourceAwareStrategy.class.getName());\n+\n+        config.put(Config.TOPOLOGY_SUBMITTER_USER, TOPOLOGY_SUBMITTER);\n+\n+        Map<String, Map<String, Number>> resourceUserPool = new HashMap<String, Map<String, Number>>();\n+        resourceUserPool.put(\"jerry\", new HashMap<String, Number>());\n+        resourceUserPool.get(\"jerry\").put(\"cpu\", 1000);\n+        resourceUserPool.get(\"jerry\").put(\"memory\", 8192.0);\n+\n+        resourceUserPool.put(\"bobby\", new HashMap<String, Number>());\n+        resourceUserPool.get(\"bobby\").put(\"cpu\", 10000.0);\n+        resourceUserPool.get(\"bobby\").put(\"memory\", 32768);\n+\n+        resourceUserPool.put(\"derek\", new HashMap<String, Number>());\n+        resourceUserPool.get(\"derek\").put(\"cpu\", 5000.0);\n+        resourceUserPool.get(\"derek\").put(\"memory\", 16384.0);\n+\n+        config.put(Config.RESOURCE_AWARE_SCHEDULER_USER_POOLS, resourceUserPool);\n+\n+        TopologyDetails topo1 = TestUtilsForResourceAwareScheduler.getTopology(\"topo-1\", config, 5, 15, 1, 1, Time.currentTimeSecs() - 2, 20);\n+        TopologyDetails topo2 = TestUtilsForResourceAwareScheduler.getTopology(\"topo-2\", config, 5, 15, 1, 1, Time.currentTimeSecs() - 8, 30);\n+        TopologyDetails topo3 = TestUtilsForResourceAwareScheduler.getTopology(\"topo-3\", config, 5, 15, 1, 1, Time.currentTimeSecs() - 16, 30);\n+        TopologyDetails topo4 = TestUtilsForResourceAwareScheduler.getTopology(\"topo-4\", config, 5, 15, 1, 1, Time.currentTimeSecs() - 16, 20);\n+        TopologyDetails topo5 = TestUtilsForResourceAwareScheduler.getTopology(\"topo-5\", config, 5, 15, 1, 1, Time.currentTimeSecs() - 24, 30);\n+\n+        Map<String, TopologyDetails> topoMap = new HashMap<String, TopologyDetails>();\n+        topoMap.put(topo1.getId(), topo1);\n+        topoMap.put(topo2.getId(), topo2);\n+        topoMap.put(topo3.getId(), topo3);\n+        topoMap.put(topo4.getId(), topo4);\n+        topoMap.put(topo5.getId(), topo5);\n+\n+        Cluster cluster = new Cluster(iNimbus, supMap, new HashMap<String, SchedulerAssignmentImpl>(), config);\n+\n+        Topologies topologies = new Topologies(topoMap);\n+\n+        ResourceAwareScheduler rs = new ResourceAwareScheduler();\n+\n+        rs.prepare(config);\n+        rs.schedule(topologies, cluster);\n+\n+        Set<TopologyDetails> queue = rs.getUser(\"jerry\").getTopologiesPending();\n+        Assert.assertEquals(\"check size\", queue.size(), 0);\n+\n+        queue = rs.getUser(\"jerry\").getTopologiesRunning();\n+\n+        Iterator<TopologyDetails> itr = queue.iterator();\n+\n+        TopologyDetails topo = itr.next();\n+        LOG.info(\"{} - {}\", topo.getName(), queue);\n+        Assert.assertEquals(\"check order\", topo.getName(), \"topo-4\");\n+\n+        topo = itr.next();\n+        LOG.info(\"{} - {}\", topo.getName(), queue);\n+        Assert.assertEquals(\"check order\", topo.getName(), \"topo-1\");\n+\n+        topo = itr.next();\n+        LOG.info(\"{} - {}\", topo.getName(), queue);\n+        Assert.assertEquals(\"check order\", topo.getName(), \"topo-5\");\n+\n+        topo = itr.next();\n+        LOG.info(\"{} - {}\", topo.getName(), queue);\n+        Assert.assertEquals(\"check order\", topo.getName(), \"topo-3\");\n+\n+        topo = itr.next();\n+        LOG.info(\"{} - {}\", topo.getName(), queue);\n+        Assert.assertEquals(\"check order\", topo.getName(), \"topo-2\");\n+\n+        TopologyDetails topo6 = TestUtilsForResourceAwareScheduler.getTopology(\"topo-6\", config, 5, 15, 1, 1, Time.currentTimeSecs() - 30, 10);\n+        topoMap.put(topo6.getId(), topo6);\n+\n+        topologies = new Topologies(topoMap);\n+        rs.prepare(config);\n+        rs.schedule(topologies, cluster);\n+\n+        queue = rs.getUser(\"jerry\").getTopologiesRunning();\n+        itr = queue.iterator();\n+\n+        topo = itr.next();\n+        Assert.assertEquals(\"check order\", topo.getName(), \"topo-6\");\n+\n+        topo = itr.next();\n+        Assert.assertEquals(\"check order\", topo.getName(), \"topo-4\");\n+\n+        topo = itr.next();\n+        Assert.assertEquals(\"check order\", topo.getName(), \"topo-1\");\n+\n+        topo = itr.next();\n+        Assert.assertEquals(\"check order\", topo.getName(), \"topo-5\");\n+\n+        topo = itr.next();\n+        Assert.assertEquals(\"check order\", topo.getName(), \"topo-3\");\n+\n+        topo = itr.next();\n+        Assert.assertEquals(\"check order\", topo.getName(), \"topo-2\");\n+\n+        queue = rs.getUser(\"jerry\").getTopologiesPending();\n+        Assert.assertEquals(\"check size\", queue.size(), 0);\n+    }\n+\n+    @Test\n+    public void TestMultipleUsers() {\n+        INimbus iNimbus = new TestUtilsForResourceAwareScheduler.INimbusTest();\n+        Map<String, Number> resourceMap = new HashMap<String, Number>();\n+        resourceMap.put(Config.SUPERVISOR_CPU_CAPACITY, 1000.0);\n+        resourceMap.put(Config.SUPERVISOR_MEMORY_CAPACITY_MB, 1024.0 * 10);\n+        Map<String, SupervisorDetails> supMap = TestUtilsForResourceAwareScheduler.genSupervisors(20, 4, resourceMap);\n+        Config config = new Config();\n+        config.putAll(Utils.readDefaultConfig());\n+        config.put(Config.RESOURCE_AWARE_SCHEDULER_EVICTION_STRATEGY, backtype.storm.scheduler.resource.strategies.eviction.DefaultEvictionStrategy.class.getName());\n+        config.put(Config.RESOURCE_AWARE_SCHEDULER_PRIORITY_STRATEGY, backtype.storm.scheduler.resource.strategies.priority.DefaultSchedulingPriorityStrategy.class.getName());\n+        config.put(Config.TOPOLOGY_SCHEDULER_STRATEGY, backtype.storm.scheduler.resource.strategies.scheduling.DefaultResourceAwareStrategy.class.getName());\n+        Map<String, Map<String, Number>> resourceUserPool = new HashMap<String, Map<String, Number>>();\n+        resourceUserPool.put(\"jerry\", new HashMap<String, Number>());\n+        resourceUserPool.get(\"jerry\").put(\"cpu\", 1000);\n+        resourceUserPool.get(\"jerry\").put(\"memory\", 8192.0);\n+\n+        resourceUserPool.put(\"bobby\", new HashMap<String, Number>());\n+        resourceUserPool.get(\"bobby\").put(\"cpu\", 10000.0);\n+        resourceUserPool.get(\"bobby\").put(\"memory\", 32768);\n+\n+        resourceUserPool.put(\"derek\", new HashMap<String, Number>());\n+        resourceUserPool.get(\"derek\").put(\"cpu\", 5000.0);\n+        resourceUserPool.get(\"derek\").put(\"memory\", 16384.0);\n+\n+        config.put(Config.RESOURCE_AWARE_SCHEDULER_USER_POOLS, resourceUserPool);\n+        Cluster cluster = new Cluster(iNimbus, supMap, new HashMap<String, SchedulerAssignmentImpl>(), config);\n+\n+        config.put(Config.TOPOLOGY_SUBMITTER_USER, \"jerry\");\n+\n+        TopologyDetails topo1 = TestUtilsForResourceAwareScheduler.getTopology(\"topo-1\", config, 5, 15, 1, 1, Time.currentTimeSecs() - 2, 20);\n+        TopologyDetails topo2 = TestUtilsForResourceAwareScheduler.getTopology(\"topo-2\", config, 5, 15, 1, 1, Time.currentTimeSecs() - 8, 29);\n+        TopologyDetails topo3 = TestUtilsForResourceAwareScheduler.getTopology(\"topo-3\", config, 5, 15, 1, 1, Time.currentTimeSecs() - 16, 29);\n+        TopologyDetails topo4 = TestUtilsForResourceAwareScheduler.getTopology(\"topo-4\", config, 5, 15, 1, 1, Time.currentTimeSecs() - 16, 20);\n+        TopologyDetails topo5 = TestUtilsForResourceAwareScheduler.getTopology(\"topo-5\", config, 5, 15, 1, 1, Time.currentTimeSecs() - 24, 29);\n+\n+        config.put(Config.TOPOLOGY_SUBMITTER_USER, \"bobby\");\n+\n+        TopologyDetails topo6 = TestUtilsForResourceAwareScheduler.getTopology(\"topo-6\", config, 5, 15, 1, 1, Time.currentTimeSecs() - 2, 20);\n+        TopologyDetails topo7 = TestUtilsForResourceAwareScheduler.getTopology(\"topo-7\", config, 5, 15, 1, 1, Time.currentTimeSecs() - 8, 29);\n+        TopologyDetails topo8 = TestUtilsForResourceAwareScheduler.getTopology(\"topo-8\", config, 5, 15, 1, 1, Time.currentTimeSecs() - 16, 29);\n+        TopologyDetails topo9 = TestUtilsForResourceAwareScheduler.getTopology(\"topo-9\", config, 5, 15, 1, 1, Time.currentTimeSecs() - 16, 20);\n+        TopologyDetails topo10 = TestUtilsForResourceAwareScheduler.getTopology(\"topo-10\", config, 5, 15, 1, 1, Time.currentTimeSecs() - 24, 29);\n+\n+        config.put(Config.TOPOLOGY_SUBMITTER_USER, \"derek\");\n+\n+        TopologyDetails topo11 = TestUtilsForResourceAwareScheduler.getTopology(\"topo-11\", config, 5, 15, 1, 1, Time.currentTimeSecs() - 2, 20);\n+        TopologyDetails topo12 = TestUtilsForResourceAwareScheduler.getTopology(\"topo-12\", config, 5, 15, 1, 1, Time.currentTimeSecs() - 8, 29);\n+        TopologyDetails topo13 = TestUtilsForResourceAwareScheduler.getTopology(\"topo-13\", config, 5, 15, 1, 1, Time.currentTimeSecs() - 16, 29);\n+        TopologyDetails topo14 = TestUtilsForResourceAwareScheduler.getTopology(\"topo-14\", config, 5, 15, 1, 1, Time.currentTimeSecs() - 16, 20);\n+        TopologyDetails topo15 = TestUtilsForResourceAwareScheduler.getTopology(\"topo-15\", config, 5, 15, 1, 1, Time.currentTimeSecs() - 24, 29);\n+\n+        Map<String, TopologyDetails> topoMap = new HashMap<String, TopologyDetails>();\n+        topoMap.put(topo1.getId(), topo1);\n+        topoMap.put(topo2.getId(), topo2);\n+        topoMap.put(topo3.getId(), topo3);\n+        topoMap.put(topo4.getId(), topo4);\n+        topoMap.put(topo5.getId(), topo5);\n+        topoMap.put(topo6.getId(), topo6);\n+        topoMap.put(topo7.getId(), topo7);\n+        topoMap.put(topo8.getId(), topo8);\n+        topoMap.put(topo9.getId(), topo9);\n+        topoMap.put(topo10.getId(), topo10);\n+        topoMap.put(topo11.getId(), topo11);\n+        topoMap.put(topo12.getId(), topo12);\n+        topoMap.put(topo13.getId(), topo13);\n+        topoMap.put(topo14.getId(), topo14);\n+        topoMap.put(topo15.getId(), topo15);\n+\n+        Topologies topologies = new Topologies(topoMap);\n+\n+        ResourceAwareScheduler rs = new ResourceAwareScheduler();\n+\n+        rs.prepare(config);\n+        rs.schedule(topologies, cluster);\n+\n+        for (TopologyDetails topo : topoMap.values()) {\n+            Assert.assertTrue(TestUtilsForResourceAwareScheduler.assertStatusSuccess(cluster.getStatusMap().get(topo.getId())));\n+        }\n+\n+        for (User user : rs.getUserMap().values()) {\n+            Assert.assertEquals(user.getTopologiesPending().size(), 0);\n+            Assert.assertEquals(user.getTopologiesRunning().size(), 5);\n+        }\n+    }\n+\n+    @Test\n+    public void testHandlingClusterSubscription() {\n+        INimbus iNimbus = new TestUtilsForResourceAwareScheduler.INimbusTest();\n+        Map<String, Number> resourceMap = new HashMap<String, Number>();\n+        resourceMap.put(Config.SUPERVISOR_CPU_CAPACITY, 200.0);\n+        resourceMap.put(Config.SUPERVISOR_MEMORY_CAPACITY_MB, 1024.0 * 10);\n+        Map<String, SupervisorDetails> supMap = TestUtilsForResourceAwareScheduler.genSupervisors(1, 4, resourceMap);\n+        Config config = new Config();\n+        config.putAll(Utils.readDefaultConfig());\n+        config.put(Config.RESOURCE_AWARE_SCHEDULER_EVICTION_STRATEGY, backtype.storm.scheduler.resource.strategies.eviction.DefaultEvictionStrategy.class.getName());\n+        config.put(Config.RESOURCE_AWARE_SCHEDULER_PRIORITY_STRATEGY, backtype.storm.scheduler.resource.strategies.priority.DefaultSchedulingPriorityStrategy.class.getName());\n+        config.put(Config.TOPOLOGY_SCHEDULER_STRATEGY, backtype.storm.scheduler.resource.strategies.scheduling.DefaultResourceAwareStrategy.class.getName());\n+        Map<String, Map<String, Number>> resourceUserPool = new HashMap<String, Map<String, Number>>();\n+        resourceUserPool.put(\"jerry\", new HashMap<String, Number>());\n+        resourceUserPool.get(\"jerry\").put(\"cpu\", 1000);\n+        resourceUserPool.get(\"jerry\").put(\"memory\", 8192.0);\n+\n+        resourceUserPool.put(\"bobby\", new HashMap<String, Number>());\n+        resourceUserPool.get(\"bobby\").put(\"cpu\", 10000.0);\n+        resourceUserPool.get(\"bobby\").put(\"memory\", 32768);\n+\n+        resourceUserPool.put(\"derek\", new HashMap<String, Number>());\n+        resourceUserPool.get(\"derek\").put(\"cpu\", 5000.0);\n+        resourceUserPool.get(\"derek\").put(\"memory\", 16384.0);\n+\n+        config.put(Config.RESOURCE_AWARE_SCHEDULER_USER_POOLS, resourceUserPool);\n+        Cluster cluster = new Cluster(iNimbus, supMap, new HashMap<String, SchedulerAssignmentImpl>(), config);\n+\n+        config.put(Config.TOPOLOGY_SUBMITTER_USER, \"jerry\");\n+\n+        TopologyDetails topo1 = TestUtilsForResourceAwareScheduler.getTopology(\"topo-1\", config, 5, 15, 1, 1, Time.currentTimeSecs() - 2, 20);\n+        TopologyDetails topo2 = TestUtilsForResourceAwareScheduler.getTopology(\"topo-2\", config, 5, 15, 1, 1, Time.currentTimeSecs() - 8, 29);\n+\n+        Map<String, TopologyDetails> topoMap = new HashMap<String, TopologyDetails>();\n+        topoMap.put(topo1.getId(), topo1);\n+        topoMap.put(topo2.getId(), topo2);\n+\n+        Topologies topologies = new Topologies(topoMap);\n+\n+        ResourceAwareScheduler rs = new ResourceAwareScheduler();\n+\n+        rs.prepare(config);\n+        rs.schedule(topologies, cluster);\n+\n+        int fullyScheduled = 0;\n+        for (TopologyDetails topo : topoMap.values()) {\n+            if (TestUtilsForResourceAwareScheduler.assertStatusSuccess(cluster.getStatusMap().get(topo.getId()))) {\n+                fullyScheduled++;\n+            }\n+        }\n+        Assert.assertEquals(\"# of Fully scheduled\", 1, fullyScheduled);\n+        Assert.assertEquals(\"# of topologies schedule attempted\", 1, rs.getUser(\"jerry\").getTopologiesAttempted().size());\n+        Assert.assertEquals(\"# of topologies running\", 1, rs.getUser(\"jerry\").getTopologiesRunning().size());\n+        Assert.assertEquals(\"# of topologies schedule pending\", 0, rs.getUser(\"jerry\").getTopologiesPending().size());","path":"storm-core/test/jvm/backtype/storm/scheduler/resource/TestResourceAwareScheduler.java","position":374,"original_position":312,"commit_id":"0f80d0678c243a7bd1b6aa169272741ef7e2950a","original_commit_id":"068a8c21e9e4f5e213fca9eab86398685036ac9e","user":{"login":"jerrypeng","id":3613359,"avatar_url":"https://avatars.githubusercontent.com/u/3613359?v=3","gravatar_id":"","url":"https://api.github.com/users/jerrypeng","html_url":"https://github.com/jerrypeng","followers_url":"https://api.github.com/users/jerrypeng/followers","following_url":"https://api.github.com/users/jerrypeng/following{/other_user}","gists_url":"https://api.github.com/users/jerrypeng/gists{/gist_id}","starred_url":"https://api.github.com/users/jerrypeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jerrypeng/subscriptions","organizations_url":"https://api.github.com/users/jerrypeng/orgs","repos_url":"https://api.github.com/users/jerrypeng/repos","events_url":"https://api.github.com/users/jerrypeng/events{/privacy}","received_events_url":"https://api.github.com/users/jerrypeng/received_events","type":"User","site_admin":false},"body":"ok sorry for the confusion!  If you feel strongly about the name change, I can do it.  But if you think its not that big of a deal then I will leave it as it is","created_at":"2015-12-18T19:10:00Z","updated_at":"2015-12-18T19:10:00Z","html_url":"https://github.com/apache/storm/pull/921#discussion_r48058248","pull_request_url":"https://api.github.com/repos/apache/storm/pulls/921","_links":{"self":{"href":"https://api.github.com/repos/apache/storm/pulls/comments/48058248"},"html":{"href":"https://github.com/apache/storm/pull/921#discussion_r48058248"},"pull_request":{"href":"https://api.github.com/repos/apache/storm/pulls/921"}}},"pull_request":{"url":"https://api.github.com/repos/apache/storm/pulls/921","id":52622402,"html_url":"https://github.com/apache/storm/pull/921","diff_url":"https://github.com/apache/storm/pull/921.diff","patch_url":"https://github.com/apache/storm/pull/921.patch","issue_url":"https://api.github.com/repos/apache/storm/issues/921","number":921,"state":"open","locked":false,"title":"[STORM-898] - Add priorities and per user resource guarantees to Resource Aware Scheduler","user":{"login":"jerrypeng","id":3613359,"avatar_url":"https://avatars.githubusercontent.com/u/3613359?v=3","gravatar_id":"","url":"https://api.github.com/users/jerrypeng","html_url":"https://github.com/jerrypeng","followers_url":"https://api.github.com/users/jerrypeng/followers","following_url":"https://api.github.com/users/jerrypeng/following{/other_user}","gists_url":"https://api.github.com/users/jerrypeng/gists{/gist_id}","starred_url":"https://api.github.com/users/jerrypeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jerrypeng/subscriptions","organizations_url":"https://api.github.com/users/jerrypeng/orgs","repos_url":"https://api.github.com/users/jerrypeng/repos","events_url":"https://api.github.com/users/jerrypeng/events{/privacy}","received_events_url":"https://api.github.com/users/jerrypeng/received_events","type":"User","site_admin":false},"body":"https://issues.apache.org/jira/browse/STORM-898\r\n\r\nAllows the Resource Aware Scheduler to how multi-tenant capabilites. In a multi-tenant environment we would like to be able to give individual users a guarantee of how much CPU/Memory/Network they will be able to use in a cluster. We would also like to know which topologies a user feels are the most important to keep running if there are not enough resources to run all of their topologies.\r\n\r\nEach user should be able to specify if their topology is production, staging, or development.\r\n\r\nBased on topology priorities and resource guarantees, we need to be able to evict topologies that are less important so that users can have there resource guarantees satisfied\r\n\r\nEach topology can also be scheduled by a different strategy.  Users can define custom scheduling strategies and the user can specify on a per topology basis what strategy to use for a topology\r\n\r\nFor more details please read documentation:\r\n\r\nhttps://issues.apache.org/jira/secure/attachment/12775719/Resource%20Aware%20Scheduler%20for%20Storm.pdf\r\n\r\nI have also recently updated the documentation","created_at":"2015-12-04T02:24:51Z","updated_at":"2015-12-18T19:10:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4142cc3e87079683a6cfedcf6a14afa0c1ce111b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/storm/pulls/921/commits","review_comments_url":"https://api.github.com/repos/apache/storm/pulls/921/comments","review_comment_url":"https://api.github.com/repos/apache/storm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/storm/issues/921/comments","statuses_url":"https://api.github.com/repos/apache/storm/statuses/0f80d0678c243a7bd1b6aa169272741ef7e2950a","head":{"label":"jerrypeng:STORM-898","ref":"STORM-898","sha":"0f80d0678c243a7bd1b6aa169272741ef7e2950a","user":{"login":"jerrypeng","id":3613359,"avatar_url":"https://avatars.githubusercontent.com/u/3613359?v=3","gravatar_id":"","url":"https://api.github.com/users/jerrypeng","html_url":"https://github.com/jerrypeng","followers_url":"https://api.github.com/users/jerrypeng/followers","following_url":"https://api.github.com/users/jerrypeng/following{/other_user}","gists_url":"https://api.github.com/users/jerrypeng/gists{/gist_id}","starred_url":"https://api.github.com/users/jerrypeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jerrypeng/subscriptions","organizations_url":"https://api.github.com/users/jerrypeng/orgs","repos_url":"https://api.github.com/users/jerrypeng/repos","events_url":"https://api.github.com/users/jerrypeng/events{/privacy}","received_events_url":"https://api.github.com/users/jerrypeng/received_events","type":"User","site_admin":false},"repo":{"id":37741458,"name":"storm","full_name":"jerrypeng/storm","owner":{"login":"jerrypeng","id":3613359,"avatar_url":"https://avatars.githubusercontent.com/u/3613359?v=3","gravatar_id":"","url":"https://api.github.com/users/jerrypeng","html_url":"https://github.com/jerrypeng","followers_url":"https://api.github.com/users/jerrypeng/followers","following_url":"https://api.github.com/users/jerrypeng/following{/other_user}","gists_url":"https://api.github.com/users/jerrypeng/gists{/gist_id}","starred_url":"https://api.github.com/users/jerrypeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jerrypeng/subscriptions","organizations_url":"https://api.github.com/users/jerrypeng/orgs","repos_url":"https://api.github.com/users/jerrypeng/repos","events_url":"https://api.github.com/users/jerrypeng/events{/privacy}","received_events_url":"https://api.github.com/users/jerrypeng/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jerrypeng/storm","description":"Mirror of Apache Storm","fork":true,"url":"https://api.github.com/repos/jerrypeng/storm","forks_url":"https://api.github.com/repos/jerrypeng/storm/forks","keys_url":"https://api.github.com/repos/jerrypeng/storm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jerrypeng/storm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jerrypeng/storm/teams","hooks_url":"https://api.github.com/repos/jerrypeng/storm/hooks","issue_events_url":"https://api.github.com/repos/jerrypeng/storm/issues/events{/number}","events_url":"https://api.github.com/repos/jerrypeng/storm/events","assignees_url":"https://api.github.com/repos/jerrypeng/storm/assignees{/user}","branches_url":"https://api.github.com/repos/jerrypeng/storm/branches{/branch}","tags_url":"https://api.github.com/repos/jerrypeng/storm/tags","blobs_url":"https://api.github.com/repos/jerrypeng/storm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jerrypeng/storm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jerrypeng/storm/git/refs{/sha}","trees_url":"https://api.github.com/repos/jerrypeng/storm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jerrypeng/storm/statuses/{sha}","languages_url":"https://api.github.com/repos/jerrypeng/storm/languages","stargazers_url":"https://api.github.com/repos/jerrypeng/storm/stargazers","contributors_url":"https://api.github.com/repos/jerrypeng/storm/contributors","subscribers_url":"https://api.github.com/repos/jerrypeng/storm/subscribers","subscription_url":"https://api.github.com/repos/jerrypeng/storm/subscription","commits_url":"https://api.github.com/repos/jerrypeng/storm/commits{/sha}","git_commits_url":"https://api.github.com/repos/jerrypeng/storm/git/commits{/sha}","comments_url":"https://api.github.com/repos/jerrypeng/storm/comments{/number}","issue_comment_url":"https://api.github.com/repos/jerrypeng/storm/issues/comments{/number}","contents_url":"https://api.github.com/repos/jerrypeng/storm/contents/{+path}","compare_url":"https://api.github.com/repos/jerrypeng/storm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jerrypeng/storm/merges","archive_url":"https://api.github.com/repos/jerrypeng/storm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jerrypeng/storm/downloads","issues_url":"https://api.github.com/repos/jerrypeng/storm/issues{/number}","pulls_url":"https://api.github.com/repos/jerrypeng/storm/pulls{/number}","milestones_url":"https://api.github.com/repos/jerrypeng/storm/milestones{/number}","notifications_url":"https://api.github.com/repos/jerrypeng/storm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jerrypeng/storm/labels{/name}","releases_url":"https://api.github.com/repos/jerrypeng/storm/releases{/id}","created_at":"2015-06-19T19:23:06Z","updated_at":"2015-11-23T22:33:09Z","pushed_at":"2015-12-18T07:26:26Z","git_url":"git://github.com/jerrypeng/storm.git","ssh_url":"git@github.com:jerrypeng/storm.git","clone_url":"https://github.com/jerrypeng/storm.git","svn_url":"https://github.com/jerrypeng/storm","homepage":null,"size":26902,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":2,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"418792f84c95962a5f2e8d8f98aab73e8138c31a","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":14135470,"name":"storm","full_name":"apache/storm","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/storm","description":"Mirror of Apache Storm","fork":false,"url":"https://api.github.com/repos/apache/storm","forks_url":"https://api.github.com/repos/apache/storm/forks","keys_url":"https://api.github.com/repos/apache/storm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/storm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/storm/teams","hooks_url":"https://api.github.com/repos/apache/storm/hooks","issue_events_url":"https://api.github.com/repos/apache/storm/issues/events{/number}","events_url":"https://api.github.com/repos/apache/storm/events","assignees_url":"https://api.github.com/repos/apache/storm/assignees{/user}","branches_url":"https://api.github.com/repos/apache/storm/branches{/branch}","tags_url":"https://api.github.com/repos/apache/storm/tags","blobs_url":"https://api.github.com/repos/apache/storm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/storm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/storm/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/storm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/storm/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/storm/languages","stargazers_url":"https://api.github.com/repos/apache/storm/stargazers","contributors_url":"https://api.github.com/repos/apache/storm/contributors","subscribers_url":"https://api.github.com/repos/apache/storm/subscribers","subscription_url":"https://api.github.com/repos/apache/storm/subscription","commits_url":"https://api.github.com/repos/apache/storm/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/storm/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/storm/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/storm/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/storm/contents/{+path}","compare_url":"https://api.github.com/repos/apache/storm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/storm/merges","archive_url":"https://api.github.com/repos/apache/storm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/storm/downloads","issues_url":"https://api.github.com/repos/apache/storm/issues{/number}","pulls_url":"https://api.github.com/repos/apache/storm/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/storm/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/storm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/storm/labels{/name}","releases_url":"https://api.github.com/repos/apache/storm/releases{/id}","created_at":"2013-11-05T08:00:14Z","updated_at":"2015-12-18T07:30:31Z","pushed_at":"2015-12-18T19:04:18Z","git_url":"git://github.com/apache/storm.git","ssh_url":"git@github.com:apache/storm.git","clone_url":"https://github.com/apache/storm.git","svn_url":"https://github.com/apache/storm","homepage":null,"size":155976,"stargazers_count":2650,"watchers_count":2650,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":1981,"mirror_url":"git://git.apache.org/storm.git","open_issues_count":88,"forks":1981,"open_issues":88,"watchers":2650,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/storm/pulls/921"},"html":{"href":"https://github.com/apache/storm/pull/921"},"issue":{"href":"https://api.github.com/repos/apache/storm/issues/921"},"comments":{"href":"https://api.github.com/repos/apache/storm/issues/921/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/storm/pulls/921/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/storm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/storm/pulls/921/commits"},"statuses":{"href":"https://api.github.com/repos/apache/storm/statuses/0f80d0678c243a7bd1b6aa169272741ef7e2950a"}}}}