本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
Amazon ECS 可用區域服務重新平衡服務事件訊息
您會看到以下服務事件訊息範例。
service (service-name) is not AZ balanced with number-tasks tasks in Availability Zone 1, number-tasks in Availability Zone 2, and number-tasks in Availability Zone 3. AZ Rebalancing in progress.
當任務數量未平均分散在可用區域中時,服務排程器會傳送 service
( 服務事件。無需採取任何動作。這是資訊事件。service-name) is not AZ balanced
service (service-name) is AZ balanced with number-tasks tasks in Availability Zone 1, number-tasks tasks in Availability Zone 2, and number-tasks tasks in Availability Zone 3.
當可用區域服務重新平衡完成時,服務排程器會傳送 service
( 服務事件。無需採取任何動作。這是資訊事件。service-name) is AZ balanced
service-name has started number-tasks tasks in Availability Zone to AZ Rebalance: task-ids.
因為服務重新平衡,服務排程器在可用區域中啟動任務時,會傳送 service-name/task-set-name has started number tasks in Availability Zone 服務事件。無需採取任何動作。這是資訊事件。
service-name has stopped number-tasks running tasks in Availability Zone due to AZ rebalancing: task-id.
因為服務重新平衡,服務排程器在可用區域中停止任務時,會傳送 service-name/task-set-name has stopped number tasks in Availability Zone 服務事件。無需採取任何動作。這是資訊事件。
service (service-name) is unable to place a task in Availability Zone because no container instance met all of its requirements.
因為沒有任何容器執行個體符合其所有需求,服務排程器會傳送 service-name is unable to place a task in Availability Zone 服務事件。若要解決問題,請在可用區域中啟動執行個體。
service (service-name) is unable to place a task in Availability Zone.
當您使用 Fargate 且沒有可用容量時,服務排程器會傳送 service-name is unable to place a task in Availability Zone 服務事件。
您可以在錯誤訊息的可用區域中新增其他子網路,或聯絡 支援 以取得額外的容量。
service (service-name) was unable to AZ Rebalance because task-set-name was unable to scale in due to reason.
當您使用任務縮減保護時,服務排程器會傳送 service-name was unable to AZ Rebalance because task-set-name was unable to scale in due to reason 服務事件。
您可以執行下列任一動作:
-
等待目前任務的保護到期,然後終止這些任務。
-
判斷哪些任務可以停止,並透過
UpdateTaskProtectionAPI,將protectionEnabled選項設定為false,取消這些任務的保護狀態。 -
將服務的所需任務計數提高到超過受保護任務的數目。
service (service-name) stopped AZ Rebalancing.
當可用區域重新平衡操作停止時,服務排程器會傳送 service-name stopped AZ Rebalancing 服務事件。這是資訊事件。Amazon ECS 會傳送提供詳細資訊的額外事件。