agentleFS
scitixscitix/siclaw/skills/core/volcano-node-resources/SKILL.md

volcano-node-resources

Skill236 starsChanged 6 months agoApache-2.0View on GitHub

Query cluster node resources for Volcano scheduling. Check allocatable CPU, memory, GPU, and current usage.

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
  1. Very specific:

    When --show-usage is enabled and metrics-server is available:

    line 87
  2. Distinctive:

    Look for nodes with positive Available CPU/Memory.

    line 128
  3. Distinctive:

    If pods require specific labels:

    line 155
  4. Distinctive:

    Verify GPU device plugin is running

    line 236

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

ParameterRequiredDescription
--node NODEnoQuery specific node only
--label LABELnoFilter nodes by label (e.g., gpu=true)
--show-usagenoShow current resource usage (requires metrics-server)
--show-podsnoShow pods running on each node
--format FORMATnoOutput format: table (default), json, wide

Examples

Get overview of all nodes:

bash skills/core/volcano-node-resources/scripts/get-node-resources.sh

Check specific node:

bash skills/core/volcano-node-resources/scripts/get-node-resources.sh --node worker-1

Check GPU nodes:

bash skills/core/volcano-node-resources/scripts/get-node-resources.sh --label nvidia.com/gpu.present=true

Show resource usage:

bash skills/core/volcano-node-resources/scripts/get-node-resources.sh --show-usage

Show with pod information:

bash skills/core/volcano-node-resources/scripts/get-node-resources.sh --show-pods

JSON output for parsing:

bash skills/core/volcano-node-resources/scripts/get-node-resources.sh --format json

Understanding Node Resources

Resource Types

ResourceDescriptionScheduling Impact
cpuCPU cores (millicores)Primary scheduling constraint
memoryRAM (bytes)Primary scheduling constraint
nvidia.com/gpuGPU devicesHardware-specific scheduling
podsMax pods per nodeDensity limit
ephemeral-storageDisk spaceSecondary 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 >= minMember

Example:

  • 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.sh

Look 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-usage

Check:

  • 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-usage

Fragmentation 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"
done

Node Status Indicators

Ready Status

StatusMeaningAction
ReadyNode healthy and schedulableNormal
NotReadyNode unhealthyCheck node conditions
SchedulingDisabledNode cordonedMay 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-ready
  • node.kubernetes.io/unreachable
  • node.kubernetes.io/disk-pressure
  • node.kubernetes.io/memory-pressure
  • node.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           4Gi

Wide Format

Additional columns:

NAME    CPU    MEM    GPU    CPU_AVAIL    MEM_AVAIL    STATUS    AGE

JSON Format

Machine-parseable output:

{
  "nodes": [
    {
      "name": "node-1",
      "allocatable": {
        "cpu": "32",
        "memory": "64Gi",
        "nvidia.com/gpu": "4"
      },
      "available": {
        "cpu": "8",
        "memory": "16Gi"
      }
    }
  ]
}

Environment Variables

VariableDefaultDescription
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 diagnosis
  • volcano-diagnose-pod - Pod-specific scheduling issues
  • volcano-gang-scheduling - Gang constraint analysis
  • volcano-queue-diagnose - Queue resource distribution

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.