Skip to content

Commit dfea787

Browse files
committed
Dividing queues and workload examples into different files for ease of explanation on docs
1 parent 6032771 commit dfea787

File tree

3 files changed

+40
-81
lines changed

3 files changed

+40
-81
lines changed

ray-operator/config/samples/ray-cluster.kai-gpu-sharing.yaml

Lines changed: 1 addition & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,9 @@
1-
apiVersion: scheduling.run.ai/v2
2-
kind: Queue
3-
metadata:
4-
name: default
5-
spec:
6-
resources:
7-
cpu:
8-
quota: -1
9-
limit: -1
10-
overQuotaWeight: 1
11-
gpu:
12-
quota: -1
13-
limit: -1
14-
overQuotaWeight: 1
15-
memory:
16-
quota: -1
17-
limit: -1
18-
overQuotaWeight: 1
19-
---
20-
apiVersion: scheduling.run.ai/v2
21-
kind: Queue
22-
metadata:
23-
name: test
24-
spec:
25-
parentQueue: default
26-
resources:
27-
cpu:
28-
quota: -1
29-
limit: -1
30-
overQuotaWeight: 1
31-
gpu:
32-
quota: -1
33-
limit: -1
34-
overQuotaWeight: 1
35-
memory:
36-
quota: -1
37-
limit: -1
38-
overQuotaWeight: 1
39-
---
40-
411
apiVersion: ray.io/v1
422
kind: RayCluster
433
metadata:
444
name: raycluster-half-gpu
455
labels:
46-
kai.scheduler/queue: test
6+
kai.scheduler/queue: team-a
477
spec:
488
headGroupSpec:
499
template:
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
apiVersion: scheduling.run.ai/v2
2+
kind: Queue
3+
metadata:
4+
name: department-1
5+
spec:
6+
resources:
7+
cpu:
8+
quota: -1
9+
limit: -1
10+
overQuotaWeight: 1
11+
gpu:
12+
quota: -1
13+
limit: -1
14+
overQuotaWeight: 1
15+
memory:
16+
quota: -1
17+
limit: -1
18+
overQuotaWeight: 1
19+
---
20+
apiVersion: scheduling.run.ai/v2
21+
kind: Queue
22+
metadata:
23+
name: team-a
24+
spec:
25+
parentQueue: department-1
26+
resources:
27+
cpu:
28+
quota: -1
29+
limit: -1
30+
overQuotaWeight: 1
31+
gpu:
32+
quota: -1
33+
limit: -1
34+
overQuotaWeight: 1
35+
memory:
36+
quota: -1
37+
limit: -1
38+
overQuotaWeight: 1

ray-operator/config/samples/ray-cluster.kai-scheduler.yaml

Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,10 @@
11
#A simple example raycluster with KAI
2-
apiVersion: scheduling.run.ai/v2
3-
kind: Queue
4-
metadata:
5-
name: default
6-
spec:
7-
resources:
8-
cpu:
9-
quota: -1
10-
limit: -1
11-
overQuotaWeight: 1
12-
gpu:
13-
quota: -1
14-
limit: -1
15-
overQuotaWeight: 1
16-
memory:
17-
quota: -1
18-
limit: -1
19-
overQuotaWeight: 1
20-
---
21-
apiVersion: scheduling.run.ai/v2
22-
kind: Queue
23-
metadata:
24-
name: test
25-
spec:
26-
parentQueue: default
27-
resources:
28-
cpu:
29-
quota: -1
30-
limit: -1
31-
overQuotaWeight: 1
32-
gpu:
33-
quota: -1
34-
limit: -1
35-
overQuotaWeight: 1
36-
memory:
37-
quota: -1
38-
limit: -1
39-
overQuotaWeight: 1
40-
---
412
apiVersion: ray.io/v1
423
kind: RayCluster
434
metadata:
445
name: raycluster-sample
456
labels:
46-
kai.scheduler/queue: test
7+
kai.scheduler/queue: team-a
478
spec:
489
headGroupSpec:
4910
template:

0 commit comments

Comments
 (0)