Versions Compared

Key

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

...

Now these two SlotManager have some duplicated codes(eg, the delay check of checkResourceRequirements ) and some similar component names(eg, TaskManagerTracker, TaskExecutorManager). This causes duplicate development of features (, such as Make ResourceActions declarative).

This FLIP aims to unify the implementation of SlotManager. Since FineGrainedSlotManager has almost all the capability of DeclarativeSlotManager, we will implement all the lacks of FineGrainedSlotManager and enable it by default.

...

Overview of FineGrainedSlotManager and DeclarativeSlotManager

Functionality supports

functionalityFineGrainedSlotManagerDeclarativeSlotManager
Allocate new task managers when resource not enoughYESYES
Release idle task managers if there are no tasks/resultPartitionsYESYES
Keep some redundant task managersNOYES
Max limitations of slots numberYESYES
Filter out blocked resourcesYESYES
Track requirements of multiple jobsYESYES
Fulfill requirements by evenly strategyNOYES
Reclaim inactive slots when job finishedNOYES
Different slot resources in the same task managerYESNO

sub-components

DeclarativeSlotManager

...

The redundant task managers are used to speed up failover. The .

FineGrainedSlotManager has reserved the interface of heterogeneous task managers, but there are only one implementation which will requests task managers in same resources currently. Therefore, the current redundant task managers will not consider heterogeneity. This could be considered in detail when we decide to support heterogeneous task managers.

 The logic in FineGrainedSlotManager should be:

...