Skip to content

docsy(v2): set GPU limits in cluster resource config#1212

Open
ppiegaze wants to merge 1 commit into
mainfrom
docsy/v2-gpu-limits-cluster-config
Open

docsy(v2): set GPU limits in cluster resource config#1212
ppiegaze wants to merge 1 commit into
mainfrom
docsy/v2-gpu-limits-cluster-config

Conversation

@ppiegaze

Copy link
Copy Markdown
Collaborator

What

Adds a GPU limits subsection to the Resource management guide (user-guide/project-patterns/resource-management), answering DOC-306 — "how does an admin set GPU limits in the cluster resource config?"

Why / grounding (code-is-authoritative)

The page documented project-domain quotas for CPU and memory only (projectQuotaCpu / projectQuotaMemory via uctl update cluster-resource-attribute), with GPU absent. DOC-306 (and its Jira original, DOCS-362) asked specifically how to raise the GPU limit, guessing at a projectQuotaNvidiaGpu key.

Verified against live docs + repo content + source:

  • There is no standard project-level GPU quota key. The projectQuota* attributes are free-form ResourceQuota template variables — the shipped/standard template wires only limits.cpu / limits.memory (deployment/flyte-plugins/kubernetes-plugins.md template; deployment/flyte-configuration/customizable_resources.md — "free-form strings"). So projectQuotaNvidiaGpu is not a real, fixed key.
  • The confirmed v2/Union GPU limit mechanism is the settings system:
    • task_resource.max.gpu — maximum GPU per task pod, enforced as a hard limit that a per-task flyte.Resources request cannot exceed.
    • task_resource.min.gpu — default GPU request when a task omits one.
    • Set via flyte edit settings --domain <d> (or --project). Documented on user-guide/core-concepts/settings and confirmed against the live docs (.../core-concepts/settings/page.md).

The new subsection states the confirmed keys, notes these are per-task limits rather than a namespace aggregate, and cross-links Settings. Scope is deliberately narrow (the platform/domain/project GPU cap) — distinct from the per-task Resources(gpu=) API (DOC-1102 / #1197).

Hold status

Held draft — the mechanism ships today (already live in the Settings docs), so this is publish-ready on human review/merge, not blocked on an unshipped feature.

Refs: DOC-306

The resource-management guide documented project-domain quotas for CPU
and memory (projectQuotaCpu / projectQuotaMemory via
`uctl update cluster-resource-attribute`) but omitted GPU entirely,
leaving DOC-306's question unanswered.

v2/Union has no standard project-level GPU quota key (the projectQuota*
keys are free-form ResourceQuota template variables covering CPU/memory).
GPU limits are enforced through the settings system via
`task_resource.max.gpu` (hard per-task max) and `task_resource.min.gpu`
(default request), set with `flyte edit settings`. Add a "GPU limits"
subsection stating the confirmed keys and cross-linking Settings.

Refs: DOC-306

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Peeter Piegaze <1153481+ppiegaze@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown

GHA build & deploy preview

Built by .github/workflows/build-pr.yml and deployed to the docs CF Pages project by .github/workflows/deploy-pr-preview.yml.

Branch alias https://pr-1212-docsy-v2-gpu-limits.docs-dog.pages.dev
This commit https://37630dec.docs-dog.pages.dev
Commit SHA 9f8a5dcffc39ca7882f5ece1b3b69c5b55922c30

Updated automatically on every push.

@ppiegaze ppiegaze marked this pull request as ready for review July 13, 2026 14:19
@ppiegaze ppiegaze requested a review from EngHabu as a code owner July 13, 2026 14:19
Copilot AI review requested due to automatic review settings July 13, 2026 14:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds documentation to the Resource management guide explaining how to configure GPU limits for domains/projects in Union via the hierarchical Settings system (rather than projectQuota* ClusterResourceAttribute variables).

Changes:

  • Adds a new GPU limits subsection clarifying there is no standard projectQuota* GPU key.
  • Documents the relevant Settings keys (task_resource.max.gpu, task_resource.min.gpu) and how to edit them with flyte edit settings.
  • Notes the semantic difference between namespace-wide quotas (CPU/memory) and per-task GPU limits, with a cross-link to the Settings guide.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants