supabase-load-scale
实施Supabase负载测试、自动扩展和容量规划策略。在运行性能测试、配置水平扩展或为Supabase集成规划容量时使用。通过如“supabase负载测试”、“supabase扩展”、“supabase性能测试”、“supabase容量”、“supabase k6”、“supabase基准”等短语触发。
📖 中文导读:实施Supabase负载测试、自动扩展和容量规划策略。在运行性能测试、配置水平扩展或为Supabase集成规划容量时使用。通过如“supabase负载测试”、“supabase扩展”、“supabase性能测试”、“supabase容量”、“supabase k6”、“supabase基准”等短语触发。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: supabase-load-scale description: | Implement Supabase load testing, auto-scaling, and capacity planning strategies. Use when running performance tests, configuring horizontal scaling, or planning capacity for Supabase integrations. Trigger with phrases like "supabase load test", "supabase scale", "supabase performance test", "supabase capacity", "supabase k6", "supabase benchmark". allowed-tools: Read, Write, Edit, Bash(k6:), Bash(kubectl:) version: 1.0.0 license: MIT author: Jeremy Longshore jeremy@intentsolutions.io
Supabase Load Scale
Prerequisites
- k6 load testing tool installed
- Kubernetes cluster with HPA configured
- Prometheus for metrics collection
- Test environment API keys
Instructions
Step 1: Create Load Test Script
Write k6 test script with appropriate thresholds.
Step 2: Configure Auto-Scaling
Set up HPA with CPU and custom metrics.
Step 3: Run Load Test
Execute test and collect metrics.
Step 4: Analyze and Document
Record results in benchmark template.
Output
- Load test script created
- HPA configured
- Benchmark results documented
- Capacity recommendations defined
Error Handling
See {baseDir}/references/errors.md for comprehensive error handling.
Examples
See {baseDir}/references/examples.md for detailed examples.