You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@yunikorn.apache.org by "Peter Bacsko (Jira)" <ji...@apache.org> on 2023/11/28 18:26:00 UTC
[jira] [Created] (YUNIKORN-2206) Make user/queue headroom checks more performant
Peter Bacsko created YUNIKORN-2206:
--------------------------------------
Summary: Make user/queue headroom checks more performant
Key: YUNIKORN-2206
URL: https://issues.apache.org/jira/browse/YUNIKORN-2206
Project: Apache YuniKorn
Issue Type: Improvement
Components: core - scheduler
Reporter: Peter Bacsko
Assignee: Peter Bacsko
Inside Application.tryAllocate() and tryReservedAllocate(), we have code like:
{noformat}
if !userHeadroom.FitInMaxUndef(ask.GetAllocatedResource()) {
continue
}
// check if this fits in the queue's headroom
if !headRoom.FitInMaxUndef(ask.GetAllocatedResource()) {
continue
}
{noformat}
These calls are relatively expensive, but necessary. Calling them once isn't a problem.
However, repeated calls are slowing things down considerably. Yunikorn keeps trying to schedule asks and until there's enough room for the request, these checks will fail. We need a way to speed it up.
See YUNIKORN-2201 about the details.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: dev-help@yunikorn.apache.org