Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  Set<StandbyTask>; 

  instanceId;

}

The assignment will be broken down into following rounds:

Assign active tasks:

  1. Assign all active tasks to learner tasks that indicates "ready"
  2. Assign the rest of active tasks to previous owners
  3. Assign the rest of active tasks towards unready learner tasks owners
  4. Assign the rest of active tasks to resource available hosts

Assign learner tasks:

  1. If the load is not balanced between hosts, assign abundant task to hosts with least active tasks




As we could see, there should be only exactly one learner task after each round of rebalance, and there should be exactly one corresponding active task at the same time. 

...