complexity in infrastructure (VPC, routing-table, NAT, NACL, security groups, ELB…etc)
complexity in A/B testing and B/G deployment
deploy
Want to have self-healing, auto-scaling, AZ-balancing, log consolidation, immutable and stateless architecture, cost optimisation and resource optimisation
今天的主題: AWS ECS
ECS Cluster best practices
用 ec2 組成一群機器
ASG on demand 註冊到 cluster
ASG spot instance 也註冊到 cluster
cloudwatch 用來監控這兩個 ASG
Auto scaling policy design
scale out spot on 30% ~ 60% (cpu usage?)
scale out on-demand when 60%
scale in on-demand when 60%
scale in spot when <= 30%
with minimal 1 on-demand or RI (reserved instance)