AWS Builder Center: Learn, Build and Connect with builders in the AWS community
AWS Builder Center is the official home for builders on AWS. Share and read what others are working on, follow people who inspire you, explore training and workshops, and find tools to support what you're building.
Amazon ECS 배포 회로 차단기가 배포 상태를 FAILED로 설정한 이유는 무엇입니까?
3분 분량
0
Amazon Elastic Container Service(Amazon ECS) 배포 회로 차단기가 배포 상태를 FAILED로 설정했습니다. 배포 실패의 원인을 해결하고 싶습니다.
간략한 설명
배포의 연속 실패 횟수가 정의된 임계값에 도달하면 배포 회로 차단기가 배포 상태를 FAILED로 설정합니다. 다음과 같은 오류 메시지가 표시될 수 있습니다.
"Resource handler returned message: "Error occurred during operation 'ECS Deployment Circuit Breaker was triggered'." (RequestToken: xxxxxxxx-xxxx-xxxxxx-xxxxxxx, HandlerErrorCode: GeneralServiceException)"
다음과 같은 문제로 인해 배포가 실패할 수 있습니다.
컨테이너가 상태 확인에 실패했습니다.
대상 그룹이 Application Load Balancer 상태 확인에 실패했습니다.
구성할 때 AWS Cloud Map 서비스 상태 확인에 실패했습니다.
Amazon Elastic Container Registry(Amazon ECR) 이미지가 존재하지 않습니다.
컨테이너 인스턴스가 모든 작업 배치 기준을 충족하지 못했습니다.
새 배포의 작업이 연속해서 중지되거나 시작되지 않았습니다.
해결 방법
이 문제를 해결하려면 Amazon ECS 서비스 이벤트 메시지를 확인하여 Amazon ECS에서 회로 차단기를 활성화한 이유를 파악합니다. 그런 다음 사유에 따라 다음과 같은 조치를 취합니다.
컨테이너 상태 확인 실패 해결
작업의 Amazon ECS 컨테이너가 상태 확인을 통과할 수 없는 경우 다음 오류 메시지가 표시됩니다.
"(service AWS-Service) (task ff3e71a4-d7e5-428b-9232-2345657889) failed container health checks."