[Swift-user] Swift scheduler

Mihael Hategan hategan at mcs.anl.gov
Thu Sep 4 10:38:47 CDT 2008


On Thu, 2008-09-04 at 10:39 -0400, Andriy Fedorov wrote:
> >> Can any of the developers point me to the specific part of the source
> >> that is responsible for scheduling, so that I could try to figure this
> >> out myself?
> >
> > Start here:
> >
> > cog/modules/karajan/src/org/globus/cog/karajan/scheduler/WeightedHostScoreScheduler.java.
> >
> 
> I look at the latest cog release 2130, and line 342 says
> 
> else if ("best".equals("value")) {
> 
> Am I wrong, or value in quotes here is a bug? It looks like
> POLICY_BEST_SCORE is never used because of this.

That is funny, but yes, it is a bug. However, that selection policy is
not used in swift anyway, nor is it much useful otherwise. The weighted
random selection distributes load more smoothly across sites.

Anyway, I fixed it in SVN.

Mihael




More information about the Swift-user mailing list