Peter Bacsko created YUNIKORN-1886:
--------------------------------------
Summary: Optimize scheduling cycle if there's no placeholder
allocation or reservation
Key: YUNIKORN-1886
URL: https://issues.apache.org/jira/browse/YUNIKORN-1886
Project: Apache YuniKorn
Issue Type: Sub-task
Components: core - scheduler
Reporter: Peter Bacsko
In the scheduling cycle, we call three methods:
* {{tryPlaceholderAllocate()}} - trying to replace running placeholders
* {{tryReservedAllocate()}} - try to allocate reservations
* {{tryAllocate()}} - normal allocation (most common)
Even if we have pending requests, the first two don't always have anything to
allocate. In fact, if there's no gang scheduling job, there's no need to run
{{tryPlaceholderAllocate()}} at all. Similarly, if we don't have reservations,
we don't have to call {{tryReservedAllocate()}}. Both method walk the
hierarchy, copy&filter applications, etc. If we track how many active
placeholders and reservations we have, we can eliminate the calls to these two
if counter == 0.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]