volcano-node-resources
Skill235 starsChanged 6 months agoApache-2.0View on GitHub
Query cluster node resources for Volcano scheduling. Check allocatable CPU, memory, GPU, and current usage.
In this repository30 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- kbc/CLAUDE.mdCLAUDE.md
- cluster-eventsSkill
- deployment-rollout-debugSkill
- dns-debugSkill
- gateway-diagnosticsSkill
- hpa-debugSkill
- http-log-statsSkill
- image-pull-debugSkill
- ingress-debugSkill
- job-debugSkill
- networkpolicy-debugSkill
- node-health-checkSkill
- node-logsSkill
- pod-crash-debugSkill
- pod-pending-debugSkill
- pvc-debugSkill
- quota-debugSkill
- service-debugSkill
- statefulset-debugSkill
- volcano-diagnose-podSkill
- volcano-gang-schedulingSkill
- volcano-job-diagnoseSkill
- volcano-queue-diagnoseSkill
- volcano-resource-insufficientSkill
- volcano-scheduler-configSkill
- volcano-scheduler-logsSkill
- manage-skillSkill
- skill-authoringSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 87
When --show-usage is enabled and metrics-server is available:
- Distinctive: line 128
Look for nodes with positive Available CPU/Memory.
- Distinctive: line 155
If pods require specific labels:
- Distinctive: line 236
Verify GPU device plugin is running
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Volcano Node Resources
Query cluster node resources to understand capacity and availability for Volcano scheduling. This skill helps identify resource bottlenecks at the node level.
Scope: This skill is for diagnosis only. It retrieves resource information but does not modify any cluster state.
Usage
bash skills/core/volcano-node-resources/scripts/get-node-resources.sh [options]Parameters
| Parameter | Required | Description |
--node NODE | no | Query specific node only |
--label LABEL | no | Filter nodes by label (e.g., gpu=true) |
--show-usage | no | Show current resource usage (requires metrics-server) |
--show-pods | no | Show pods running on each node |
--format FORMAT | no | Output format: table (default), json, wide |
Examples
Get overview of all nodes:
bash skills/core/volcano-node-resources/scripts/get-node-resources.shCheck specific node:
bash skills/core/volcano-node-resources/scripts/get-node-resources.sh --node worker-1Check GPU nodes:
bash skills/core/volcano-node-resources/scripts/get-node-resources.sh --label nvidia.com/gpu.present=trueShow resource usage:
bash skills/core/volcano-node-resources/scripts/get-node-resources.sh --show-usageShow with pod information:
bash skills/core/volcano-node-resources/scripts/get-node-resources.sh --show-podsJSON output for parsing:
bash skills/core/volcano-node-resources/scripts/get-node-resources.sh --format jsonUnderstanding Node Resources
Resource Types
| Resource | Description | Scheduling Impact |
cpu | CPU cores (millicores) | Primary scheduling constraint |
memory | RAM (bytes) | Primary scheduling constraint |
nvidia.com/gpu | GPU devices | Hardware-specific scheduling |
pods | Max pods per node | Density limit |
ephemeral-storage | Disk space | Secondary constraint |
Capacity vs Allocatable
- Capacity: Total physical resources on the node
- Allocatable: Resources available for pods (capacity minus system reservations)
Reservations include:
- kubelet overhead
- System daemons (kube-proxy, node-exporter)
- Kernel reserved memory
- Eviction threshold
Resource Usage
When --show-usage is enabled and metrics-server is available:
- Requests: Sum of all pod resource requests on the node
- Limits: Sum of all pod resource limits
- Usage: Actual resource consumption
Key insights:
- Allocatable - Requests = Available for new pods
- Usage < Requests = Over-provisioning
- Usage > Requests = Over-committing (risky)
Resource Calculation
Available Resources
Available = Allocatable - Allocated (sum of all requests)Nodes with zero or negative available resources cannot accept new pods.
Gang Scheduling Calculation
For Gang scheduling, you need:
Number of nodes with Available >= Pod Request >= minMemberExample:
- minMember = 4
- Pod requests 4 CPUs each
- Need at least 4 nodes with 4+ CPUs available
Diagnostic Use Cases
Case 1: Identify Nodes with Available Resources
bash skills/core/volcano-node-resources/scripts/get-node-resources.shLook for nodes with positive Available CPU/Memory. Nodes with zero or near-zero availability cannot schedule new pods.
Case 2: Find GPU-Equipped Nodes
bash skills/core/volcano-node-resources/scripts/get-node-resources.sh --label nvidia.com/gpu.present=true --show-usageCheck:
- Which nodes have GPUs
- How many GPUs are allocatable
- How many are currently allocated/used
- GPU utilization patterns
Case 3: Detect Resource Fragmentation
bash skills/core/volcano-node-resources/scripts/get-node-resources.sh --show-usageFragmentation indicators:
- Many nodes with small amounts of available resources
- High node count but low available resources per node
- Allocated resources spread thinly across many nodes
Case 4: Node Affinity Troubleshooting
If pods require specific labels:
# Check nodes with required labels
bash skills/core/volcano-node-resources/scripts/get-node-resources.sh --label <required-label>
# Verify sufficient resources
kubectl describe node <node-name> | grep -A 10 "Allocated resources"Case 5: Capacity Planning
Monitor trends over time:
# Current capacity
bash skills/core/volcano-node-resources/scripts/get-node-resources.sh --format json
# Check usage trends (if metrics available)
for node in $(kubectl get nodes -o jsonpath='{.items[*].metadata.name}'); do
echo "=== $node ==="
kubectl top node $node 2>/dev/null || echo "Metrics not available"
doneNode Status Indicators
Ready Status
| Status | Meaning | Action |
Ready | Node healthy and schedulable | Normal |
NotReady | Node unhealthy | Check node conditions |
SchedulingDisabled | Node cordoned | May need uncordon |
Check node conditions:
kubectl get nodes -o json | jq '.items[].status.conditions'Node Taints
Taints prevent pod scheduling:
kubectl get nodes -o custom-columns='NAME:.metadata.name,TAINTS:.spec.taints[*].key'Common taints:
node.kubernetes.io/not-readynode.kubernetes.io/unreachablenode.kubernetes.io/disk-pressurenode.kubernetes.io/memory-pressurenode.kubernetes.io/pid-pressure
Common Issues
Issue 1: Node at Capacity
Symptom: Available resources near zero, new pods stuck pending
Check:
kubectl describe node <node-name> | grep -A 5 "Allocated resources"Solution:
- Scale cluster (add nodes)
- Drain and consolidate workloads
- Review resource requests (may be over-provisioned)
Issue 2: GPU Not Allocatable
Symptom: Node has GPUs but not showing as allocatable
Check:
kubectl get node <node> -o jsonpath='{.status.allocatable.nvidia\.com/gpu}'Solution:
- Verify GPU device plugin is running
- Check nvidia-driver installation
- Review node labels
Issue 3: Memory Pressure
Symptom: Node has node.kubernetes.io/memory-pressure taint
Check:
kubectl describe node <node-name> | grep -A 3 "MemoryPressure"Solution:
- Evict or reschedule memory-intensive pods
- Increase node memory
- Adjust pod memory limits
Issue 4: Disk Pressure
Symptom: Node has node.kubernetes.io/disk-pressure taint
Check:
kubectl describe node <node-name> | grep -A 3 "DiskPressure"Solution:
- Clean up unused images/containers
- Increase node disk capacity
- Review log rotation policies
Output Formats
Table Format (default)
Human-readable table:
NAME CPU_ALLOC MEM_ALLOC GPU_ALLOC CPU_AVAIL MEM_AVAIL
node-1 32 64Gi 4 8 16Gi
node-2 16 32Gi 0 2 4GiWide Format
Additional columns:
NAME CPU MEM GPU CPU_AVAIL MEM_AVAIL STATUS AGEJSON Format
Machine-parseable output:
{
"nodes": [
{
"name": "node-1",
"allocatable": {
"cpu": "32",
"memory": "64Gi",
"nvidia.com/gpu": "4"
},
"available": {
"cpu": "8",
"memory": "16Gi"
}
}
]
}Environment Variables
| Variable | Default | Description |
NODE_LABEL | "" | Default label selector for nodes |
Integration with Other Skills
Combine with other skills for comprehensive analysis:
# 1. Check node resources
bash skills/core/volcano-node-resources/scripts/get-node-resources.sh
# 2. Check queue resources
bash skills/core/volcano-queue-diagnose/scripts/diagnose-queue.sh
# 3. If insufficient resources, refer to volcano-resource-insufficient skill guide
# (This is a documentation skill - follow the diagnostic steps in the SKILL.md)See Also
volcano-resource-insufficient- Resource shortage diagnosisvolcano-diagnose-pod- Pod-specific scheduling issuesvolcano-gang-scheduling- Gang constraint analysisvolcano-queue-diagnose- Queue resource distribution
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

