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

Wilfred Spiegelenburg commented on YUNIKORN-1443:
-------------------------------------------------

You need to lock the partition to remove the expired applications. You do not 
have access to the partition object from the application itself. You will thus 
not be able to remove the application from the partition on expiration.
Fixing that causes circular dependencies when you try to do that the simple 
way. Working around the  circular dependency complicates the code and is far 
more difficult to maintain than the code to kick off a cleanup thread once in a 
while.

> Make app expiration & cleanup configurable
> ------------------------------------------
>
>                 Key: YUNIKORN-1443
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-1443
>             Project: Apache YuniKorn
>          Issue Type: Improvement
>          Components: core - scheduler
>            Reporter: Brandon Grams
>            Assignee: Brandon Grams
>            Priority: Major
>
> Applications currently expire and are periodically removed from the scheduler 
> according to the following intervals:
>  * 
> [Expiration|https://github.com/apache/yunikorn-core/blob/339cc04bfe3dd9eedb386a6f040500d53bea8a46/pkg/scheduler/objects/application.go#L48]
>  * 
> [Cleanup|https://github.com/apache/yunikorn-core/blob/339cc04bfe3dd9eedb386a6f040500d53bea8a46/pkg/scheduler/partition_manager.go#L32]
>  
> We would like to expose these via configuration to allow for increased 
> control over application retention and memory management.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to