Amazon EC2 Auto Scaling 문제 해결 - Amazon EC2 Auto Scaling

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

Amazon EC2 Auto Scaling 문제 해결

Amazon EC2 Auto Scaling은 문제를 해결할 때 도움이 되도록 구체적이고 서술적인 오류를 제공합니다. 크기 조정 활동에 관한 설명에서 오류 메시지를 확인할 수 있습니다.

크기 조정 활동에서 오류 메시지 검색

조정 활동의 설명에서 오류 메시지를 검색하려면, describe-scaling-activities 명령을 사용합니다. 6주 이전까지 크기 조정 활동에 대한 레코드가 있습니다. 크기 조정 활동은 시작 시간을 기준으로 정렬되며, 가장 최근의 크기 조정 활동이 가장 먼저 열거됩니다.

참고

조정 활동은 Auto Scaling 그룹의 Activity(활동) 탭에 있는 Amazon EC2 Auto Scaling 콘솔의 활동 기록에도 표시됩니다.

특정 Auto Scaling 그룹에 대한 크기 조정 활동을 보려면 다음 명령을 사용합니다.

aws autoscaling describe-scaling-activities --auto-scaling-group-name my-asg

다음은 StatusCode에 활동의 현재 상태가 포함되고 StatusMessage에 오류 메시지가 포함된 응답의 예입니다.

{ "Activities": [ { "ActivityId": "3b05dbf6-037c-b92f-133f-38275269dc0f", "AutoScalingGroupName": "my-asg", "Description": "Launching a new EC2 instance: i-003a5b3ffe1e9358e. Status Reason: Instance failed to complete user's Lifecycle Action: Lifecycle Action with token e85eb647-4fe0-4909-b341-a6c42d8aba1f was abandoned: Lifecycle Action Completed with ABANDON Result", "Cause": "At 2021-01-11T00:35:52Z a user request created an AutoScalingGroup changing the desired capacity from 0 to 1. At 2021-01-11T00:35:53Z an instance was started in response to a difference between desired and actual capacity, increasing the capacity from 0 to 1.", "StartTime": "2021-01-11T00:35:55.542Z", "EndTime": "2021-01-11T01:06:31Z", "StatusCode": "Cancelled", "StatusMessage": "Instance failed to complete user's Lifecycle Action: Lifecycle Action with token e85eb647-4fe0-4909-b341-a6c42d8aba1f was abandoned: Lifecycle Action Completed with ABANDON Result", "Progress": 100, "Details": "{\"Subnet ID\":\"subnet-5ea0c127\",\"Availability Zone\":\"us-west-2b\"...}", "AutoScalingGroupARN": "arn:aws:autoscaling:us-west-2:123456789012:autoScalingGroup:283179a2-f3ce-423d-93f6-66bb518232f7:autoScalingGroupName/my-asg" }, ... ] }

출력의 필드에 대한 설명은 Amazon EC2 Auto Scaling API 참조활동을 참조하세요.

삭제된 그룹의 조정 활동을 보려면

Auto Scaling 그룹이 삭제된 후 조정 활동을 보려면 다음과 같이 describe-scaling-activities명령에 --include-deleted-groups 옵션을 추가합니다.

aws autoscaling describe-scaling-activities --auto-scaling-group-name my-asg --include-deleted-groups

다음은 삭제된 그룹에 대한 크기 조정 활동이 포함된 응답의 예입니다.

{ "Activities": [ { "ActivityId": "e1f5de0e-f93e-1417-34ac-092a76fba220", "AutoScalingGroupName": "my-asg", "Description": "Launching a new EC2 instance. Status Reason: Your Spot request price of 0.001 is lower than the minimum required Spot request fulfillment price of 0.0031. Launching EC2 instance failed.", "Cause": "At 2021-01-13T20:47:24Z a user request update of AutoScalingGroup constraints to min: 1, max: 5, desired: 3 changing the desired capacity from 0 to 3. At 2021-01-13T20:47:27Z an instance was started in response to a difference between desired and actual capacity, increasing the capacity from 0 to 3.", "StartTime": "2021-01-13T20:47:30.094Z", "EndTime": "2021-01-13T20:47:30Z", "StatusCode": "Failed", "StatusMessage": "Your Spot request price of 0.001 is lower than the minimum required Spot request fulfillment price of 0.0031. Launching EC2 instance failed.", "Progress": 100, "Details": "{\"Subnet ID\":\"subnet-5ea0c127\",\"Availability Zone\":\"us-west-2b\"...}", "AutoScalingGroupState": "Deleted", "AutoScalingGroupARN": "arn:aws:autoscaling:us-west-2:123456789012:autoScalingGroup:283179a2-f3ce-423d-93f6-66bb518232f7:autoScalingGroupName/my-asg" }, ... ] }

스케일링 활동을 끕니다.

규모 조정 정책 또는 예정된 조치의 방해 없이 문제를 조사해야 하는 경우 다음과 같은 옵션을 사용할 수 있습니다.

  • ScheduledActions 프로세스를 일시 중단하여 모든 조정 정책 및 예약된 작업으로 인해 그룹의 원하는 용량이 변경되지 않도록 하십시오. AlarmNotification 자세한 설명은 Amazon EC2 Auto Scaling 프로세스 일시 중지 및 재개 섹션을 참조하세요.

  • 부하 변화에 따라 그룹의 원하는 용량이 변경되지 않도록 개별 조정 정책을 비활성화하십시오. 자세한 설명은 Auto Scaling 그룹에 대한 조정 정책 비활성화 섹션을 참조하세요.

  • 정책의 스케일 인 부분을 비활성화하여 스케일 아웃 (용량 추가) 만 하도록 개별 대상 추적 조정 정책을 업데이트하십시오. 이 방법을 사용하면 그룹의 원하는 용량이 줄어드는 것을 방지할 수 있지만 부하가 증가할 때 용량을 늘릴 수 있습니다. 자세한 설명은 Amazon EC2 Auto Scaling의 대상 추적 조정 정책 섹션을 참조하세요.

추가 문제 해결 리소스

다음 페이지에서는 Amazon EC2 Auto Scaling 관련 문제 해결을 위한 추가 정보를 제공합니다.

다음 AWS 리소스도 도움이 될 수 있습니다.

문제 해결에는 종종 전문가 또는 도우미 커뮤니티의 반복적인 질의와 발견이 필요한 경우가 많습니다. 이 섹션의 제안 사항을 시도한 후에도 문제가 계속 발생하는 경우 Amazon EC2 Auto Scaling 태그를 사용하여 re:Post에 문의하거나 AWS Support (지원 센터 클릭) AWS re:Post에서 질문하십시오. AWS Management Console