Skip to content

Commit

Permalink
Merge pull request #88 from opendatahub-io-contrib/preemption
Browse files Browse the repository at this point in the history
typo
  • Loading branch information
guimou authored Jul 29, 2024
2 parents 4ecd668 + fa8cd5c commit c774d43
Show file tree
Hide file tree
Showing 19 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
BASE:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
SHELL=/bin/sh

.PHONY: teardown-kueue-premption setup-kueue-premption
.PHONY: teardown-kueue-preemption setup-kueue-preemption

teardown-kueue-premption:
teardown-kueue-preemption:

-oc delete -f $(BASE)/team-a-ray-cluster-prod.yaml -f $(BASE)/team-b-ray-cluster-dev.yaml
-oc delete -f $(BASE)/team-a-cq.yaml -f $(BASE)/team-b-cq.yaml -f $(BASE)/shared-cq.yaml
Expand All @@ -18,7 +18,7 @@ teardown-kueue-premption:
@echo "Deleting all resourceflavors"
oc delete resourceflavor --all --all-namespaces

setup-kueue-premption:
setup-kueue-preemption:

oc create -f $(BASE)/team-a-ns.yaml -f $(BASE)/team-b-ns.yaml
oc create -f $(BASE)/team-a-rb.yaml -f $(BASE)/team-b-rb.yaml
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Introduction

In [this repo](https://github.com/opendatahub-io-contrib/ai-on-openshift/tree/main/docs/odh-rhoai/kueue-premption), we will demostrate how to use quota allocation with Kueue with preemption.
In [this repo](https://github.com/opendatahub-io-contrib/ai-on-openshift/tree/main/docs/odh-rhoai/kueue-preemption), we will demostrate how to use quota allocation with Kueue with preemption.

## Overview
In this example, there are 2 teams that work in their own namespace:
Expand Down Expand Up @@ -90,7 +90,7 @@ Team A will preempt team B because it has insufficient resources to run.

```bash
git clone https://github.com/opendatahub-io-contrib/ai-on-openshift
cd ai-on-openshift/docs/odh-rhoai/kueue-premption
cd ai-on-openshift/docs/odh-rhoai/kueue-preemption
```

5. Run the makefile target to setup the example. This will setup 2 namespaces: team-a and team-b.
Expand All @@ -101,7 +101,7 @@ Team A will preempt team B because it has insufficient resources to run.

To teardown the example, you can use:
```bash
make teardown-kueue-premption
make teardown-kueue-preemption
```
!!! warning
The setup script will delete all clusterqueues and resourceflavors in the cluster.
Expand Down
2 changes: 1 addition & 1 deletion docs/whats-new/whats-new.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# What's new?

**2024-07-29**: Add [Kueue preemption](**/odh-rhoai/kueue-premption/readme.md) example.
**2024-07-29**: Add [Kueue preemption](../odh-rhoai/kueue-preemption/readme.md) example.

**2024-07-16**: Add [ODH Tools and Extensions Companion](../odh-rhoai/odh-tools-and-extensions-companion.md) documentation.

Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ nav:
- Single stack serving certificate: odh-rhoai/single-stack-serving-certificate.md
- OpenShift Group Management: odh-rhoai/openshift-group-management.md
- Accelerator Profiles: odh-rhoai/accelerator-profiles.md
- Kueue premption: odh-rhoai/kueue-premption/readme.md
- Kueue preemption: odh-rhoai/kueue-preemption/readme.md
- Tools:
- GPU pruner: odh-rhoai/gpu-pruner.md
- ODH Tools and Extensions Companion: odh-rhoai/odh-tools-and-extensions-companion.md
Expand Down

0 comments on commit c774d43

Please sign in to comment.