协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
configuring-auto-scaling-policies【开发与工程】Configure use when you need to work with auto-scaling. This skill provides auto-scaling configuration with comprehensive guidance and automation. Trigger with phrases like "configure auto-scaling", "set up elastic scaling", or "implement scaling".
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: configuring-auto-scaling-policies description: 'Configure use when you need to work with auto-scaling.
This skill provides auto-scaling configuration with comprehensive guidance and automation.
Trigger with phrases like "configure auto-scaling", "set up elastic scaling",
or "implement scaling".
' allowed-tools: Read, Write, Edit, Grep, Glob, Bash(cmd:*) version: 1.25.0 author: Jeremy Longshore jeremy@intentsolutions.io license: MIT tags:
Configure auto-scaling policies for cloud workloads across AWS Auto Scaling Groups, GCP Managed Instance Groups, Azure VMSS, and Kubernetes Horizontal Pod Autoscaler (HPA). Generate scaling configurations based on CPU, memory, request rate, or custom metrics with appropriate thresholds, cooldown periods, and scale-in protection.
aws, gcloud, or az)kubectl configured with cluster access and metrics-server deployed| Error | Cause | Solution |
|---|---|---|
No scaling activity despite high load | Metric not reaching threshold or cooldown active | Verify metric source in CloudWatch/Stackdriver; check cooldown timer with describe-scaling-activities |
Scaling too aggressively (flapping) | Cooldown too short or threshold too sensitive | Increase cooldown period and widen the gap between scale-out and scale-in thresholds |
Max capacity reached | Instance/pod limit hit during traffic spike | Raise max_size or implement request queuing as a backpressure mechanism |
HPA unable to compute replica count | Metrics server not deployed or metric unavailable | Install metrics-server and verify kubectl top pods returns data |
FailedScaleUp: insufficient capacity | Cloud provider out of capacity in selected AZ/region | Add multiple AZs to the ASG or use mixed instance types with allocation strategy |