Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(infra): add service auto scaling for iris #1014

Merged
merged 3 commits into from
Dec 22, 2023

Conversation

k1g99
Copy link
Collaborator

@k1g99 k1g99 commented Dec 19, 2023

Description

closes #1012
IRIS ECS service에 autocaling 기능을 추가했습니다.
Cloudwatch에 Alert 설정을 해 놓고,
특정 alert가 trigger되는 경우에 scale-in/out 되도록 설정했습니다.

Additional context

API ECS Cluster 에 AutoScaling이 필요한가? 에 대해서 이야기해보는 것이 좋을 것 같아요!
물론 본격적으로 Load Test를 해봐야 알겠지만, 예전에 했던 LoadTest 결과를 보니깐 Client API 서버에는 CPUUtilization이 10%를 넘기질 않더라구요.

  • 현재 상황: API ECS cluster는 Service Autoscaling 안됨 (지금 작업은 Iris ECS에만 Service Auto Scaling 해 놓은 상태)
    => EC2 Auto Scaling은 설정이 되어있지만 Service Auto Scaling이 적용되지 않아서 정상적으로 작동되는 상태는 아니긴 합니다.

Before submitting the PR, please make sure you do the following

Copy link
Member

@goathoon goathoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

섬세하시네요 역시

infra/modules/codedang-infra/ecs-api-asg.tf Show resolved Hide resolved
@goathoon goathoon self-requested a review December 19, 2023 14:29
Copy link
Member

@goathoon goathoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approve of your 섬세함

@k1g99 k1g99 merged commit e5718a1 into main Dec 22, 2023
9 checks passed
@k1g99 k1g99 deleted the 1012-iris-service-autoscaling branch December 22, 2023 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ECS Cluster (IRIS)의 AutoScalingPolicy 수정
3 participants