Skip to content

Commit 5223202

Browse files
authored
Merge pull request #99890 from bergerhoffer/kueue-migration-1.1-integration
Kueue migration 1.1 integration
2 parents 39f9463 + 06a1ccd commit 5223202

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1418
-8
lines changed

_attributes/common-attributes.adoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,10 @@ endif::[]
7979
:descheduler-operator: Kube Descheduler Operator
8080
:cli-manager: CLI Manager Operator
8181
:lws-operator: Leader Worker Set Operator
82-
:kueue-prod-name: Red{nbsp}Hat build of Kueue
82+
//Kueue
83+
:kueue-name: Red{nbsp}Hat build of Kueue
84+
:kueue-op: Red Hat Build of Kueue Operator
85+
:ms: Red{nbsp}Hat build of MicroShift (MicroShift)
8386
// Backup and restore
8487
:launch: image:app-launcher.png[title="Application Launcher"]
8588
:mtc-first: Migration Toolkit for Containers (MTC)

_topic_maps/_topic_map.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3432,6 +3432,34 @@ Distros: openshift-enterprise
34323432
Topics:
34333433
- Name: Overview of AI workloads on OpenShift Container Platform
34343434
File: index
3435+
- Name: Red Hat build of Kueue
3436+
Dir: kueue
3437+
Distros: openshift-enterprise
3438+
Topics:
3439+
- Name: Introduction to Red Hat build of Kueue
3440+
File: about-kueue
3441+
- Name: Release notes
3442+
File: release-notes
3443+
- Name: Installing Red Hat build of Kueue
3444+
File: install-kueue
3445+
- Name: Installing Red Hat build of Kueue in a disconnected environment
3446+
File: install-disconnected
3447+
- Name: Configuring role-based permissions
3448+
File: rbac-permissions
3449+
- Name: Configuring quotas
3450+
File: configuring-quotas
3451+
- Name: Managing jobs and workloads
3452+
File: managing-workloads
3453+
- Name: Using cohorts
3454+
File: using-cohorts
3455+
- Name: Configuring fair sharing
3456+
File: configuring-fairsharing
3457+
- Name: Gang scheduling
3458+
File: gangscheduling
3459+
- Name: Running jobs with quota limits
3460+
File: running-kueue-jobs
3461+
- Name: Getting support
3462+
File: getting-support
34353463
- Name: Leader Worker Set Operator
34363464
Dir: leader_worker_set
34373465
Distros: openshift-enterprise

ai_workloads/index.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ include::modules/ai-operators.adoc[leveloffset=+1]
1515
[role="_additional-resources"]
1616
.Additional resources
1717

18+
* xref:../ai_workloads/kueue/about-kueue.adoc#about-kueue[Introduction to {kueue-name}]
1819
* xref:../ai_workloads/leader_worker_set/index.adoc#lws-about[{lws-operator} overview]
1920
2021
// Exclude this for now until we can get it reviewed by the RHOAI team

ai_workloads/kueue/_attributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../_attributes/
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
:_mod-docs-content-type: ASSEMBLY
2+
include::_attributes/common-attributes.adoc[]
3+
[id="about-kueue"]
4+
= Introduction to {kueue-name}
5+
:context: about-kueue
6+
7+
toc::[]
8+
9+
{kueue-name} is a Kubernetes-native system that manages access to resources for jobs.
10+
{kueue-name} can determine when a job waits, is admitted to start by creating pods, or should be _preempted_, meaning that active pods for that job are deleted.
11+
12+
[NOTE]
13+
====
14+
In the context of {kueue-name}, a job can be defined as a one-time or on-demand task that runs to completion.
15+
====
16+
17+
{kueue-name} is based on the link:https://kueue.sigs.k8s.io/docs/[Kueue] open source project.
18+
19+
{kueue-name} is compatible with environments that use heterogeneous, elastic resources. This means that the environment has many different resource types, and those resources are capable of dynamic scaling.
20+
21+
{kueue-name} does not replace any existing components in a Kubernetes cluster, but instead integrates with the existing Kubernetes API server, scheduler, and cluster autoscaler components.
22+
23+
{kueue-name} supports all-or-nothing semantics. This means that either an entire job with all of its components is admitted to the cluster, or the entire job is rejected if it does not fit on the cluster.
24+
25+
// Personas
26+
[id="about-kueue-personas"]
27+
== Personas
28+
29+
Different personas exist in a {kueue-name} workflow.
30+
31+
Batch administrators:: Batch administrators manage the cluster infrastructure and establish quotas and queues.
32+
Batch users:: Batch users run jobs on the cluster. Examples of batch users might be researchers, AI/ML engineers, or data scientists.
33+
Serving users:: Serving users run jobs on the cluster. For example, to expose a trained AI/ML model for inference.
34+
Platform developers:: Platform developers integrate {kueue-name} with other software. They might also contribute to the Kueue open source project.
35+
36+
[id="about-kueue-workflow"]
37+
== Workflow overview
38+
39+
The {kueue-name} workflow can be described at a high level as follows:
40+
41+
. Batch administrators create and configure `ResourceFlavor`, `LocalQueue`, and `ClusterQueue` resources.
42+
. User personas create jobs on the cluster.
43+
. The Kubernetes API server validates and accepts job data.
44+
. {kueue-name} admits jobs based on configured options, such as order or quota. It injects affinity into the job by using resource flavors, and creates a `Workload` object that corresponds to each job.
45+
. The applicable controller for the job type creates pods.
46+
. The Kubernetes scheduler assigns pods to a node in the cluster.
47+
. The Kubernetes cluster autoscaler provisions more nodes as required.
48+
49+
////
50+
TODO:Add docs explaining different job / workload types
51+
These can be added as we add stories / docs for different use cases
52+
////
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
:_mod-docs-content-type: ASSEMBLY
2+
include::_attributes/common-attributes.adoc[]
3+
[id="configuring-fairsharing"]
4+
= Configuring fair sharing
5+
:context: configuring-fairsharing
6+
7+
toc::[]
8+
9+
Fair sharing is a preemption strategy that is used to achieve an equal or weighted share of borrowable resources between the tenants of a cohort. Borrowable resources are the unused nominal quota of all the cluster queues in a cohort.
10+
11+
You can configure fair sharing by setting the `preemptionPolicy` value in the `Kueue` custom resource (CR) to `FairSharing`.
12+
13+
include::modules/kueue-clusterqueue-share-value.adoc[leveloffset=+1]
14+
15+
[role="_additional-resources"]
16+
[id="additional-resources_{context}"]
17+
== Additional resources
18+
* xref:../../ai_workloads/kueue/install-kueue.adoc#create-kueue-cr_install-kueue[Creating a `Kueue` custom resource]
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
:_mod-docs-content-type: ASSEMBLY
2+
include::_attributes/common-attributes.adoc[]
3+
[id="configuring-quotas"]
4+
= Configuring quotas
5+
:context: configuring-quotas
6+
7+
toc::[]
8+
9+
As an administrator, you can use {kueue-name} to configure quotas to optimize resource allocation and system throughput for user workloads.
10+
You can configure quotas for compute resources such as CPU, memory, pods, and GPU.
11+
12+
You can configure quotas in {kueue-name} by completing the following steps:
13+
14+
. Configure a cluster queue.
15+
. Configure a resource flavor.
16+
. Configure a local queue.
17+
18+
Users can then submit their workloads to the local queue.
19+
20+
include::modules/kueue-configuring-clusterqueues.adoc[leveloffset=+1]
21+
22+
[role="_next-steps"]
23+
[id="clusterqueues-next-steps_{context}"]
24+
.Next steps
25+
26+
The cluster queue is not ready for use until a xref:../../ai_workloads/kueue/configuring-quotas.adoc#configuring-resourceflavors_configuring-quotas[`ResourceFlavor` object] has also been configured.
27+
28+
include::modules/kueue-configuring-resourceflavors.adoc[leveloffset=+1]
29+
30+
include::modules/kueue-configuring-localqueues.adoc[leveloffset=+1]
31+
32+
include::modules/kueue-configuring-localqueue-defaults.adoc[leveloffset=+1]
33+
34+
[role="_additional-resources"]
35+
[id="clusterqueues-additional-resources_{context}"]
36+
== Additional resources
37+
* xref:../../ai_workloads/kueue/rbac-permissions.adoc#rbac-permissions[RBAC permissions]
38+
* link:https://kueue.sigs.k8s.io/docs/concepts/cluster_queue/[Kubernetes documentation about cluster queues]
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
:_mod-docs-content-type: ASSEMBLY
2+
include::_attributes/common-attributes.adoc[]
3+
[id="gangscheduling"]
4+
= Gang scheduling
5+
:context: gangscheduling
6+
7+
toc::[]
8+
9+
Gang scheduling ensures that a group or _gang_ of related jobs only start when all required resources are available. {kueue-name} enables gang scheduling by suspending jobs until the {product-title} cluster can guarantee the capacity to start and execute all of the related jobs in the gang together. This is also known as _all-or-nothing_ scheduling.
10+
11+
Gang scheduling is important if you are working with expensive, limited resources, such as GPUs. Gang scheduling can prevent jobs from claiming but not using GPUs, which can improve GPU utilization and can reduce running costs. Gang scheduling can also help to prevent issues like resource segmentation and deadlocking.
12+
13+
include::modules/kueue-configuring-gangscheduling.adoc[leveloffset=+1]
14+
15+
[role="_additional-resources"]
16+
[id="additional-resources_{context}"]
17+
== Additional resources
18+
* xref:../../ai_workloads/kueue/install-kueue.adoc#create-kueue-cr_install-kueue[Creating a Kueue custom resource]
19+
20+
////
21+
// use case - deep learning
22+
One classic example is in deep learning workloads. Deep learning frameworks (Tensorflow, PyTorch etc) require all the workers to be running during the training process.
23+
24+
In this scenario, when you deploy training workloads, all the components should be scheduled and deployed to ensure the training works as expected.
25+
26+
Gang Scheduling is a critical feature for Deep Learning workloads to enable all-or-nothing scheduling capability, as most DL frameworks requires all workers to be running to start training process. Gang Scheduling avoids resource inefficiency and scheduling deadlock sometimes.
27+
////
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
:_mod-docs-content-type: ASSEMBLY
2+
include::_attributes/common-attributes.adoc[]
3+
[id="getting-support"]
4+
= Getting support
5+
:context: getting-support
6+
7+
toc::[]
8+
9+
If you experience difficulty with a procedure described in this documentation, or with {kueue-name} in general, visit the link:http://access.redhat.com[Red{nbsp}Hat Customer Portal].
10+
11+
From the Customer Portal, you can:
12+
13+
* Search or browse through the Red{nbsp}Hat Knowledgebase of articles and solutions relating to Red{nbsp}Hat products.
14+
* Submit a support case to Red{nbsp}Hat Support.
15+
* Access other product documentation.
16+
17+
[id="getting-support-rh-kb"]
18+
== About the Red Hat Knowledgebase
19+
20+
The link:https://access.redhat.com/knowledgebase[Red{nbsp}Hat Knowledgebase] provides rich content aimed at helping you make the most of Red{nbsp}Hat's products and technologies. The Red{nbsp}Hat Knowledgebase consists of articles, product documentation, and videos outlining best practices on installing, configuring, and using Red{nbsp}Hat products. In addition, you can search for solutions to known issues, each providing concise root cause descriptions and remedial steps.
21+
22+
include::modules/kueue-gathering-cluster-data.adoc[leveloffset=+1]
23+
24+
[id="getting-support-additional-resources"]
25+
[role="_additional-resources"]
26+
== Additional resources
27+
* xref:../../support/index.adoc#support-overview[Support overview]

ai_workloads/kueue/images

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../images/

0 commit comments

Comments
 (0)