You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Szilard Nemeth (Jira)" <ji...@apache.org> on 2021/09/14 20:34:00 UTC

[jira] [Updated] (YARN-10943) AbstractCSQueue: Create separate class for encapsulating Min / Max Resource

     [ https://issues.apache.org/jira/browse/YARN-10943?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Szilard Nemeth updated YARN-10943:
----------------------------------
    Description: 
There are certain methods where min and max Resources are used in tandem.
Some examples of these kind of methods: 
- getMinimumAbsoluteResource / getMaximumAbsoluteResource
- *updateConfigurableResourceLimits: *
- It invokes setConfiguredMinResource / setConfiguredMaxResource on QueueResourceQuotas. That object could define a simple method that receives the MinMaxResource alone.
- Validator methods are also receiving min/max resources as separate parameters, which could be tied together.
- updateEffectiveResources: It performs operations with effective min/max resources.

Alternatively, 2 classes could be created: 
- One for EffectiveMinMaxResource
- And another for AbsoluteMinMaxResource

  was:
There are certain methods where min and max Resources are used in tandem.
Some examples of these kind of methods: 
- getMinimumAbsoluteResource / getMaximumAbsoluteResource
- updateConfigurableResourceLimits: 
- It invokes setConfiguredMinResource / setConfiguredMaxResource on QueueResourceQuotas. That object could define a simple method that receives the MinMaxResource alone.
- Validator methods are also receiving min/max resources as separate parameters, which could be tied together.
- updateEffectiveResources: It performs operations with effective min/max resources.

Alternatively, 2 classes could be created: 
- One for EffectiveMinMaxResource
- And another for AbsoluteMinMaxResource


> AbstractCSQueue: Create separate class for encapsulating Min / Max Resource
> ---------------------------------------------------------------------------
>
>                 Key: YARN-10943
>                 URL: https://issues.apache.org/jira/browse/YARN-10943
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Szilard Nemeth
>            Assignee: Szilard Nemeth
>            Priority: Minor
>
> There are certain methods where min and max Resources are used in tandem.
> Some examples of these kind of methods: 
> - getMinimumAbsoluteResource / getMaximumAbsoluteResource
> - *updateConfigurableResourceLimits: *
> - It invokes setConfiguredMinResource / setConfiguredMaxResource on QueueResourceQuotas. That object could define a simple method that receives the MinMaxResource alone.
> - Validator methods are also receiving min/max resources as separate parameters, which could be tied together.
> - updateEffectiveResources: It performs operations with effective min/max resources.
> Alternatively, 2 classes could be created: 
> - One for EffectiveMinMaxResource
> - And another for AbsoluteMinMaxResource



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

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