[Swift-devel] minimum rate limit patch for karajan

Ben Clifford benc at hawaga.org.uk
Tue Nov 6 10:11:03 CST 2007


Below is a patch that puts a lower bound on the site scoring in Karajan. 
This reduces catastrophic problems caused when a large number of jobs fail 
at once, pushing the site score so low that it never (during the 
workflow run) recovers.

I think this would be useful for Mike in his angle workflows.

Also at:
http://www.ci.uchicago.edu/~benc/andrew-ratelimit-minimum

Index: cog/modules/karajan/src/org/globus/cog/karajan/scheduler/WeightedHost.java
===================================================================
--- cog.orig/modules/karajan/src/org/globus/cog/karajan/scheduler/WeightedHost.java	2007-07-13 11:16:11.000000000 +0100
+++ cog/modules/karajan/src/org/globus/cog/karajan/scheduler/WeightedHost.java	2007-10-29 21:30:43.000000000 +0000
@@ -38,6 +38,8 @@
 	}
 
 	protected void setScore(double score) {
+		final int MINWEIGHT = -10;
+		if(score<MINWEIGHT) score=MINWEIGHT;
 		this.score = new Double(score);
 		this.tscore = smooth(score);
 	}




More information about the Swift-devel mailing list