스팟 플릿 이벤트 유형 - Amazon Elastic Compute Cloud

스팟 플릿 이벤트 유형

스팟 플릿 이벤트 유형은 5가지입니다. 각 이벤트 유형에는 몇 가지 하위 유형이 있습니다.

이벤트는 JSON EventBridge 형식으로 전송됩니다. 다음과 같은 이벤트 필드는 규칙에 정의되어 작업을 트리거하는 이벤트 패턴을 형성합니다.

"source": "aws.ec2spotfleet"

스팟 플릿에서 시작된 이벤트를 식별합니다.

"detail-type": "EC2 Spot Fleet State Change"

이벤트 유형을 식별합니다.

"detail": { "sub-type": "submitted" }

이벤트 하위 유형을 식별합니다.

EC2 스팟 플릿 상태 변경

스팟 플릿의 상태가 변경될 때 스팟 플릿은 EC2 Spot Fleet State Change 이벤트를 Amazon EventBridge로 보냅니다.

다음은 이 이벤트의 예제 데이터입니다.

{ "version": "0", "id": "d1af1091-6cc3-2e24-203a-3b870e455d5b", "detail-type": "EC2 Spot Fleet State Change", "source": "aws.ec2spotfleet", "account": "123456789012", "time": "2020-11-09T08:57:06Z", "region": "us-east-1", "resources": [ "arn:aws:ec2:us-east-1:123456789012:spot-fleet-request/sfr-4b6d274d-0cea-4b2c-b3be-9dc627ad1f55" ], "detail": { "sub-type": "submitted" } }

sub-type에 대해 가능한 값은 다음과 같습니다.

active

스팟 플릿 요청이 확인되었으며 Amazon EC2가 실행 중인 인스턴스의 목표 개수를 유지하려고 시도하고 있습니다.

cancelled

스팟 플릿 요청이 취소되었고 실행 중인 인스턴스가 없습니다. 스팟 플릿은 인스턴스가 종료되고 2일 후에 삭제됩니다.

cancelled_running

스팟 플릿 요청이 취소되었고 추가 인스턴스를 시작하지 않습니다. 중단되거나 종료될 때까지 기존 인스턴스가 계속 실행됩니다. 그 요청은 모든 인스턴스가 중단 또는 종료될 때까지 계속 이 상태로 유지됩니다.

cancelled_terminating

스팟 플릿 요청이 취소되었고 해당 인스턴스를 종료하는 중입니다. 그 요청은 모든 인스턴스가 종료될 때까지 계속 이 상태로 유지됩니다.

expired

스팟 플릿 요청이 만료되었습니다. 요청이 TerminateInstancesWithExpiration 세트로 생성된 경우 후속 terminated 이벤트는 인스턴스가 종료되었음을 나타냅니다.

modify_in_progress

스팟 집합 요청이 수정되고 있습니다. 그 요청은 수정이 완전히 처리될 때까지 계속 이 상태로 유지됩니다.

modify_succeeded

스팟 플릿 요청이 수정되었습니다.

submitted

스팟 플릿 요청을 평가 중이며 Amazon EC2에서 목표 개수의 인스턴스를 시작하기 위해 준비 중입니다.

progress

스팟 플릿 요청이 이행되는 중입니다.

EC2 스팟 플릿 스팟 인스턴스 요청 변경

스팟 플릿은 플릿의 스팟 인스턴스 요청 상태가 변경될 때 EC2 Spot Fleet Spot Instance Request Change 이벤트를 Amazon EventBridge로 보냅니다.

다음은 이 이벤트의 예제 데이터입니다.

{ "version": "0", "id": "cd141ef0-14af-d670-a71d-fe46e9971bd2", "detail-type": "EC2 Spot Fleet Spot Instance Request Change", "source": "aws.ec2spotfleet", "account": "123456789012", "time": "2020-11-09T08:53:21Z", "region": "us-east-1", "resources": [ "arn:aws:ec2:us-east-1:123456789012:spot-fleet-request/sfr-a98d2133-941a-47dc-8b03-0f94c6852ad1" ], "detail": { "spot-instance-request-id": "sir-a2w9gc5h", "description": "SpotInstanceRequestId sir-a2w9gc5h, PreviousState: cancelled_running", "sub-type": "cancelled" } }

sub-type에 대해 가능한 값은 다음과 같습니다.

active

스팟 인스턴스 요청이 이행되었으며 요청에 연결된 스팟 인스턴스가 있습니다.

cancelled

스팟 인스턴스 요청을 취소했거나 스팟 인스턴스 요청이 만료되었습니다.

disabled

스팟 인스턴스를 중지했습니다.

submitted

스팟 인스턴스 요청을 제출했습니다.

EC2 스팟 플릿 인스턴스 변경

플릿의 인스턴스가 상태가 변경될 때 스팟 플릿은 EC2 Spot Fleet Instance Change 이벤트를 Amazon EventBridge로 보냅니다.

다음은 이 이벤트의 예제 데이터입니다.

{ "version": "0", "id": "11591686-5bd7-bbaa-eb40-d46529c2710f", "detail-type": "EC2 Spot Fleet Instance Change", "source": "aws.ec2spotfleet", "account": "123456789012", "time": "2020-11-09T07:25:02Z", "region": "us-east-1", "resources": [ "arn:aws:ec2:us-east-1:123456789012:spot-fleet-request/sfr-c8a764a4-bedc-4b62-af9c-0095e6e3ba61" ], "detail": { "instance-id": "i-08b90df1e09c30c9b", "description": "{\"instanceType\":\"r4.2xlarge\",\"image\":\"ami-032930428bf1abbff\",\"productDescription\":\"Linux/UNIX\",\"availabilityZone\":\"us-east-1a\"}", "sub-type": "launched" } }

sub-type에 대해 가능한 값은 다음과 같습니다.

launched

새 인스턴스가 시작되었습니다.

terminated

인스턴스가 종료되었습니다.

termination_notified

스케일 다운 중에 Amazon EC2에 의해 스팟 인스턴스가 종료될 때 플릿의 목표 용량이 감소(예: 목표 용량 4에서 목표 용량 3으로)되었을 때 인스턴스 종료 알림이 전송되었습니다.

EC2 스팟 플릿 정보

이행 중에 오류가 발생할 때 스팟 플릿은 EC2 Spot Fleet Information 이벤트를 Amazon EventBridge로 보냅니다. 정보 이벤트는 플릿에서 목표 용량을 이행하려는 시도를 차단하지 않습니다.

다음은 이 이벤트의 예제 데이터입니다.

{ "version": "0", "id": "73a60f70-3409-a66c-635c-7f66c5f5b669", "detail-type": "EC2 Spot Fleet Information", "source": "aws.ec2spotfleet", "account": "123456789012", "time": "2020-11-08T20:56:12Z", "region": "us-east-1", "resources": [ "arn:aws:ec2:us-east-1:123456789012:spot-fleet-request/sfr-2531ea06-af18-4647-8757-7d69c94971b1" ], "detail": { "description": "r3.8xlarge, ami-032930428bf1abbff, Linux/UNIX, us-east-1a, Spot bid price is less than Spot market price $0.5291", "sub-type": "launchSpecUnusable" } }

sub-type에 대해 가능한 값은 다음과 같습니다.

fleetProgressHalted

모든 시작 사양의 요금이 스팟 요금보다 낮기 때문에 모든 시작 사양의 요금이 유효하지 않습니다(모든 시작 사양이 launchSpecUnusable 이벤트 생성). 스팟 요금이 변경되면 시작 사양이 유효해질 수 있습니다.

launchSpecTemporarilyBlacklisted

구성이 유효하지 않으며 인스턴스 시작하려는 시도가 여러 번 실패했습니다. 자세한 내용은 이벤트 설명을 참조하세요.

launchSpecUnusable

시작 사양의 요금이 스팟 요금보다 낮기 때문에 시작 사양의 요금이 유효하지 않습니다.

registerWithLoadBalancersFailed

로드 밸런서에 인스턴스를 등록하지 못했습니다. 자세한 내용은 이벤트 설명을 참조하세요.

EC2 스팟 플릿 오류

이행 중에 오류가 발생할 때 스팟 플릿은 EC2 Spot Fleet Error 이벤트를 Amazon EventBridge로 보냅니다. 오류 이벤트는 플릿에서 목표 용량을 이행하려는 시도를 차단합니다.

다음은 이 이벤트의 예제 데이터입니다.

{ "version": "0", "id": "10adc4e7-675c-643e-125c-5bfa1b1ba5d2", "detail-type": "EC2 Spot Fleet Error", "source": "aws.ec2spotfleet", "account": "123456789012", "time": "2020-11-09T06:56:07Z", "region": "us-east-1", "resources": [ "arn:aws:ec2:us-east-1:123456789012:spot-fleet-request/sfr-38725d30-25f1-4f30-83ce-2907c56dba17" ], "detail": { "description": "r4.2xlarge, ami-032930428bf1abbff, Linux/UNIX: The associatePublicIPAddress parameter can only be specified for the network interface with DeviceIndex 0. ", "sub-type": "spotFleetRequestConfigurationInvalid" } }

sub-type에 대해 가능한 값은 다음과 같습니다.

iamFleetRoleInvalid

스팟 플릿에 인스턴스를 시작하거나 종료하는 데 필요한 권한이 없습니다.

allLaunchSpecsTemporarilyBlacklisted

유효한 구성이 없으며 인스턴스를 시작하려는 시도가 여러 번 실패했습니다. 자세한 내용은 이벤트 설명을 참조하세요.

spotInstanceCountLimitExceeded

시작할 수 있는 스팟 인스턴스 수가 한도에 도달했습니다.

spotFleetRequestConfigurationInvalid

구성이 유효하지 않습니다. 자세한 내용은 이벤트 설명을 참조하세요.