Script icon
Docker icon
If icon
SlackIncomingWebhook icon
Log icon
Return icon
Schedule icon

Volcano Batch PodGroup minMember Scheduling Stall Sentinel

Audits Volcano batch scheduler metrics to detect PodGroup gang scheduling stalls, minMember timeout errors, and queue allocation spikes.

Categories
CloudInfrastructure

Automates continuous health and gang scheduling surveillance for Volcano batch computing schedulers and AI/ML distributed training jobs.

How it works

  1. A schedule trigger executes the Volcano batch scheduling audit workflow every 15 minutes.
  2. The Python task queries the Volcano scheduler Prometheus metrics endpoint on port 8080.
  3. The script extracts unschedulable PodGroup counts, minMember waiting timeout totals, and end-to-end scheduling latency.
  4. An evaluation gate determines whether gang scheduling stalls or minMember reservation timeouts exceed limits.
  5. When batch scheduling degradation is detected, a high-priority Slack incident alert is dispatched to the Platform team.
  6. When distributed PodGroups bind cleanly to GPU and CPU worker nodes, nominal telemetry is logged.
  7. A structured JSON audit manifest is emitted for high-performance computing governance and workload scheduling archives.

Architecture diagram

graph TD
    Trigger[Schedule Trigger: 15m] --> ScanMetrics[Python Script: Scrape Volcano Metrics]
    ScanMetrics --> EvalBreach{Unschedulable > Threshold OR minMember Timeout?}
    EvalBreach -- Yes --> SlackAlert[Slack: High-Urgency Batch Alert]
    EvalBreach -- No --> LogNominal[Log: Nominal Volcano State]
    SlackAlert --> EmitManifest[Debug Return: Batch Audit Manifest]
    LogNominal --> EmitManifest

Architecture components

  • Trigger: Automated schedule polling at 15-minute recurring intervals.
  • Script Task: Scrapes Volcano Prometheus metrics endpoints using Docker container runners.
  • Decision Gate: Evaluates whether unschedulable PodGroup counters or minMember timeouts breach limits.
  • Notification Task: Dispatches structured Slack alerts with queue name and scheduling latency metrics.
  • Audit Manifest: Emits JSON execution payloads containing batch scheduling health and timestamps.

Key capabilities

  • Continuous surveillance of Volcano PodGroups, Queue capacities, and gang scheduling reservation states.
  • Early warning detection for distributed AI/ML training job deadlocks caused by partial node allocation.
  • Automated tracking of end-to-end batch scheduling latency spikes during large-scale queue submissions.
  • Zero host dependency execution via isolated containerized Python runners.

What you get

  • Real-time visibility into AI/ML batch queue health and PodGroup gang scheduling progress.
  • Proactive alerts preventing GPU resource underutilization and stuck distributed PyTorch/TensorFlow jobs.
  • Standardized audit manifests containing exact CPU allocations, timeout counts, and execution timestamps.
  • Zero-overhead deployment compatible with Volcano Queue hierarchy and Task-Topology plugins.

Who it's for

  • AI/ML platform engineers operating distributed deep learning clusters on Kubernetes.
  • High-performance computing (HPC) system administrators managing multi-tenant batch workloads.
  • Site Reliability Engineers ensuring timely execution of large-scale analytics data pipelines.
  • Cloud infrastructure leads optimizing expensive GPU and TPU accelerator cluster utilization.

Why orchestrate this with Kestra

  • Serverless Docker Isolation: Executes telemetry scraping in ephemeral Docker environments without persistent workers.
  • Centralized Secrets Governance: Protects sensitive Slack webhooks using encrypted namespace secrets.
  • Declarative YAML Workflows: Manages batch scheduling surveillance as versioned code in Git repositories.
  • Comprehensive Audit History: Preserves historical batch scheduling metrics in searchable Kestra execution logs.

Use cases

  • Distributed Training Gang Deadlock: Alerts engineers when a distributed job cannot secure its required minMember count.
  • Queue Starvation Identification: Pinpoints low-priority queue starvation when higher-priority queues monopolize GPUs.
  • Node Reclamation Lag Surveillance: Measures latency between node release and subsequent PodGroup binding.

Inputs

Name Type Default Description
volcano_metrics_url STRING http://volcano-scheduler.volcano-system.svc.cluster.local:8080 Internal HTTP URL exposing Prometheus metrics for Volcano.
queue_name STRING ml-training-queue Target Volcano batch queue monitored for PodGroup progress.
max_unschedulable_podgroups_threshold INT 2 Maximum allowable unschedulable PodGroups before alerting.
max_scheduling_latency_ms INT 1500 Maximum allowable batch scheduling latency in milliseconds.
alert_on_minmember_timeout BOOL true Toggle whether minMember gang timeout triggers an incident alert.

Expected outputs

  • {{ outputs.scan_volcano_telemetry.vars.unschedulable_podgroups }}: Count of PodGroups failing gang scheduling admission.
  • {{ outputs.scan_volcano_telemetry.vars.minmember_timeouts }}: Total count of minMember gang reservation timeouts.
  • {{ outputs.scan_volcano_telemetry.vars.scheduling_latency_ms }}: Maximum observed batch scheduling latency.
  • {{ outputs.scan_volcano_telemetry.vars.is_alerting }}: Boolean flag indicating if batch scheduling bounds are breached.
  • {{ outputs.scan_volcano_telemetry.vars.audit_timestamp }}: ISO-8601 UTC timestamp of the Volcano audit run.

Prerequisites

  • Volcano batch scheduler deployed with Prometheus metrics enabled on port 8080.
  • Network connectivity from the Kestra worker to the Volcano scheduler metrics service.
  • Configured Slack incoming webhook URL with permissions to post in batch compute alert channels.

Secrets

  • SLACK_WEBHOOK_URL: Secure webhook URL for routing batch compute alerts to the Platform Slack channel.

Quick start

  1. Verify that Volcano batch scheduler exposes Prometheus metrics on HTTP port 8080.
  2. Add the SLACK_WEBHOOK_URL secret within your Kestra namespace settings.
  3. Specify your batch queue name in queue_name.
  4. Run a manual flow execution via the Kestra UI to validate metric ingestion.
  5. Enable the periodic_volcano_audit schedule trigger to establish automated monitoring.

Common pitfalls and troubleshooting

  • Gang Scheduling Timeout Configuration: Ensure minMember timeout values in PodGroup specs are aligned with cluster size.
  • Resource Overcommit in Queues: Stalls frequently occur when the queue capability exceeds node physical capacity.
  • Plugin Order in Scheduler Config: Verify that the gang and conformance plugins are active in volcano-scheduler.conf.
  • Toleration Mismatches: PodGroups targeting tainted GPU nodes will stall if pods omit matching tolerations.

How to extend

  • Automated Queue Descheduling: Preempt lower-priority jobs automatically when high-urgency training stalls.
  • PagerDuty Escalation: Escalate to on-call MLOps engineers if minMember timeouts exceed 5 across 2 audit cycles.
  • Multi-Queue Sweep: Expand script logic to iterate over all active Volcano queues in the cluster.

Links

See How

New to Kestra?

Use blueprints to kickstart your first workflows.