Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-16430 FLIP-119 Pipelined Region Scheduling
  3. FLINK-17017

Implements bulk allocation for physical slots

    XMLWordPrintableJSON

Details

    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

      Attachments

        Activity

          People

            zhuzh Zhu Zhu
            zhuzh Zhu Zhu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: