[ 
https://issues.apache.org/jira/browse/AMBARI-13678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14987103#comment-14987103
 ] 

Hudson commented on AMBARI-13678:
---------------------------------

FAILURE: Integrated in Ambari-branch-2.1 #787 (See 
[https://builds.apache.org/job/Ambari-branch-2.1/787/])
AMBARI-13678 Make it configurable as to how frequently ActionScheduler (dsen: 
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=09aad6be9e2731b1c7cdd8878e5a3569b32aaa94])
* 
ambari-server/src/test/java/org/apache/ambari/server/configuration/ConfigurationTest.java
* 
ambari-server/src/main/java/org/apache/ambari/server/configuration/Configuration.java
* 
ambari-server/src/test/java/org/apache/ambari/server/scheduler/ExecutionSchedulerTest.java
* 
ambari-server/src/main/java/org/apache/ambari/server/controller/ControllerModule.java


> Make it configurable as to how frequently ActionScheduler scans DB for tasks
> ----------------------------------------------------------------------------
>
>                 Key: AMBARI-13678
>                 URL: https://issues.apache.org/jira/browse/AMBARI-13678
>             Project: Ambari
>          Issue Type: Bug
>    Affects Versions: 2.1.3
>            Reporter: Dmytro Sen
>            Assignee: Dmytro Sen
>            Priority: Critical
>             Fix For: 2.1.3
>
>         Attachments: AMBARI-13678.patch
>
>
> ActionScheduler now sleeps only 1 second between scans while it was sleeping 
> for 10 seconds before. We should make it configurable where user can set the 
> delay. Users with slower DB would rather have ActionScheduler not work so 
> aggressively.
> Currently, it is hard coded to 1 second.
> {code}
> bindConstant().annotatedWith(Names.named("schedulerSleeptime")).to(1000L);
> {code}
> Lets add a config parameter to {{ambari.properties}} -  
> {{server.execution.scheduler.wait}} and default should be 1 second. If the 
> value is more than 60 second then it should automatically set to 60 second 
> with a log saying so.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to