You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@yunikorn.apache.org by "Wilfred Spiegelenburg (Jira)" <ji...@apache.org> on 2021/02/01 00:15:00 UTC

[jira] [Commented] (YUNIKORN-526) Remove allocations count in the partition

    [ https://issues.apache.org/jira/browse/YUNIKORN-526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17276015#comment-17276015 ] 

Wilfred Spiegelenburg commented on YUNIKORN-526:
------------------------------------------------

This will not scale. If there are 100s of applications in the cluster we need to take large numbers of locks for every single time the web page of YuniKorn is created. We do not want to iterate if there is no need to do that,


> Remove allocations count in the partition
> -----------------------------------------
>
>                 Key: YUNIKORN-526
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-526
>             Project: Apache YuniKorn
>          Issue Type: Improvement
>          Components: core - scheduler
>            Reporter: Weiwei Yang
>            Priority: Trivial
>
> YUNIKORN-461 removes the allocations map from the partition, but it still left an allocations count. That means when we add or remove allocations, we have to update this count in the partition too. I think we can remove that and reimplement GetTotalAllocationCount(), and simply loop all the apps and sum allocations of all apps. Some more discussion can be found here: https://github.com/apache/incubator-yunikorn-core/pull/242#discussion_r566452486



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: issues-help@yunikorn.apache.org