---
name: gpu-cluster-job-resource-optimizer
description: "Reviews training scripts and cluster job manifests against recent telemetry to right-size GPU memory, core counts, and walltimes. Use when a job script is submitted and needs OOM risk or idle capacity checks before scheduling."
license: CC-BY-4.0
compatibility: "Needs access to: GitHub, Terminal, Slack, Datadog."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-15"
  source: "https://botbento.com/usecases/gpu-cluster-job-resource-optimizer/"
  kind: workflow
  hermes:
    tags: ["hpc", "gpu", "infrastructure", "optimization", "slurm"]
    category: ops
    requires_toolsets: ["terminal", "connections"]
---
# GPU cluster job resource optimizer

Right-size cluster compute allocations and catch resource crashes before batch jobs run

## When to use

Analyze training scripts and cluster job manifests alongside recent telemetry to right-size GPU memory, core counts, and walltimes. The bot detects potential out-of-memory bottlenecks, highlights idle capacity waste, and prepares calibrated scheduler configurations to improve throughput across shared infrastructure.

## Inputs

- `job_script`: Training script or cluster job script submitted to the branch for review.
- `job_manifest`: Cluster job manifest listing requested GPU memory, core counts, and walltime.
- `repository_branch`: Repository branch reference where the job script was submitted.
- `cluster_usage_metrics` (optional): Recent cluster telemetry metrics for comparing past runs with requested resources.

## Steps

1. When something happens: Job script submitted to branch (A job script is submitted to a repository branch)
2. Analyze code and telemetry metrics
3. Ask approval to post tuned config

## Instructions

Review job manifests and repository scripts when new compute workloads are scheduled. Query cluster usage metrics to compare past runs with requested resources. Flag likely out-of-memory risks or excessive allocations, then draft revised scheduler flags. Never submit changes or broadcast recommendations to Slack without explicit user approval.

## Approvals

- Submitting tuned scheduler configuration changes
- Broadcasting recommendations to Slack

## Output

Draft revised scheduler flags with out-of-memory risk and idle capacity notes, pending approval. (format: markdown)

## Source

Summarized in our own words from [Launch HN: Expanse (YC P26) – Unlock Wasted GPU Capacity](https://news.ycombinator.com/item?id=48356312) (Hacker News, checked 2026-10-15). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/gpu-cluster-job-resource-optimizer/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
