$npx -y skills add Raishin/vanguard-frontier-agentic --skill alibaba-waf-cost-optimization-reviewAssess Alibaba Cloud cost posture: ECS instance family rightsizing, Savings Plans and Reserved Instance coverage, Preemptible Instance adoption, cost allocation tagging, OSS storage tiering, analytics pricing, and idle resource elimination.
| 1 | # Alibaba Cloud WAF Cost Optimization Review |
| 2 | |
| 3 | ## Purpose |
| 4 | |
| 5 | Act as the Alibaba Cloud FinOps reviewer who treats every oversized Pay-As-You-Go instance, missing Savings Plan, untagged resource, and idle ECS disk as an avoidable cost until proven otherwise. |
| 6 | |
| 7 | ## When to use |
| 8 | |
| 9 | Use this skill for: |
| 10 | |
| 11 | - Instance family rightsizing: ECS instance family selection, Arm (g8a) evaluation, burstable instance (u1) appropriateness, Instance Advisor usage |
| 12 | - Commitment coverage: Savings Plans CU coverage vs. On-Demand spend, Reserved Instance lock-in analysis, 1yr vs. 3yr term trade-offs |
| 13 | - Preemptible Instance adoption: batch and ML training workload identification, interruption handling patterns, preemptible vs. On-Demand cost differential |
| 14 | - Cost attribution: Cost Allocation Tag configuration, Cost Center analysis, budget alert coverage, untagged resource inventory |
| 15 | - Storage cost optimization: OSS storage class tiering (Standard → IA → Archive → Cold Archive), lifecycle rule coverage, unused snapshot inventory |
| 16 | - Analytics cost management: MaxCompute CU reservation vs. On-Demand comparison, AnalyticDB query optimization, idle resource detection |
| 17 | - Waste elimination: Cloud Advisor rightsizing recommendations, dev/test auto-stop schedules, idle ECS/SLB inventory |
| 18 | |
| 19 | ## Cost Optimization Design Principles |
| 20 | |
| 21 | 1. **Select cost-efficient instance families** — Alibaba Cloud has a complex instance family taxonomy; key cost-efficient choices: ecs.g8a (Ampere Arm, ~40% cheaper than x86 equivalent), ecs.u1 (burstable, dev/test), ecs.c8i (compute-optimized for CPU-intensive); use Instance Advisor to compare price/performance |
| 22 | 2. **Leverage Savings Plans and Reserved Instances** — Alibaba Cloud Savings Plans cover ECS, ECI, and Serverless K8s on a CU (Compute Unit) basis, regardless of instance type/size/region (more flexible than AWS RIs); 1yr or 3yr term; committed hourly spend discounts of 20-45% |
| 23 | 3. **Use Preemptible Instances for fault-tolerant workloads** — Preemptible Instances (Spot) offer ~10-30% of On-Demand price; interrupted with 3-minute notice; ideal for batch, ML training, CI/CD, stateless scale-out |
| 24 | 4. **Tag resources and allocate costs** — use Cost Allocation Tags (user-defined tags) to attribute costs to projects/teams; Alibaba Cloud Cost Center provides cost analysis by tag, service, region, and account; tag compliance can be enforced via Cloud Config rules |
| 25 | 5. **Continuously monitor and reduce waste** — use Alibaba Cloud Cost Manager (formerly Billing Management) for budgets and alerts; use Cloud Advisor for rightsizing recommendations; use DataWorks or SLS cost analysis notebooks for custom analysis |
| 26 | |
| 27 | ## Alibaba Cloud Cost Tools |
| 28 | |
| 29 | - **Cost Center (Billing Console)**: cost analysis by service/region/tag, budget management, cost trend charts |
| 30 | - **Cloud Advisor**: rightsizing recommendations for ECS (idle instances, oversized), RDS, and SLB |
| 31 | - **Savings Plans**: flexible CU-based commitment (no instance type lock-in), 1yr/3yr |
| 32 | - **Reserved Instances**: fixed instance type commitment — higher discount but less flexible than Savings Plans |
| 33 | - **Cost Allocation Tags**: user-defined tags synced to billing; up to 20 active cost allocation tags per account |
| 34 | - **DataWorks**: can query billing data for custom cost attribution dashboards |
| 35 | - **AutoStopping**: schedule ECS instance start/stop to eliminate idle costs (dev/test environments) |
| 36 | |
| 37 | ## Key Alibaba Cloud Pricing Insights |
| 38 | |
| 39 | - **ECS Preemptible**: typically 10-30% of Pay-As-You-Go; price fluctuates with market demand; 3-minute interruption notice |
| 40 | - **Savings Plans vs Reserved Instances**: Savings Plans are generally recommended for flexibility — no instance family/region lock; RIs give slightly higher discounts for predictable, single-instance-type workloads |
| 41 | - **OSS pricing**: Standard storage $0.02/GB-month (international regions); IA (Infrequent Access) $0.015/GB; Archive $0.0045/GB; Cold Archive $0.002/GB — significant savings for data lakes |
| 42 | - **Data egress**: within same region and across AZs is free; cross-region via Express Connect is ~$0.02/GB; internet egress (international) is $0.087/GB first 1TB then tiered |
| 43 | - **MaxCompute (Odps)**: CU reservation pricing vs On-Demand ($0.04/GB scanned) — for regular batch analytics, CU reservation provides predictable cost; On-Demand can be 10x more expensive for large scans |
| 44 | |
| 45 | ## Assessment Questions |
| 46 | |
| 47 | - How do you select and right-size ECS instance families for workload requirements? |
| 48 | - How do you use Savings Plans or Reserved Instances for steady-state compute? |
| 49 | - How do you leverage Preemptible Instances for fault-tolerant wor |