Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.11.0
Description
SlotProvider should support bulk slot allocation so that we can check to see if the resource requirements of a slot request bulk can be fulfilled at the same time.
The SlotProvider interface should be extended with an bulk slot allocation method which accepts a bulk of slot requests as one of the parameters.
CompletableFuture<Collection<PhysicalSlotRequest.Result>> allocatePhysicalSlots( Collection<PhysicalSlotRequest> slotRequests, Time timeout); class PhysicalSlotRequest { SlotRequestId slotRequestId; SlotProfile slotProfile; boolean slotWillBeOccupiedIndefinitely; class Result { SlotRequestId slotRequestId; PhysicalSlot physicalSlot; } }
More details see FLIP-119#Bulk Slot Allocation