cluster-operations
Operate SkyPilot interactive clusters safely with CLI launch, exec, status, logs, queues, lifecycle cleanup, and troubleshooting.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- cluster-operations
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Operate SkyPilot interactive clusters safely with CLI launch, exec, status, logs, queues, lifecycle cleanup, and troubleshooting.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/cli-workflows.md8.4 KB
- 参考文档references/troubleshooting.md7.3 KB
- 脚本scripts/cluster_command_builder.py20.2 KB
03 SKILL.md 正文
Cluster Operations
Use this sub-skill when the user wants to operate interactive SkyPilot clusters or cluster-local jobs through the CLI: launch, reuse, execute commands, inspect status, tail logs, view queues, cancel cluster jobs, configure autostop, stop/start, down, dry-run, or estimate cluster cost.
Do not use this sub-skill for deep task YAML schema design, managed jobs, SkyServe services, provider credential setup, Python SDK equivalents, or contributor test workflows. Route those to the sibling sub-skills instead.
Read First
- For command sequences and safe defaults, read references/cli-workflows.md.
- For failure triage, read references/troubleshooting.md.
- For safe command suggestions, use scripts/cluster_command_builder.py.
- For task YAML fields and validation, route to the
task-yamlsub-skill. - For cloud credentials, Kubernetes, Slurm, SSH, storage, and GPU catalog issues, route to the
infrastructure-storagesub-skill. - For managed jobs with controller recovery, route to the
managed-jobssub-skill. - For SDK/API-server equivalents, route to the
sdk-api-serversub-skill.
Operating Principles
- Prefer resource requirements over manual infrastructure pins: specify
--gpus,--cpus,--memory,--disk-size,--ports, and--use-spotwhen relevant, then let SkyPilot choose cloud, region, zone, and instance type unless the user explicitly needs a provider or cluster backend. - Use
sky launch --dryrunbefore any new or expensive cluster launch; it exercises parsing and optimizer planning without launching cloud resources. - Name reusable clusters with
sky launch -c <cluster> ...; a matching cluster fromsky statusis reused instead of creating a new one. - Use
sky exec <cluster> ...for iterative run-command changes on an existing cluster. It syncsworkdirwhen provided, but skips provisioning, setup commands, and file-mount syncing; rerunsky launch -c <cluster> ...when setup, resources, image, file mounts, or cluster shape changed. - Use machine-readable output for automation:
sky status -o json,sky queue -o json, andsky cost-report -o json. Usesky logs --statusor bounded--tailfor log checks rather than scraping tables. - Always include a cleanup policy for interactive clusters:
--idle-minutes-to-autostop,sky autostop,sky stop, orsky downdepending on whether the cluster should be restartable.
Command Router
- New interactive cluster:
sky launch --dryrun -c <cluster> <task.yaml>first, then launch with autostop once the user approves cost and provider implications. - Run more work on an existing cluster:
sky exec <cluster> <task.yaml>orsky exec <cluster> --workdir . <command>. - Inspect cluster health:
sky status --refresh -o json <cluster>when cloud state may have changed, otherwisesky status -o json <cluster>. - Inspect cluster jobs:
sky queue <cluster> -o json,sky logs <cluster> <job-id> --tail 200 --no-follow, andsky cancel <cluster> <job-id>for cluster-local jobs. - Preserve but stop billing for compute:
sky stop <cluster>; restart later withsky start <cluster>. - Delete cloud resources and attached disks:
sky down <cluster>only after confirming the user no longer needs cluster disk state.
Safety Checklist
Before suggesting commands that mutate cloud resources, confirm:
- The cluster name is correct and not a managed-jobs or SkyServe controller.
- The user understands whether
stopis restartable anddownis destructive. - Expensive launches are dry-run first unless the user explicitly asks to launch.
- Manual
--infra, region, zone, or--instance-typepins are intentional, not accidental optimizer bypasses. --all,--all-users,--purge,--yes, and autodown are justified and scoped.- Secrets are passed with
--secretor secret files, not embedded in public logs or command transcripts.
Useful Helper
Use the bundled command builder for no-launch command planning:
python sub-skills/cluster-operations/scripts/cluster_command_builder.py debug-cycle \
--cluster mycluster \
--task-yaml task.yaml \
--gpus A100:1 \
--idle-minutes 30
The helper prints commands by default. It includes dry-run launch suggestions unless --ready-to-launch is provided, and it refuses to execute launch or destructive commands unless explicit execution and safety flags are set.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).