Versions Compared

Key

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

...

BlacklistContext is the component responsible for performing blacklist actions on SlotPool, the details will be described in SlotPool.

Code Block
titleBlacklistContext
public interface BlacklistContext {
    /** Perform the newly added or updated blacklist items on resources. */
    void blacklistResources(Collection<BlacklistedItem<?>> newlyAddedOrUpdatedItems);
}
   

...

  1. When starting SlotManager, the BlacklistedTaskManagerChecker will be passed in to check whether a registered task manager is blacklisted.
  2. When trying to fulfill the slot requirements by registered task managers, the blacklisted ones will be filtered out.
  3. SlotManager will request new task managers from external resource managers if the registered resources cannot fulfill the requirements. The blacklist also takes effect when requesting new task managers, the details will be described in ResourceManagerDriver.
Code Block
titleSlotManager
public interface SlotManager {

    /** Starts the slot manager with the given leader id and resource manager actions. */
    void start(
            ResourceManagerId newResourceManagerId,
            Executor newMainThreadExecutor,
            ResourceActions newResourceActions,
            BlacklistedTaskManagerChecker newBlacklistedTaskManagerChecker);

    //...
}

...