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)