You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Weihua Hu (Jira)" <ji...@apache.org> on 2023/04/18 12:14:00 UTC

[jira] [Created] (FLINK-31843) Select slots from SlotPool#freeSlots in bulk

Weihua Hu created FLINK-31843:
---------------------------------

             Summary: Select slots from SlotPool#freeSlots in bulk
                 Key: FLINK-31843
                 URL: https://issues.apache.org/jira/browse/FLINK-31843
             Project: Flink
          Issue Type: Sub-task
          Components: Runtime / Coordination
            Reporter: Weihua Hu


we should also reduce the number of calls of "getFreeSlotInformations". In current implementation, the scheduler will batch request slots for tasks in the same pipeline region(ExecutionSlotAllocator#allocateSlotsFor), but the slot allocator will process these requests one by one, and call "getFreeSlotInformations" once for each request.

We can optimize it to call "getFreeSlotInformations" once for a bulk (of slot requests), instead of once for each slot request. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)