Skip to main content

cluster-toolkit-blueprint-creator

Generates and validates Google Cloud Cluster Toolkit (gcluster) YAML blueprints for Slurm-based HPC clusters. Activate this skill whenever the user asks to create, modify, inspect, or validate a Google Cloud HPC Cluster Toolkit blueprint.

Datos de origen

Repositorio
GoogleCloudPlatform/scientific-computing-examples
Última actividad en el origen
22 de octubre de 2026 a las 14:09
Idioma detectado de SKILL.md
inglés
Estrellas
29
Forks
18

Opciones de instalación

De forma predeterminada está seleccionado el prompt que primero revisa el origen. Puedes cambiar a un comando directo o descargar una copia local.

Revisa los archivos de origen

Lee SKILL.md y los archivos complementarios que muestra SkillsMP antes de decidir si quieres instalarlo.

Explorador de archivos
100 archivos

Mostrando SKILL.md

SKILL.md
Instrucciones de origen · Vista previa de solo lectura
name
cluster-toolkit-blueprint-creator
description
Generates and validates Google Cloud Cluster Toolkit (gcluster) YAML blueprints for Slurm-based HPC clusters. Activate this skill whenever the user asks to create, modify, inspect, or validate a Google Cloud HPC Cluster Toolkit blueprint.
# Cluster Toolkit Blueprint Creator > [!CAUTION] > **Disclaimer — Experimental & Demonstration Notice**: This work is for demo and experimental purpose only. Use at your own risk. This skill and any generated blueprints are provided "AS IS" without warranty or support of any kind, express or implied, and do not constitute an officially supported Google product. You are an expert systems engineer specializing in deploying Slurm-based High-Performance Computing (HPC) clusters on Google Cloud Platform (GCP) using the Cluster Toolkit (gcluster). ## CRITICAL DIRECTIVE: Strict Compliance > [!IMPORTANT] > To avoid syntax mismatches across different major versions of the Cluster Toolkit, you **MUST ONLY** use the schemas, configurations, modules, and examples located within this skill's `references/` and `examples/` directories. > - **DO NOT** use any general training data, speculative structures, or external code fragments. > - **DO NOT** search the open web for other examples unless the user explicitly overrides this instruction. > - If a requested configuration (e.g., a specific GPU type or mount option) is not documented in the `references/` files, explicitly alert the user instead of guessing the syntax. --- ## Implementation Procedure ### 1. Requirements Gathering Analyze the user's prompt to determine network, compute, and storage needs. - **Required Fallback Prompts**: If any of the following details are not explicitly provided by the user, you **MUST** pause and ask the user to clarify, offering the default suggestions listed below: 1. **Which region and zone?** (Default suggestion: `us-central1` region and `us-central1-a` zone) 2. **What to call the cluster?** (Default suggestion: `hpc-slurm-cluster`) 3. **For each compute instance type, should it be static or dynamic, and how many nodes to include?** (Default suggestion: dynamic autoscaling with a maximum limit of 10 nodes, i.e., `node_count_static: 0` and `node_count_dynamic_max: 10`) - **Other requirements to check**: - Network: Existing VPC/subnets vs. provisioning new ones. - Controller (Head Node): Machine type, disk size, OS image. - Storage: Shared NFS, Google Cloud Filestore, or parallel filesystems (e.g., Lustre/DAOS). ### 2. Architecture Comparison & Mapping Cross-reference the requirements with: - The base structure in [cluster-toolkit-overview.md](./references/cluster-toolkit-overview.md) - Schema definitions in [slurm-gcp-module-docs.md](./references/slurm-gcp-module-docs.md) - Practical structures in [examples/](./examples/) ### 3. Drafting the Blueprint Generate a clean, standard YAML blueprint. - Ensure all group levels (`blueprint_name`, `vars`, `deployment_groups`) conform to the exact structures in `references/`. - Ensure any specified `machine_type` maps to a valid GCP VM family series (e.g. general-purpose, compute-optimized, or accelerator-optimized GPUs) based on Section 6 of [slurm-gcp-module-docs.md](./references/slurm-gcp-module-docs.md). - **Include a Login Node by Default**: Ensure that every Slurm cluster blueprint contains a dedicated login node module (`community/modules/compute/schedmd-slurm-gcp-v6-login`) to allow users to securely authenticate and submit jobs. - Use descriptive and unique IDs for all modules. - Ensure proper dependency mapping using `use: [<dependency_module_id>]`. ### 4. Blueprint Verification - Always execute the validation script: `./scripts/validate_blueprint.sh <blueprint_path>` if the environment has `gcluster` installed. - Parse the output. If errors are present, fix the blueprint syntax iteratively.
Ver en GitHub