Module 2: GPU Booking App

The GPU Booking App is an OpenShift Console dynamic plugin that provides a calendar interface for reserving GPU resources. It integrates with Kueue to automatically provision per-user ClusterQueues, LocalQueues, and Hardware Profiles based on bookings.

The Booking App was designed and built to provide a simple, intuitive interface for users to reserve GPU resources. It is a community project and actively used to manage GPU resources in real GPU enabled clusters. It is not a Red Hat product and is not officially supported by Red Hat.

In this module, you’ll use the booking interface to reserve GPU time, observe the Kueue resources it creates, and understand the difference between reserved and consumed bookings.

Learning objectives

By the end of this module, you’ll be able to:

  • Navigate the GPU Booking App in the OpenShift Console

  • Create reserved bookings for different GPU resource types

  • Explain the difference between reserved and consumed bookings

  • Inspect the Kueue resources created by the reservation sync

The exercises below use the NVIDIA GB200 NVL profile. If you are not using this profile, you will need to switch to it using the GPU Config Plugin. See the Quickstart module for more details. You may use other profiles if you wish - however you will need to adjust the commands accordingly.

How the booking app works

Booking Sync Lifecycle

The booking app has three sync loops that run continuously:

Loop Interval What it does

Kueue Sync

30 seconds

Polls LocalQueues for active workloads and creates consumed bookings reflecting actual GPU usage

Reservation Sync

10 minutes

Reads reserved bookings for today/tomorrow and creates per-user ClusterQueues, LocalQueues, and HardwareProfiles

Expiration Cleaner

10 minutes

Gracefully drains and removes expired ClusterQueues using a two-phase approach

When you make a reservation, the app creates Kueue resources that give your workloads protected quota — they cannot be preempted by unreserved workloads.

We have configured reservation guarantees to ensure that user reservations are not preempted by unreserved workloads. This is a design choice to ensure that users can reserve GPUs for their own use and not have them taken away by other users whilst allowing unreserved workloads to run when resources are available.

Other designs are possible, the Booking App is one of many possible implementations of the Kueue Cohort model. We cover the Kueue Cohort model in more detail in Module 4.

Exercise 1: Open the GPU Booking App

Acting as: user1
Log in to the OpenShift Console at https://console-openshift-console.apps.cluster.example.com with username user1 and password %password%.

  1. In the OpenShift Console, navigate to the GPU Booking plugin. Look for GPU Booking in the console navigation menu.

  2. Explore the calendar interface:

    • The calendar shows days of the current month

    • Each GPU resource type has its own row

    • Color-coded slots show reserved (user bookings) vs. consumed (actual usage)

  3. Review the available GPU resource types (this will depend on the GPU profile you are using):

    • GB200 NVL Full GPU — nvidia.com/gpu (8 available)

    • MIG 7g.189gb — nvidia.com/mig-7g.189gb (8 available)

    • MIG 3g.93gb — nvidia.com/mig-3g.93gb (16 available)

    • MIG 2g.47gb — nvidia.com/mig-2g.47gb (16 available)

    • MIG 1g.23gb — nvidia.com/mig-1g.23gb (56 available)

Verify

✓ GPU Booking App is accessible in the console
✓ Calendar shows GPU resource types and availability

The GPU Booking App has extensive help documentation available in the OpenShift Console. This is a great way to learn about the app and how to use it.

Booking App Help Documentation

Exercise 2: Create a GPU reservation

Acting as: user1

  1. In the booking calendar, select today’s date by clicking on it.

  2. Choose a GPU resource type (e.g., GB200 NVL Full GPU).

  3. Set the number of GPUs you want to reserve (lets start with 4).

  4. Click Reserve to create the booking.

    The booking should appear as a colored slot in the calendar. You should see 4 red colored slots in the calendar for the 4 GPUs you reserved.

    4 GPUs Booked
  5. Verify the Kueue resources were created:

    oc get clusterqueues

    You should see a new ClusterQueue named after your user (e.g., user-user1).

  6. Inspect your user’s ClusterQueue:

    oc -n user-user1 get clusterqueue user-user1 -o yaml | grep -A 20 "resourceGroups"

    The nominalQuota shows the GPU resources you reserved. You should see nominalQuota: "4" — this is your protected allocation. The cpu and memo are calculated by the booking app based on the GPU resource type you reserved and are a percentage of the total resources available.

  7. Check that a LocalQueue was created in your namespace:

    oc -n user-user1 get localqueues

    You should see a new LocalQueue called reserved pointing to your user’s ClusterQueue.

You can also bulk book reservations of multiple GPUs and MIG partitions by right clicking on the calendar.

Bulk Booking

Select the number of GPUs and MIG partitions you want to reserve, add a description so other users can understand your booking and click Book to create the booking.

Verify

✓ Reservation appears in the booking calendar
✓ User-specific ClusterQueue exists with nominalQuota matching your reservation
✓ LocalQueue created in your namespace
✓ Bulk booking reservations can be created by right clicking on the calendar

Exercise 3: Understand reserved vs. consumed bookings

There are two types of bookings in the system:

Reserved bookings are created when you explicitly book GPU time through the calendar. They:

  • Create per-user Kueue resources (ClusterQueue, LocalQueue, HardwareProfile)

  • Set nominalQuota that protects your allocation from preemption

  • Reduce the shared unreserved Cohort by the reserved amount

Consumed bookings are automatically created by the Kueue Sync loop. They:

  • Reflect actual GPU usage detected from active LocalQueue workloads

  • Appear as a different color in the calendar

  • Are auto-generated with deterministic IDs so the sync can reconcile additions/removals

  • Can be overridden by a new reservation (consumed workloads get preempted)

Let’s see this in practice. You reserved 4 GPUs in Exercise 2, but now you’ll deploy a workload requesting 6 — more than your reservation. This is allowed, and understanding why is key to understanding the Kueue Cohort model.

Acting as: user1

  1. Deploy a pod requesting 6 full GPUs to the reserved queue:

    helm template gpu-deploy oci://quay.io/eformat/gpu-test-workloads -n user-user1 \
      --set kind=Pod \
      --set name=gpu-test \
      --set replicas=1 \
      --set gpuCount=6 \
      --set gpuResourceType=nvidia.com/gpu \
      --set reserved=true \
      | oc -n user-user1 apply -f-
  2. Wait for the pod to start:

    oc -n user-user1 wait pod/gpu-test --for=condition=Ready --timeout=60s

    You can also see the workload in the Bookings dashboard.

    6 GPUs Consumed

    You should see 4 red slots for the reserved GPUs and 2 green slots for the extra consumed GPUs, totalling 6. The Booking App refreshes the screen every 10 seconds, or use the refresh button in the top right.

Why 6 GPUs when only 4 are reserved?

Your ClusterQueue user-user1 has nominalQuota: 4 — that’s your guaranteed, protected allocation. But it also belongs to the unreserved Cohort, and Kueue allows ClusterQueues to borrow idle resources from their Cohort beyond their nominalQuota.

Inspect the ClusterQueue status to see this in action:

oc get cq user-user1 -o jsonpath='{range .status.flavorsUsage[0].resources[*]}{.name}{"\t"}total={.total}{"\t"}borrowed={.borrowed}{"\n"}{end}'

You should see output like:

cpu          total=0    borrowed=0
memory       total=0    borrowed=0
nvidia.com/gpu   total=6    borrowed=2

Kueue reports total=6 and borrowed=2 for nvidia.com/gpu. The breakdown:

  • 4 GPUs come from your nominalQuota — these are your reserved allocation

  • 2 GPUs are borrowed from the Cohort’s idle capacity

The Cohort unreserved owns the remaining 4 GPUs (8 total minus your 4 reserved). Since no unreserved workloads are running, those 4 GPUs are idle — and your ClusterQueue borrows 2 of them.

What protects what?

The preemption policy on your ClusterQueue controls the difference between reserved and borrowed GPUs:

GPU type Calendar color Preemption behavior

Reserved (nominalQuota)

Red

Fully protected. Your CQ has reclaimWithinCohort: Any — it can preempt any unreserved workload to reclaim these GPUs if needed.

Borrowed (from Cohort)

Green

Best-effort. Your CQ has borrowWithinCohort.policy: Never — it cannot preempt anyone to get borrowed GPUs. They must be genuinely idle. If another user reserves those GPUs, your borrowed allocation is preempted first.

This is why the booking app shows two colors: red means guaranteed capacity backed by nominalQuota, and green means your workload is consuming more than its reservation by borrowing idle Cohort resources.

Borrowed GPUs let you burst beyond your reservation when the cluster has spare capacity, but they come with no guarantee. If you need all 6 GPUs to be protected, increase your reservation to 6 in the booking calendar using the Override button.

Correlate with Kueue state

Acting as: user1

  1. Check for consumed bookings by listing active workloads:

    oc get localqueues -A -o custom-columns=\
    NAMESPACE:.metadata.namespace,\
    NAME:.metadata.name,\
    ADMITTED:.status.admittedWorkloads,\
    PENDING:.status.pendingWorkloads
  2. Compare what the calendar shows with the Kueue state:

    oc get clusterqueues -o custom-columns=\
    NAME:.metadata.name,\
    COHORT:.spec.cohortName,\
    ADMITTED:.status.admittedWorkloads,\
    PENDING:.status.pendingWorkloads

Clean up

Acting as: user1
Log in to the OpenShift CLI:

oc login --insecure-skip-tls-verify $(oc whoami --show-server) -u user1 -p %password%
  1. Delete the workload:

    oc -n user-user1 delete pod gpu-test
  2. user1: Cancel booking

    Acting as: user1
    Return to the OpenShift Console as user1.

  3. Navigate to GPU Booking > Bookings and click My Bookings.

  4. Click Cancel All to remove the GPU reservation, then click Confirm.

Verify

✓ Understand the difference between reserved and consumed bookings
✓ Can explain why a 6-GPU workload is admitted with a 4-GPU reservation
✓ Can identify borrowed vs. nominalQuota usage in ClusterQueue status
✓ Can correlate calendar colors (red/green) with Kueue resource state

Module summary

What you accomplished:

  • Navigated the GPU Booking App in the OpenShift Console

  • Created a GPU reservation and observed the Kueue resources it provisions

  • Understood the difference between reserved and consumed bookings

  • Explained why workloads can consume more GPUs than reserved through Cohort borrowing

Key takeaways:

  • The booking app bridges the gap between calendar-based GPU scheduling and Kubernetes resource management

  • Reservations create per-user ClusterQueues with protected nominalQuota

  • Consumed bookings are auto-detected from actual workload usage via Kueue sync

  • Workloads can borrow idle Cohort resources beyond their reservation, but borrowed GPUs are not protected from preemption

Next: Module 3 explores RHOAI Hardware Profiles — how the booking app creates them from reservations and how they connect to workbenches and Data Science Projects.