[ 
https://issues.apache.org/jira/browse/FLINK-17017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zhu Zhu updated FLINK-17017:
----------------------------
    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.

{code:java}
CompletableFuture<Collection<PhysicalSlotRequest.Result>> allocatePhysicalSlots(
  Collection<PhysicalSlotRequest> slotRequests,
  Time timeout);
 
class PhysicalSlotRequest {
  SlotRequestId slotRequestId;
  SlotProfile slotProfile;
  boolean slotWillBeOccupiedIndefinitely;

  class Result {
    SlotRequestId slotRequestId;
    PhysicalSlot physicalSlot;
  }
}
{code}

More details see [FLIP-119#Bulk Slot 
Allocation|https://cwiki.apache.org/confluence/display/FLINK/FLIP-119+Pipelined+Region+Scheduling#FLIP-119PipelinedRegionScheduling-BulkSlotAllocation]


  was:
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.

{code:java}
CompletableFuture<Collection<LogicalSlot>> allocateSlots(
  Collection<LogicalSlotRequest> slotRequests,
  Time allocationTimeout);
 
class LogicalSlotRequest {
  SlotRequestId slotRequestId;
  ScheduledUnit scheduledUnit;
  SlotProfile slotProfile;
  boolean slotWillBeOccupiedIndefinitely;
}
{code}

More details see [FLIP-119#Bulk Slot 
Allocation|https://cwiki.apache.org/confluence/display/FLINK/FLIP-119+Pipelined+Region+Scheduling#FLIP-119PipelinedRegionScheduling-BulkSlotAllocation]



> Implements bulk allocation for physical slots
> ---------------------------------------------
>
>                 Key: FLINK-17017
>                 URL: https://issues.apache.org/jira/browse/FLINK-17017
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Runtime / Coordination
>    Affects Versions: 1.11.0
>            Reporter: Zhu Zhu
>            Assignee: Zhu Zhu
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.12.0
>
>
> 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.
> {code:java}
> CompletableFuture<Collection<PhysicalSlotRequest.Result>> 
> allocatePhysicalSlots(
>   Collection<PhysicalSlotRequest> slotRequests,
>   Time timeout);
>  
> class PhysicalSlotRequest {
>   SlotRequestId slotRequestId;
>   SlotProfile slotProfile;
>   boolean slotWillBeOccupiedIndefinitely;
>   class Result {
>     SlotRequestId slotRequestId;
>     PhysicalSlot physicalSlot;
>   }
> }
> {code}
> More details see [FLIP-119#Bulk Slot 
> Allocation|https://cwiki.apache.org/confluence/display/FLINK/FLIP-119+Pipelined+Region+Scheduling#FLIP-119PipelinedRegionScheduling-BulkSlotAllocation]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to