THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
BlacklistContext is the component responsible for performing blacklist actions on SlotPool, the details will be described in SlotPool.
Code Block | ||
---|---|---|
| ||
public interface BlacklistContext { /** Perform the newly added or updated blacklist items on resources. */ void blacklistResources(Collection<BlacklistedItem<?>> newlyAddedOrUpdatedItems); } |
...
- When starting SlotManager, the BlacklistedTaskManagerChecker will be passed in to check whether a registered task manager is blacklisted.
- When trying to fulfill the slot requirements by registered task managers, the blacklisted ones will be filtered out.
- 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 | ||
---|---|---|
| ||
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); //... } |
...