aurora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wfar...@apache.org
Subject git commit: Increase default scheduling rate thresholds.
Date Wed, 12 Mar 2014 17:41:56 GMT
Repository: incubator-aurora
Updated Branches:
  refs/heads/master c90c87464 -> 440768235


Increase default scheduling rate thresholds.

Bugs closed: AURORA-255

Reviewed at https://reviews.apache.org/r/19074/


Project: http://git-wip-us.apache.org/repos/asf/incubator-aurora/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-aurora/commit/44076823
Tree: http://git-wip-us.apache.org/repos/asf/incubator-aurora/tree/44076823
Diff: http://git-wip-us.apache.org/repos/asf/incubator-aurora/diff/44076823

Branch: refs/heads/master
Commit: 4407682351ef4a8dc9a6c94613399a38bff05120
Parents: c90c874
Author: Bill Farner <wfarner@apache.org>
Authored: Wed Mar 12 10:40:30 2014 -0700
Committer: Bill Farner <wfarner@apache.org>
Committed: Wed Mar 12 10:40:30 2014 -0700

----------------------------------------------------------------------
 .../java/org/apache/aurora/scheduler/async/AsyncModule.java    | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/44076823/src/main/java/org/apache/aurora/scheduler/async/AsyncModule.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/aurora/scheduler/async/AsyncModule.java b/src/main/java/org/apache/aurora/scheduler/async/AsyncModule.java
index 9cc7bfe..be67e7d 100644
--- a/src/main/java/org/apache/aurora/scheduler/async/AsyncModule.java
+++ b/src/main/java/org/apache/aurora/scheduler/async/AsyncModule.java
@@ -36,6 +36,7 @@ import com.google.inject.PrivateModule;
 import com.google.inject.TypeLiteral;
 import com.twitter.common.args.Arg;
 import com.twitter.common.args.CmdLine;
+import com.twitter.common.args.constraints.Positive;
 import com.twitter.common.quantity.Amount;
 import com.twitter.common.quantity.Time;
 import com.twitter.common.stats.StatImpl;
@@ -80,10 +81,11 @@ public class AsyncModule extends AbstractModule {
   private static final Arg<Amount<Long, Time>> TRANSIENT_TASK_STATE_TIMEOUT =
       Arg.create(Amount.of(5L, Time.MINUTES));
 
+  @Positive
   @CmdLine(name = "initial_schedule_delay",
       help = "Initial amount of time to wait before attempting to schedule a PENDING task.")
   private static final Arg<Amount<Long, Time>> INITIAL_SCHEDULE_DELAY =
-      Arg.create(Amount.of(1L, Time.SECONDS));
+      Arg.create(Amount.of(1L, Time.MILLISECONDS));
 
   @CmdLine(name = "max_schedule_delay",
       help = "Maximum delay between attempts to schedule a PENDING tasks.")
@@ -102,7 +104,7 @@ public class AsyncModule extends AbstractModule {
 
   @CmdLine(name = "max_schedule_attempts_per_sec",
       help = "Maximum number of scheduling attempts to make per second.")
-  private static final Arg<Double> MAX_SCHEDULE_ATTEMPTS_PER_SEC = Arg.create(10D);
+  private static final Arg<Double> MAX_SCHEDULE_ATTEMPTS_PER_SEC = Arg.create(20D);
 
   @CmdLine(name = "flapping_task_threshold",
       help = "A task that repeatedly runs for less than this time is considered to be flapping.")


Mime
View raw message