[
https://issues.apache.org/jira/browse/YUNIKORN-1728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17856049#comment-17856049
]
Shravan Achar edited comment on YUNIKORN-1728 at 6/18/24 7:43 PM:
------------------------------------------------------------------
We have a similar use-case for expressing resources as percentages. The cluster
has auto-scaling enabled but the queue quotas are capped to a max value. Child
template on the queue is configured to give every child queue some guarantees
and can have max configs to cap its usage. This is better expressed as a
percentage of the parent queue. To be more specific, this is the queue config
{noformat}
queues:
- name: root
submitacl: '*'
queues:
- name: queue
submitacl: '*'
maxapplications: 50
resources:
max:
{memory: 31450G, vcore: 4080}
childtemplate:
maxapplications: 10%
resources:
guaranteed:
{memory: 10%, vcore: 10%}
{noformat}
was (Author: JIRAUSER303965):
We have a similar use-case for expressing resources as percentages. The cluster
has auto-scaling enabled but the queue quotas are capped to a max value. Child
template on the queue is configured to give every child queue some guarantees
and can have max configs to cap its usage. This is better expressed as a
percentage of the parent queue. To be more specific, this is the queue config
queues:
- name: root
submitacl: '*' queues:
- name: queue1
submitacl: '*' resources:
max:
\{memory: 31450G, vcore: 4080}
childtemplate:
resources:
guaranteed:
\{memory: 10%, vcore: 10%}
max:
\{memory: 50%, vcore: 50%}
> MaxApplication enforcement supports percentage of resources
> -----------------------------------------------------------
>
> Key: YUNIKORN-1728
> URL: https://issues.apache.org/jira/browse/YUNIKORN-1728
> Project: Apache YuniKorn
> Issue Type: New Feature
> Components: core - scheduler
> Reporter: Rainie Li
> Assignee: Rainie Li
> Priority: Major
>
> Currently we need to set queue with guaranteed resources.
> example:
> {code:java}
> queues:
> - name: root
> submitacl: '*'
> queues:
> - name: queue1
> submitacl: '*'
> maxapplications: 12
> resources:
> guaranteed:
> {memory: 6290G, vcore: 816}
> max:
> {memory: 31450G, vcore: 4080}
> {code}
> It will be convenient to support percentage, so that we can configure queue
> without calculating the actual number.
> {code:java}
> queues:
> - name: root
> submitacl: '*'
> queues:
> - name: queue1
> submitacl: '*'
> maxapplications: 12
> resources:
> guaranteed:
> {memory: 20%, vcore: 20%}
> max:
> {memory: 31450G, vcore: 4080}
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]