Apply the cluster node selector to GPU Service instance placement and capacity
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 47/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- kubernetes, python
- Domain
- backend, infrastructure
Research direction
Start by reading the cluster selector configuration in gpustack/k8s/values.py and the linked ResourceFlavor generation code in gpustack-operator/pkg/worker/controllers/worker/node_flavor.go; then trace how instance placement and available capacity use node labels and tolerations. Define how the selector applies to new and existing clusters, including the separate instance selector, and update the cluster configuration help text. Done means placement and capacity both honor the effective selector while existing clusters remain opt-in.
Written by the indexing model from the issue text.
Description
❓ Is your enhancement related to a problem?
An administrator configured k8s_options.nodeSelector to reserve control-plane nodes for long-running models and run GPU Service instances only on worker nodes. The selector controls where GPUStack components run, but GPU Service instances are scheduled through Kueue using the node labels and tolerations of their assigned ResourceFlavor.
If a control-plane node matches the flavor and has sufficient resources, it remains eligible. The generated flavor also tolerates all taints, so a control-plane NoSchedule taint alone does not exclude it. Administrators must separately configure which nodes GPU Service manages to enforce the intended placement. Cluster selector configuration · ResourceFlavor generation
💡 Describe the solution you'd like
Use the cluster node selector as the default placement constraint for GPU Service instances in new clusters. A node must match both the cluster selector and the requirements of the selected InstanceType. Apply the same constraint when calculating available capacity.
For example, with nodeSelector: {node-pool: gpu-worker}, a control-plane node without that label should contribute no GPU Service capacity and receive no new instance Pods, even if its hardware matches the InstanceType.
Allow administrators to configure a separate instance selector when components and instances need different node pools. For existing clusters, make the change opt-in so upgrading does not unexpectedly remove capacity or disrupt running instances. Update the cluster configuration help text to make the effective scope clear.
- Dominant language
- Python
- Stars
- 6.1k
- Forks
- 750
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 109
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from gpustack/gpustack
-
ui
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
Change log level of kubernetes.client.rest response body log to TRACEPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
gpustack/gpustack#6844 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
gpustack/gpustack#6834 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Password policy has no minimum length — a 4-character password passes validationPossibly taken @Tkrechet claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
All issues in gpustack/gpustack
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
software-mansion-labs/Diplomat#20 ·
Maintainers usually reply within 1 day
-
[Windows] Hidden title bar: a maximized window restored from minimized on a secondary monitor gets the primary monitor's work area as its client areaPossibly taken @lijy91 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
libnativeapi/nativeapi#53 · 1 reaction ·
Maintainers usually reply within 1 day
-
View Counts discarded due to field name mismatchPossibly taken @rsiva0400 claimed this today. Opensite-bug triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Model version publishes the new UK firm entity as a personPossibly taken @vahid-ahmadi claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
PolicyEngine/policyengine.py#764 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
spcl/HPCAgent-Bench#264 ·
Maintainers usually reply within 1 day