CPU & GPU Quota

UZH JupyterHub tracks how long you use a server in each quota period — a calendar week, unless your course uses longer periods (see Quota periods). Different hardware tiers — CPU and GPU — have separate time budgets. When your budget for the period runs out, your server is stopped and you cannot start a new one until the next period begins.

Batch jobs draw on the same budgets — a job spends the tier it runs on while it holds its hardware, even though no server of yours is running.


How the quota system works

Every server profile belongs to a tier — either CPU or GPU (determined by the profile name). Each user also has a quota role. For personal servers that’s either user or admin, derived from your OLAT membership. For group servers which do not belong to one individual, it’s always collab:

  • user — regular participants (the default).
  • admin — course Owners (members of the lti-admins group).
  • collab — usage on a shared collaboration group server is counted under this role, separately from your personal usage.

See Roles, Groups & Collaboration for how OLAT roles map to JupyterHub.

The combination of tier and role determines your time budget per period:

Tier Role Typical default budget
CPU user 20 hours / period
GPU user 20 hours / period
CPU admin 20 hours / period
GPU admin 20 hours / period
CPU collab 20 hours / period
GPU collab 20 hours / period

Actual values are configured per deployment and may differ from the defaults above.

Quota periods

By default the quota resets every Monday at 00:00 UTC. Usage from the previous period does not carry over.

On hubs running a phidias release newer than v5.5.0 (the version that adds quota periods, CLOUDDEV-852), a course can instead use periods of one or more calendar months — for example a month, or a six-month block covering a semester — each starting on the 1st at 00:00 UTC. On those hubs you do not need to work out which applies: the server-selection page names the current period and when budgets reset, and the JupyterLab status bar shows the reset time next to your remaining time. On older hubs the period is always the calendar week.

What happens when you run out

  • Your running server is automatically stopped when the remaining time reaches zero.
  • Attempting to start a new server returns a 403 error with a message showing how much time you used.
  • On a fleet course, both also leave you a notice in JupyterLab, so you can see later why your server stopped.
  • The budget resets at the start of the next period (on newer hubs, shown on the server-selection page and in the status bar).

Every GPU kind — shared, dedicated, A10 or the job-only H100 — spends the one GPU budget; there is no separate budget per card.


Seeing your remaining time

On the server-selection page

When you log in and choose a server profile, a Quota status banner shows your remaining time for each available profile (on newer hubs it also names the current period and when budgets reset):

Profile Tier Remaining Total
Minimal environment CPU 18h 30m 20h 0m
BME GPU Server GPU 20h 0m 20h 0m

Inside JupyterLab — profile switcher

Once your server is running, the Switcher extension (a JupyterLab toolbar button) allows you to:

  • View your remaining quota for the current profile
  • Switch to another profile (if you have quota left on it) without stopping your server

The switcher displays an estimate of remaining time for the current and, as a mouse-over hover, other profile(s) - see the image below. The status bar at the bottom shows the time remaining; on newer hubs it also shows when your budget resets, e.g. ⏱ 12h 5m remaining · resets Mon 1 Mar, 01:00 (in your browser’s time zone). A countdown timer runs in the background; your server is automatically stopped when time runs out.

img.png


What to do when your quota is used up

👩‍🎓 Participants:

  • You cannot extend your own quota. If you run out, wait until the budget resets (Monday, or on newer hubs the time the status bar shows) or ask your teacher to grant extra time.
  • To make your budget last: stop your server when you are not actively working (use the Stop My Server button on the JupyterHub home page or the Start & Scale UI).
  • Close idle notebook kernels — a running kernel keeps the server alive and consuming quota.

👩‍🏫 Owners / Coaches:

You can grant extra time to individual users via the Quota Admin UI (see below).


Quota Admin UI

👩‍🏫 Owners / Coaches:

Quota is managed on a dedicated Quota Admin page, which is separate from the JupyterHub Admin page (the Admin page only lists users and starts/stops their servers — it does not show quota). Reach the Quota Admin page via the Quota link in the JupyterHub navigation bar, or directly at <your-hub-url>/services/quota/admin. Access requires the quota-admin scope, granted automatically to OLAT course Owners and Coaches.

Viewing usage

The Usage table lists every user who has consumed quota in the current period. On hubs running a phidias release newer than v5.7.3 it lists every user of the hub, with a row per budget (CPU and GPU, or on courses with a budget per GPU type, CPU and each GPU type): also users who have logged in but never started a server, and users created on the JupyterHub Admin page who have never logged in. Their rows show no usage yet, so you can grant them extra time before their first session. On a phidias release newer than v5.8.0, a collaboration group’s server (<group>-collab) is listed only once its group has at least one member or the server has usage this period:

Username Tier Role Used Budget Remaining Extension
alice cpu user 12h 30m 20h 0m 7h 30m 1 h  Grant
bob gpu user 3h 15m 20h 0m 16h 45m 1 h  Grant

Filter the list with the Filter by username field at the top.

Extending a user’s quota

To grant extra time to a user who has run out:

  1. Find the user in the Usage table.
  2. In that user’s Extension column, enter the number of additional hours.
  3. Click Grant.

The granted hours give the user more time within the current period. On older hubs a grant only offsets time the user has already used. Hours granted beyond that only count once the user has used that much time, and a new session’s countdown never starts above the regular budget.

On hubs running a phidias release newer than v5.7.3:

  • A grant raises the user’s budget for the current period: the time left is budget + granted − used. The spawn page, the JupyterLab countdown and batch jobs all show and use that figure, so a user granted 2 h on a 20 h budget starts their next server with up to 22 h.
  • You can grant time to a user who has not started a server yet, for example GPU hours before their first GPU session; their first server already counts down from budget + grant.
  • On a course with a budget per GPU type, a grant can open a GPU type whose budget is 0 for one student only: grant them hours on that type, and they can start it (and submit batch jobs to it) until the granted hours are used.
  • Grants apply to the current period only and do not carry over.

Adjusting budgets

Below the Usage table, the Budget configuration table lets you change the time budget per period, per tier and role. Each row has two editable fields — This period (h) and Next period (h) (on older hubs: This week (h) and Next week (h)) — and an Update button:

  • This period — takes effect immediately, for the whole current period (time already used counts against it).
  • Next period — takes effect when the next period begins. With monthly or longer periods that can be weeks or months away; the page shows the dates.

This allows you to, for example, increase the GPU budget for a period when students have a deadline, then let it revert to normal.

The course order limit

On hubs running a phidias release that includes the course order check (CLOUDDEV-1119; newer than v5.5.0), a course whose configuration carries its order — the CPU and GPU hours ordered, the planned number of participants, collaboration groups and admins, and the course dates — cannot hand out, in sum, much more time than it ordered. Courses without an order, and older hubs, are not checked.

  • A Course order card above the budget table shows, per tier, the hours ordered, used so far, granted as extensions, and planned by the current budgets for the rest of the course, with the limit and your headroom.
  • Planned is each role’s budget × its planned number of budget holders (for collaboration servers: the number of groups, not members) × the remaining quota periods, counting the period containing the last course day in full. The current period counts at its This period budget, every later one at the Next period budget.
  • When you save a budget, planned plus granted hours must stay within 2 × (ordered − used) for that tier (the factor can differ per course). Otherwise the save is refused with the figures, and nothing changes. Lowering a budget is always possible.
  • The limit applies to saving budgets only: it never stops a running server. If the course needs more than it ordered, ask the platform admins by mail for a top-up; an approved top-up raises the order in the course configuration.
  • Platform admins (JupyterHub admins, see Platform admins) see the same refusal with a confirmation box and may save over the order; every such save is logged.

How quota is configured (deployment level)

Note: The values below are set by ZI when the course is deployed and are listed here for reference only. Owners and Coaches cannot change them, but can adjust the live budgets from the Quota Admin page (see above).

Default budgets

Default budgets are set via environment variables in the JupyterHub deployment:

Variable Description
QUOTA_USER_CPU_S CPU budget per period for regular users (in seconds)
QUOTA_USER_GPU_S GPU budget per period for regular users (in seconds)
QUOTA_ADMIN_CPU_S CPU budget per period for admins (in seconds)
QUOTA_ADMIN_GPU_S GPU budget per period for admins (in seconds)
QUOTA_COLLAB_CPU_S CPU budget per period for collaboration servers (in seconds)
QUOTA_COLLAB_GPU_S GPU budget per period for collaboration servers (in seconds)

All default to 72 000 seconds (20 hours) if not set.

Quota period

On a fleet course whose hub runs a phidias release newer than v5.5.0, the period is the course’s quota_period setting: absent means weekly; {"shape": "month", "months": 6, "anchor": "2026-09"} means six-month periods starting each September and March. Changing it starts every user of the course on a fresh budget.

Course order

On a fleet course whose hub includes the course order check (CLOUDDEV-1119), the course document’s platform.order carries what the course ordered, e.g. {"hours": {"cpu": 2000, "gpu": 500}, "participants": {"user": 40, "collab": 8, "admin": 2}, "start": "2026-09-14", "end": "2027-01-31"} (optional "factor", default 2). The Ordertool writes it; a top-up raises hours in a pull request. Absent means budgets are not checked against an order.

Platform admins

The fleet’s platform_admins list (in the fleet’s k8s.tfvars; empty until ZI fills it) makes the listed people full JupyterHub admins on every course hub of the fleet: the hub’s admin panel, every hub API permission (creating, deleting and renaming users and groups, starting and stopping anyone’s server, issuing tokens for others), every service, including the Quota Admin page and saving budgets over a course order, and access to every user’s running server and its files. List only people who should have all of that on every course.

  • On OLAT hubs (every productive course) this holds from the phidias hub release that contains CLOUDDEV-1195: any OLAT launch of the course will do, a participant launch included. On a hub pinned to an older phidias release the person gets only the admin flag, which lets them save budgets over a course order, and nothing more: the hub took each user’s roles from the OLAT launch at every login and dropped the admin role, so there was no admin panel and no access to other users’ servers, and the Quota Admin page needed an OLAT launch with an instructor (coach) or administrator (owner) role in that course.
  • On hubs with the test login (spawn validation, no OLAT) the full admin role always applied.

Removing someone from the list takes effect when the change is applied (the hub restarts): with the release containing CLOUDDEV-1195, they lose admin on their first request to the restarted hub, without logging in again, and keep their OLAT course role. On an older release JupyterHub never revokes by itself: they keep the flag, and after every hub restart the admin role until their next login, until an admin clears admin for them in the admin panel.

From the release containing CLOUDDEV-1195, ticking admin for someone in an OLAT hub’s admin panel lasts only until their next login or at most 5 minutes (JupyterHub’s auth_refresh_age), so platform_admins is the only lasting way to make someone a hub admin there.

Each entry must be the exact username OLAT gives the person on the hub: the email address of the OLAT launch, in lower case (e.g. jane.doe@uzh.ch). JupyterHub pre-creates every listed admin on every course hub when the hub starts, so they appear in its user list and admin panel even if they never log in; admin takes effect when the person logs in to that course’s hub through OLAT with that email.


UZH Central IT (ZI) —

This site uses Just the Docs, a documentation theme for Jekyll.