Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For these two cases, we could introduce an additional timeout option: `slot.request.max-interval`, which means the maximum time interval when JM requests multiple slots from SlotPool. When `current time > arrival time of the last slotRequest + slot.request.max-interval` and

...

the

...

number of available slots cached exceeds or equals the pending slots, the slots selection and allocation can be carried out.

...

The  scheduling is meaningless when the  resources are insufficient.

2.2.3 Allocation strategy for slot to TM

...

    • Introduce a new implementation of SlotPool
      • Introduce a availableSlots Map in type HashMap<AllocationID, PhysicalSlot>
      • When calling newSlotsAreAvailable, cache the slots into availableSlotsif the size of the availableSlots is greater than or equals to the size of pendingRequests andthe availableSlots could be be matched with all pendingRequests:

...

      • availableSlots

...

    • If not: do nothing.
      • Introduce the logic to process the parameter `slot.request.max-interval`, which means the maximum time interval when JM requests multiple slots from SlotPool.
      • When `current time > arrival time of the last slotRequest + slot.request.max-interval` and the number of available slots cached exceeds or equals the pending slots, the slots selection and allocation can be carried out.

...