You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@yunikorn.apache.org by "Kinga Marton (Jira)" <ji...@apache.org> on 2020/09/22 08:47:00 UTC
[jira] [Commented] (YUNIKORN-351) Support validate conf to reject
the config with 2 top level queues
[ https://issues.apache.org/jira/browse/YUNIKORN-351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17199926#comment-17199926 ]
Kinga Marton commented on YUNIKORN-351:
---------------------------------------
[~wilfreds] pointed out that this is the expected and documented behaviour:
[http://yunikorn.apache.org/docs/next/user_guide/queue_config]
{code:java}
It can have a root queue defined but it is not a required element. If the root queue is not defined the configuration parsing will insert the root queue for consistency. The insertion of the root queue is triggered by:
* If the configuration has more than one queue defined at the top level a root queue is inserted.
* If there is only one queue defined at the top level and it is not called root a root queue is inserted.{code}
> Support validate conf to reject the config with 2 top level queues
> ------------------------------------------------------------------
>
> Key: YUNIKORN-351
> URL: https://issues.apache.org/jira/browse/YUNIKORN-351
> Project: Apache YuniKorn
> Issue Type: Bug
> Components: core - scheduler
> Reporter: Ayub Pathan
> Assignee: Kinga Marton
> Priority: Critical
>
> admission controller should reject the config with 2 top level queues.. something like below.
> {noformat}
> queues.yaml:
> ----
> partitions:
> -
> name: default
> placementrules:
> - name: tag
> value: namespace
> create: true
> queues:
> - name: root
> submitacl: '*'
> - name: queue1
> resources:
> guaranteed:
> memory: 300
> cpu: 300
> max:
> memory: 2024
> cpu: 2000
> {noformat}
> YK reads this config and creates the queue1 as child to the first top level queue.
--
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