YuniKorn Concepts: Difference between revisions
Line 60: | Line 60: | ||
=Allocation= | =Allocation= | ||
A core scheduler-level concept. An allocation can be in one of two states ("Pending" and "In-Progress"). A pending allocation is one which has been decided upon by YuniKorn but has not yet been communicated to the default scheduler via PreFilter()/Filter(). Once PreFilter()/Filter() pass, the allocation transitions to "In-Progress" to signify that the default scheduler is responsible for fulfilling the allocation. Once PostBind() is called in the plugin to signify completion of the allocation, it is removed. | A core scheduler-level concept. An allocation can be in one of two states ("Pending" and "In-Progress"). A pending allocation is one which has been decided upon by YuniKorn but has not yet been communicated to the default scheduler via PreFilter()/Filter(). Once PreFilter()/Filter() pass, the allocation transitions to "In-Progress" to signify that the default scheduler is responsible for fulfilling the allocation. Once PostBind() is called in the plugin to signify completion of the allocation, it is removed. | ||
=Task= | =Task= |
Revision as of 22:29, 15 December 2023
Internal
Partition
The total "partition resource" is the sum of its nodes' "capacity" (node.GetCapacity()
, which is the node's "total resource").
Each partition has a root queue, which is the start of the queue hierarchy per partition.
Queue
The queue configuration is dynamic and it can be changed while the scheduler is running, without requiring a scheduler restart. The queue configuration will change after invocation of the corresponding Go API method, of the REST based API or after changing the configuration file. Changes made through API will be persisted in the configuration file. All queues defined in the configuration are considered managed queues.
The queues from a tree. The base of the tree is the root
queue. The root queue reflects the entire cluster, and resource settings on the root queue are not allowed. The resources available to the root queue are calculated based on the resources of the nodes registered with the cluster.
Applications can only be submitted to leaf queues. A queue that is not a leaf queue is a parent queue. Except the root queue, any queue must have one and only one parent queue. A queue type is either leaf or parent.
The individual queue names are separated by dot ("."), thus yielding fully qualified queue names. As result, an individual queue name cannot contain dot characters. A queue in the hierarchy can thus be only uniquely identified by its fully qualified path. This means two individual queues with the same name are allowed, if they are resent in different position in the hierarchy.
Access Control List
There are submission permission and administrative permissions. Submission permission relate to the capability to submit a certain application to a certain queue by specific users or groups. Administrative permissions include submission permission plus stopping an application and moving the application to a different queue. Access control lists are checked recursively up to the root of the tree starting at the lowest point in the tree. In other words when the access control list of a queue does not allow access the parent queue is checked. The checks are repeated all the way up to the root of the queues.
Submit ACL
Admin ACL
Queue Resources
Guaranteed Resources
Maximum Resources
Running Applications Limit
A queue can set a running application limit.
Application Sort Algorithm
Fair, FIFO.
Queue Priority
Placement Rules
Placement rules refer to automatically placing an application onto a queue.
Kuberentes Implementation
A namespace can have a "queue" if annotated with "yunikorn.apache.org/queue". A namespace can have a "parent queue" is annotated with "yunikorn.apache.org/parentqueue".
Identity
An application is submitted under a certain identity, that consists of a user and one or more groups.
TO PARSE:
- https://yunikorn.apache.org/docs/user_guide/usergroup_resolution/
- https://yunikorn.apache.org/docs/design/scheduler_configuration/#user-definition
User
Group
The identity an application is submitted under may be associated with one or more groups.
Plugin Mode
Resource Manager (RM)
YuniKorn communicates with various implementation of resource management systems (Kubernetes, YARN) via a standard interface defined in the yunikorn-scheduler-interface
package.
Allocation
A core scheduler-level concept. An allocation can be in one of two states ("Pending" and "In-Progress"). A pending allocation is one which has been decided upon by YuniKorn but has not yet been communicated to the default scheduler via PreFilter()/Filter(). Once PreFilter()/Filter() pass, the allocation transitions to "In-Progress" to signify that the default scheduler is responsible for fulfilling the allocation. Once PostBind() is called in the plugin to signify completion of the allocation, it is removed.
Task
Node
Can a node be declared to be part of a partition with the "si/node-partition" label? It seems that the node Attributes partially come from the node labels.
In the Kubernetes implementation, the node is first added, then updated.
As part of handling the RMNodeUpdateEvent
, RMProxy
calls callback.UdpateNode()
.
Configuration
Context
yunikorn-k8shim cache.Context
Resource
Quantity
Reservation
Manual Scheduling
Policy Group
Set in the scheduler when a new resource manager is registered.