agentleFS
scitixscitix/siclaw/skills/core/volcano-scheduler-logs/SKILL.md

volcano-scheduler-logs

Skill235 starsChanged 6 months agoApache-2.0View on GitHub

Retrieve and analyze Volcano scheduler logs. Filter by keyword, time range, or pod name to debug scheduling decisions.

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 7 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Search for error messages:

    line 38
  2. Distinctive:

    Check logs from previous scheduler instance (after crash/restart):

    line 58
  3. Distinctive:

    Check Gang plugin behavior:

    line 168
  4. Distinctive:

    Check proportion and reclaim decisions:

    line 180
  5. Distinctive:

    Check for scheduling delays:

    line 192
  6. Distinctive:

    Multi-scheduler: If running multiple schedulers, logs will be interleaved

    line 224
  7. Distinctive:

    Log level: Default log level may not show all debug information

    line 225
  8. Very specific:

    Combine keywords: Search for error\|Failed\|failed to catch all failures

    line 231
  9. Very specific:

    Check pod context: Always include --pod when investigating specific pods

    line 232

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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 Scheduler Logs

Retrieve and analyze Volcano scheduler logs to understand scheduling decisions, failures, and performance issues.

Scope: This skill is for diagnosis only. It retrieves logs for analysis but does not modify any cluster state.

Usage

bash skills/core/volcano-scheduler-logs/scripts/get-scheduler-logs.sh [options]

Parameters

ParameterRequiredDescription
--keyword KEYWORDnoFilter logs by keyword (case-insensitive)
--pod PODnoFilter logs related to specific pod name
--since TIMEnoShow logs newer than relative time (e.g., 10m, 1h)
--lines NnoNumber of lines to show (default: 100)
--follownoStream logs in real-time (Ctrl+C to stop)
--previousnoShow logs from previous container instance (after restart)

Examples

Get recent scheduler logs:

bash skills/core/volcano-scheduler-logs/scripts/get-scheduler-logs.sh

Search for error messages:

bash skills/core/volcano-scheduler-logs/scripts/get-scheduler-logs.sh --keyword error

Get logs for a specific pod:

bash skills/core/volcano-scheduler-logs/scripts/get-scheduler-logs.sh --pod my-job-0

Get last 500 lines from the past hour:

bash skills/core/volcano-scheduler-logs/scripts/get-scheduler-logs.sh --since 1h --lines 500

Stream logs for gang scheduling issues:

bash skills/core/volcano-scheduler-logs/scripts/get-scheduler-logs.sh --keyword gang --follow

Check logs from previous scheduler instance (after crash/restart):

bash skills/core/volcano-scheduler-logs/scripts/get-scheduler-logs.sh --previous --lines 200

Common Keywords for Filtering

KeywordUse Case
errorFind error messages and failures
FailedSchedulingScheduling failures
allocateResource allocation attempts
gangGang scheduling decisions
minMemberMinMember constraint issues
preemptPreemption events
reclaimResource reclamation
enqueueQueue admission decisions
bindPod binding attempts
queueQueue-related decisions
proportionProportion plugin decisions
priorityPriority-related decisions

Understanding Scheduler Logs

Log Format

Volcano scheduler logs typically follow this format:

I0102 15:04:05.123456       1 scheduler.go:123] Starting scheduling session
I0102 15:04:05.234567       1 allocate.go:456] Try to allocate resources for Job <namespace>/<job-name>
E0102 15:04:05.345678       1 gang.go:789] Failed to schedule pod <pod-name>: minMember not satisfied

Log levels:

  • I - Info: Normal operation information
  • W - Warning: Unusual but non-fatal conditions
  • E - Error: Failures and errors
  • F - Fatal: Critical errors causing shutdown

Common Log Patterns

Session Start

Starting scheduling session
Starting scheduling loop
  • Indicates scheduler is processing a new batch of pending pods

Enqueue Decisions

Try to enqueue pod group
PodGroup <name> is enqueued
PodGroup <name> is pending
  • Shows whether pod groups are admitted to the queue

Allocation Attempts

Try to allocate resources for Job
Try to allocate for task
  • Shows scheduling attempts for specific jobs/pods

Gang Scheduling

minMember not satisfied
gang member not ready
Waiting for gang members
  • Indicates Gang constraint preventing scheduling

Resource Shortage

Insufficient cpu
Insufficient memory
0 nodes are available
  • Indicates resource constraint preventing scheduling

Preemption

Preempting pods
Found victim pods
  • Shows preemption decisions for high-priority workloads

Reclaim

Try to reclaim resources
Reclaiming resources from queue
  • Shows resource reclamation between queues

Diagnostic Use Cases

Case 1: Pod Stuck in Pending

Find relevant scheduler decisions:

bash skills/core/volcano-scheduler-logs/scripts/get-scheduler-logs.sh --pod <pod-name> --since 30m

Look for:

  • FailedScheduling events
  • minMember not satisfied
  • Insufficient resource messages
  • enqueue decisions (is the PodGroup being admitted?)

Case 2: Gang Scheduling Issues

Check Gang plugin behavior:

bash skills/core/volcano-scheduler-logs/scripts/get-scheduler-logs.sh --keyword gang --since 1h

Look for:

  • minMember related messages
  • Gang constraint validation
  • Comparison of running vs required members

Case 3: Queue Resource Issues

Check proportion and reclaim decisions:

bash skills/core/volcano-scheduler-logs/scripts/get-scheduler-logs.sh --keyword "reclaim\|proportion" --since 30m

Look for:

  • Queue resource calculations
  • Reclaim triggers
  • Over-commit handling

Case 4: Scheduler Performance

Check for scheduling delays:

bash skills/core/volcano-scheduler-logs/scripts/get-scheduler-logs.sh --lines 500 | grep -E "(Starting|Finished) scheduling"

Look for:

  • Long gaps between "Starting" and "Finished"
  • High frequency of scheduling loops
  • Errors causing retries

Case 5: Preemption Analysis

Check preemption decisions:

bash skills/core/volcano-scheduler-logs/scripts/get-scheduler-logs.sh --keyword preempt --since 1h

Look for:

  • Which pods are being preempted
  • Priority comparisons
  • Preemption success/failure

Environment Variables

VariableDefaultDescription
VOLCANO_SCHEDULER_NSvolcano-systemScheduler namespace
VOLCANO_SCHEDULER_LABELapp=volcano-schedulerLabel selector for scheduler pods

Limitations

  1. Log retention: Logs may be rotated based on cluster configuration
  2. Multi-scheduler: If running multiple schedulers, logs will be interleaved
  3. Log level: Default log level may not show all debug information
  4. Previous logs: --previous only works if the container has restarted

Tips for Effective Log Analysis

  1. Use time ranges: Narrow down with --since to focus on recent issues
  2. Combine keywords: Search for error\|Failed\|failed to catch all failures
  3. Check pod context: Always include --pod when investigating specific pods
  4. Look for patterns: Repeating errors may indicate systemic issues
  5. Correlate with events: Compare with kubectl get events timestamps

See Also

  • volcano-diagnose-pod - Diagnose individual pod issues
  • volcano-gang-scheduling - Gang scheduling specific diagnosis
  • volcano-queue-diagnose - Queue resource analysis
  • volcano-resource-insufficient - Resource shortage diagnosis

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.