# ECS Task Rebalancing을 이용한 EC2 비용 최적화 노하우

> Clean Markdown view of GeekNews topic #6911. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=6911](https://news.hada.io/topic?id=6911)
- GeekNews Markdown: [https://news.hada.io/topic/6911.md](https://news.hada.io/topic/6911.md)
- Type: news
- Author: [toughrogrammer](https://news.hada.io/@toughrogrammer)
- Published: 2022-07-05T15:20:38+09:00
- Updated: 2022-07-05T15:20:38+09:00
- Original source: [engineering.ab180.co](https://engineering.ab180.co/stories/aws-ecs-task-rebalancing-ec2-cost-optimization)
- Points: 16
- Comments: 0

## Topic Body

- AWS ECS에 대한 간단한 설명과 비용 절감을 위해 신경써야할 부분  
- ECS Managed Cluster Auto Scaling에 대한 설명과 작동 원리, 문제점  
  - Task가 하나라도 실행되고 있는 EC2 instance는 종료시키지 않기 때문에 비용상 낭비되는 상황이 자주 발생  
- 문제 해결하기  
  - 주기적으로 종료 가능한 EC2 instance를 찾아서 drain  
  - 즉시 종료 가능한 EC2 instance는 즉시 종료  
  - Service placement strategy 활용  
- 성과: EC2 instance 비용 20% 절감

## Comments



_No public comments on this page._
