[ 
https://issues.apache.org/jira/browse/GOBBLIN-1072?focusedWorklogId=399444&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-399444
 ]

ASF GitHub Bot logged work on GOBBLIN-1072:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 07/Mar/20 00:22
            Start Date: 07/Mar/20 00:22
    Worklog Time Spent: 10m 
      Work Description: sv2000 commented on pull request #2912: [GOBBLIN-1072] 
Being more conservative on leasing containers
URL: https://github.com/apache/incubator-gobblin/pull/2912#discussion_r389193038
 
 

 ##########
 File path: 
gobblin-yarn/src/main/java/org/apache/gobblin/yarn/YarnAutoScalingManager.java
 ##########
 @@ -62,17 +67,24 @@
   private final String AUTO_SCALING_MIN_CONTAINERS = AUTO_SCALING_PREFIX + 
"minContainers";
   private final int DEFAULT_AUTO_SCALING_MIN_CONTAINERS = 1;
   private final String AUTO_SCALING_MAX_CONTAINERS = AUTO_SCALING_PREFIX + 
"maxContainers";
-  private final int DEFAULT_AUTO_SCALING_MAX_CONTAINERS = Integer.MAX_VALUE;
+  // A rough value of how much containers should be an intolerable number.
+  private final int DEFAULT_AUTO_SCALING_MAX_CONTAINERS = 5000;
   private final String AUTO_SCALING_INITIAL_DELAY = AUTO_SCALING_PREFIX + 
"initialDelay";
   private final int DEFAULT_AUTO_SCALING_INITIAL_DELAY_SECS = 60;
 
+  private final String WINDOW_SIZE_OBSERVING_CONTAINER_REQUEST = 
AUTO_SCALING_PREFIX + "windowSize";
+
+  private final static int DEFAULT_MAX_IDLE_TIME_BEFORE_SCALING_DOWN_MIN = 10;
+
   private final Config config;
   private final HelixManager helixManager;
   private final ScheduledExecutorService autoScalingExecutor;
   private final YarnService yarnService;
   private final int partitionsPerContainer;
   private final int minContainers;
   private final int maxContainers;
+  private final MaxValueEvictingQueue slidingFixedSizeWindow;
+  private static int maxIdleTimeInMinBeforeScalingDown = 
DEFAULT_MAX_IDLE_TIME_BEFORE_SCALING_DOWN_MIN;
 
 Review comment:
   Same comment as earlier: MIN -> MINUTES.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 399444)
    Time Spent: 50m  (was: 40m)

> Being more conservative on releasing YARN containers
> ----------------------------------------------------
>
>                 Key: GOBBLIN-1072
>                 URL: https://issues.apache.org/jira/browse/GOBBLIN-1072
>             Project: Apache Gobblin
>          Issue Type: Improvement
>            Reporter: Lei Sun
>            Priority: Major
>          Time Spent: 50m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to