Skip to content

Commit 020d771

Browse files
authored
Merge pull request #94765 from abrennan89/cohort-concepts
OSDOCS-14894: Adding docs about cohorts
2 parents cf7ad1c + daf0266 commit 020d771

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-0
lines changed

_topic_maps/_topic_map.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ Distros: openshift-kueue
5353
Topics:
5454
- Name: Configuring quotas
5555
File: configuring-quotas
56+
- Name: Using cohorts
57+
File: using-cohorts
5658
---
5759
Name: Develop
5860
Dir: develop

configure/using-cohorts.adoc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
:_mod-docs-content-type: ASSEMBLY
2+
include::_attributes/common-attributes.adoc[]
3+
[id="using-cohorts"]
4+
= Using cohorts
5+
:context: using-cohorts
6+
7+
toc::[]
8+
9+
You can use cohorts to group cluster queues and determine which cluster queues are able to share borrowable resources with each other.
10+
Borrowable resources are defined as the unused nominal quota of all the cluster queues in a cohort.
11+
12+
Using cohorts can help to optimize resource utilization by preventing under-utilization and enabling fair sharing configurations.
13+
Cohorts can also help to simplify resource management and allocation between teams, because you can group cluster queues for related workloads or for each team.
14+
You can also use cohorts to set resource quotas at a group level to define the limits for resources that a group of cluster queues can consume.
15+
16+
include::modules/clusterqueue-configuring-cohorts-reference.adoc[leveloffset=+1]
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * configure/using-cohorts.adoc
4+
5+
:_mod-docs-content-type: REFERENCE
6+
[id="clusterqueue-configuring-cohorts-reference_{context}"]
7+
= Configuring cohorts within a cluster queue spec
8+
9+
You can add a cluster queue to a cohort by specifying the name of the cohort in the `.spec.cohort` field of the `ClusterQueue` object, as shown in the following example:
10+
11+
[source,yaml]
12+
----
13+
apiVersion: kueue.x-k8s.io/v1beta1
14+
kind: ClusterQueue
15+
metadata:
16+
name: example-clusterqueue
17+
spec:
18+
# ...
19+
cohort: example-cohort
20+
# ...
21+
----
22+
23+
All cluster queues that have a matching `spec.cohort` are part of the same cohort.
24+
25+
If the `spec.cohort` field is omitted, the cluster queue does not belong to any cohort and cannot access borrowable resources.

0 commit comments

Comments
 (0)