gcp-spot-vm-strategy
Design an interruption-resilient GCP Spot VM strategy for eligible workloads with 60-91% savings
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/anmolnagpal/spot-vm-strategyWhat This Skill Does
The gcp-spot-vm-strategy skill acts as your expert GCP cloud architect, specializing in optimizing Google Compute Engine costs through the strategic implementation of Spot VMs. Spot VMs provide significant savings (up to 91%) compared to on-demand pricing, but they come with the trade-off of potential interruptions. This skill analyzes your existing infrastructure—including GKE clusters, Compute Engine instances, and billing data—to design a robust, interruption-resilient architecture. It helps classify your workloads as fault-tolerant or stateful, recommends specific machine types and regions with lower historical preemption rates, and provides the exact gcloud configurations required for Managed Instance Groups (MIGs) and auto-scaling policies.
Installation
You can install this skill directly via the OpenClaw CLI using the following command:
clawhub install openclaw/skills/skills/anmolnagpal/spot-vm-strategy
Use Cases
- Cost Reduction: Drastically lower your monthly GCP bill by transitioning stateless workloads (e.g., web servers, microservices, batch processing) to Spot instances.
- Architectural Resilience: Design autohealing and auto-restart policies for MIGs to ensure that when a Spot VM is reclaimed, your cluster recovers automatically.
- Data Pipeline Optimization: Configure Dataproc and Dataflow worker pools to use Spot instances, significantly reducing the cost of high-compute ETL jobs.
- Hybrid Strategy Planning: Determine the optimal balance between Spot and On-Demand instances, typically recommending a 60/40 split for maximum reliability while capturing savings.
Example Prompts
- "I have a Kubernetes cluster running web services. Here is my output from
gcloud container node-pools list. Can you suggest how to move these to a Spot-heavy node pool configuration?" - "My compute costs have spiked. Here is my GCP billing export data for the last 30 days. Which workloads are the best candidates for Spot VM migration?"
- "Design a fault-tolerant Managed Instance Group configuration that uses Spot VMs for my stateless web application, including the necessary shutdown scripts to handle graceful draining."
Tips & Limitations
- No Secret Access: This skill is strictly analytical and instruction-only. It does not connect to your GCP console. Always sanitize your data by removing any sensitive project IDs, emails, or PII before sharing output.
- Terminology: Note that GCP Spot VMs are distinct from older 'Preemptible' VMs. This skill exclusively uses the modern Spot VM terminology and architecture.
- Workload Suitability: This skill is best suited for fault-tolerant and stateless workloads. Avoid using this for stateful databases or critical single-instance production services unless you have robust replication strategies in place.
- Data Quality: The quality of the recommendation is directly proportional to the detail provided in your input. Always aim to provide the JSON output from
gcloudcommands for the most accurate analysis.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-anmolnagpal-spot-vm-strategy": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Related Skills
aws-compliance-analyzer
Map AWS environment against CIS, SOC 2, HIPAA, or PCI-DSS controls with prioritized remediation
aws-terraform-security-reviewer
Review Terraform plans and HCL files for AWS security misconfigurations before deployment
azure-storage-exposure-auditor
Identify publicly accessible Azure Storage accounts and misconfigured blob containers
aws-tagging-auditor
Audit AWS resource tagging compliance and identify unallocatable spend for FinOps teams
gcp-bigquery-optimizer
Analyze BigQuery query patterns and storage to dramatically reduce the