Amazon ECS 클러스터 Auto Scaling 켜기
클러스터 오토 스케일링을 사용 설정하면 Amazon ECS가 클러스터에 등록된 Amazon EC2 인스턴스의 규모 조정을 관리합니다.
콘솔을 사용하여 클러스터 오토 스케일링을 활성화하려면 Amazon ECS를 위한 용량 공급자 생성 단원을 참조하세요.
시작하기 전에 Auto Scaling 그룹과 용량 공급자를 생성합니다. 자세한 내용은 EC2 시작 유형을 위한 Amazon ECS 용량 공급자 섹션을 참조하세요.
클러스터 Auto Scaling을 켜려면 용량 공급자를 클러스터와 연결한 다음 클러스터 Auto Scaling을 켭니다.
-
put-cluster-capacity-providers
명령을 사용하여 하나 이상의 용량 공급자를 클러스터와 연결합니다.AWS Fargate 용량 공급자를 추가하려면 요청에
FARGATE
및FARGATE_SPOT
용량 공급자를 포함합니다. 자세한 정보는 AWS CLI 명령 참조의put-cluster-capacity-providers
섹션을 참조하세요.aws ecs put-cluster-capacity-providers \ --cluster
ClusterName
\ --capacity-providersCapacityProviderName
FARGATE FARGATE_SPOT \ --default-capacity-provider-strategy capacityProvider=CapacityProvider,weight=1EC2 시작 유형에서 Auto Scaling 그룹을 추가하려면 요청에 Auto Scaling 그룹 이름을 포함합니다. 자세한 정보는 AWS CLI 명령 참조의
put-cluster-capacity-providers
섹션을 참조하세요.aws ecs put-cluster-capacity-providers \ --cluster
ClusterName
\ --capacity-providersCapacityProviderName
\ --default-capacity-provider-strategy capacityProvider=CapacityProvider,weight=1 -
describe-clusters
명령을 사용하여 연결에 성공했는지 확인합니다. 자세한 정보는 AWS CLI 명령 참조의describe-clusters
섹션을 참조하세요.aws ecs describe-clusters \ --cluster
ClusterName
\ --include ATTACHMENTS -
update-capacity-provider
명령을 사용하여 용량 공급자에 대해 관리형 Auto Scaling을 사용 설정합니다. 자세한 정보는 AWS CLI 명령 참조의update-capacity-provider
섹션을 참조하세요.aws ecs update-capacity-provider \ --capacity-providers
CapacityProviderName
\ --auto-scaling-group-provider managedScaling=ENABLED