

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# Amazon ECS 服務運作狀態不良事件訊息
<a name="service-unhealthy-event-messages"></a>

以下是服務運作狀態不良的事件訊息範例。

## EC2: (service {{service-name}}) (task {{task-id}}) (instance {{instance-id}}) (port {{port-number}}) is unhealthy in (target-group {{target-group-name}}) due to (reason {{failure-reason}})
<a name="service-unhealthy-ec2"></a>

此訊息表示在 EC2 執行個體上執行的任務運作狀態檢查失敗。如需詳細資訊，請參閱下列內容：
+ [如何讓使用 Amazon EC2 啟動類型的 Amazon ECS 任務通過 Application Load Balancer 運作狀態檢查？](https://repost.aws/knowledge-center/troubleshoot-unhealthy-checks-ecs)

## EC2 with taskSet: (service {{service-name}}, taskSet {{taskSet-id}}) (task {{task-id}}) (instance {{instance-id}}) (port {{port-number}}) is unhealthy in (target-group {{target-group-name}}) due to (reason {{failure-reason}})
<a name="service-unhealthy-ec2-taskset"></a>

此訊息表示在 EC2 執行個體上執行的任務集中的任務運作狀態檢查失敗。如需詳細資訊，請參閱下列內容：
+ [如何讓使用 EC2 啟動類型的 Amazon ECS 任務通過 Application Load Balancer 運作狀態檢查？](https://repost.aws/knowledge-center/troubleshoot-unhealthy-checks-ecs)

## Fargate: (service {{service-name}}) (task {{task-id}}) (port {{port-number}}) is unhealthy in (target-group {{target-group-name}}) due to (reason {{failure-reason}})
<a name="service-unhealthy-fargate"></a>

此訊息表示 Fargate 任務運作狀態檢查失敗。

如需有關對 Fargate 任務中的運作狀態檢查失敗進行疑難排解的詳細資訊，請參閱[如何對 Fargate 上 Amazon ECS 任務的運作狀態檢查失敗進行疑難排解？](https://repost.aws/knowledge-center/ecs-fargate-health-check-failures)文章。

## Fargate with taskSet: (service {{service-name}}, taskSet {{taskSet-id}}) (task {{task-id}}) (port {{port-number}}) is unhealthy in (target-group {{target-group-name}}) due to (reason {{failure-reason}})
<a name="service-unhealthy-fargate-taskset"></a>

此訊息表示在 Fargate 上執行的任務集中的任務運作狀態檢查失敗。

如需有關對 Fargate 任務中的運作狀態檢查失敗進行疑難排解的詳細資訊，請參閱[如何對 Fargate 上 Amazon ECS 任務的運作狀態檢查失敗進行疑難排解？](https://repost.aws/knowledge-center/ecs-fargate-health-check-failures)文章。