排查伸縮活動異常
執行伸縮活動時,可能會因某些原因導致伸縮活動異常無法繼續進行。本文匯總了常見的控制台伸縮活動異常資訊,並給出可能原因和解決建議,協助您快速排查伸縮活動異常問題。
伸縮活動異常說明
伸縮活動的可能狀態有拒絕、執行中、成功、警告和失敗。更多資訊,請參見伸縮活動狀態。 其中,拒絕、警告、失敗狀態表示伸縮活動異常。您可以在伸縮活動頁簽下的伸縮活動列表中,單擊異常伸縮活動ID,擷取相關的狀態資訊或詳細資料,具體操作,請參見查看伸縮活動。
異常可能原因及解決措施
伸縮活動異常通常歸類為伸縮活動被拒絕和伸縮活動執行失敗兩種情況。
伸縮活動被拒絕
如果伸縮活動被拒絕,您可以從狀態資訊瞭解原因,並採取對應的解決措施,如下表所示。
伸縮活動狀態資訊 | 可能原因 | 解決措施 |
DBInstanceIdentifier does not refer to an existing DB instance.(xxxx) | RDS執行個體不存在。 | 請確保伸縮組關聯的RDS執行個體已存在。 |
The current status of the load balancer xxxxx does not support this action. | Server Load Balancer執行個體狀態不是active。 | 請確保伸縮組關聯的Server Load Balancer執行個體處於正常工作的狀態。 |
To execute the specified scaling rule, the total capacity will not change. | 伸縮組內的執行個體數不能小於伸縮組設定的最小值,也不能大於伸縮組設定的最大值,執行此伸縮規則將導致伸縮組內執行個體小於最小值或大於最大值,因此拒絕執行。 | 請檢查目前執行個體數量或伸縮規則配置,確保執行伸縮規則後不會超出執行個體數量限制。 |
The current status of DB instance xxxxx does not support this action. | RDS執行個體狀態異常,暫不支援執行伸縮活動。 | 如果伸縮組關聯的RDS執行個體處於遷移狀態,建議登入RDS控制台確認執行個體狀態處於正常工作狀態,然後重新執行伸縮活動。 |
You cannot delete a scaling group or launch a new scaling activity while there is scaling activity in progress for the specified scaling group. | 當前伸縮組有正在執行的伸縮活動。 | 請等待當前的伸縮活動運行完成,然後執行新的伸縮活動。 |
You cannot launch a new scaling activity during the cooldown period. | 伸縮組處於冷卻時間,伸縮活動被拒絕執行。 | 需要等待冷卻時間結束,更多資訊,請參見冷卻時間。 |
The current status of the specified scaling group does not support this action. | 當前伸縮組狀態不支援此操作,伸縮組可能為停用狀態或者刪除中狀態。 | 如果伸縮組為停用狀態,請先啟用伸縮組。 |
The specified SecurityGroupId does not exist. | 伸縮配置對應的安全性群組不存在。 | 請修改伸縮配置,設定對應的安全性群組。 |
To remove the instances, the total capacity will be lesser than the min size. | 伸縮組內的執行個體數不能小於伸縮組設定的最小值,如果移除伸縮組內現有的執行個體,會導致伸縮組內執行個體數小於伸縮組最小值,因此被拒絕執行。 | 請檢查目前執行個體數量或伸縮規則配置,確保執行伸縮規則後不會超出執行個體數量限制。 |
The specified LoadBalancerId does not exist. | Server Load Balancer執行個體不存在。 | 請確保伸縮組關聯的Server Load Balancer執行個體已存在,伸縮組中設定Server Load Balancer執行個體詳情,請參見在Auto Scaling中使用負載平衡服務。 |
Ess should be authorized in ram to operate user resource. | 主帳號未授權當前子帳號操作Auto Scaling服務相關資源。 | 請登入存取控制控制台授權相關資源,然後繼續操作。 |
To attach the instances, the total capacity will be greater than the max size. | 伸縮組內的執行個體數不能大於伸縮組設定的最大值,如果添加執行個體到伸縮組,會導致伸縮組內執行個體數大於伸縮組最大值,因此被拒絕執行。 | 請檢查目前執行個體數量或伸縮規則配置,確保執行伸縮規則後不會超出執行個體數量限制。 |
The current status of virtual switch does not support this operation. | 虛擬交換器(Vswitch)的狀態為pending或modifying,伸縮組暫時無法執行伸縮活動。 | 請檢查伸縮組關聯的虛擬交換器的狀態,確保處於可用狀態,然後重試。 |
The specified virtual switch does not exist. | 虛擬交換器不存在。 | 請確保伸縮組關聯的虛擬交換器未被刪除。 |
The specified launch template set is not found. | 執行個體啟動模板不存在。 | 請登入ECS控制台,確保伸縮組關聯的執行個體啟動模板已存在,然後重新設定伸縮組關聯的執行個體啟動模板。 |
Instance "xxxxx" and the specified scaling group are not in the same VPC. | 當前ECS執行個體所屬的Virtual Private Cloud與伸縮組對應的專用網路不一致。 | 請確保專用網路伸縮組內的ECS執行個體與伸縮組屬於同一個專用網路,或者ECS執行個體網路類型為傳統網路。 |
The specified virtual switch and the instance in Load Balancer "xxxxx" are not in the same VPC. | Server Load Balancer執行個體與虛擬交換器(Vswitch)所屬的Virtual Private Cloud不一致。 | 請確保Vswitch和Server Load Balancer執行個體處於同一個專用網路下,Server Load Balancer執行個體的添加限制,請參見在Auto Scaling中使用負載平衡服務。 |
Instance "xxxx" is already attached to another scaling group. | ECS執行個體只能添加到一個伸縮組,不能同時屬於多個伸縮組。 | 請確保待添加的ECS執行個體沒有加入到其它伸縮組。 |
The specified image does not exist. | 鏡像不存在。 | 請檢查伸縮配置,確保鏡像可用。 |
DataDiskSnapshotId "xxxx" does not exist. | 資料盤快照不存在。 | 請檢查伸縮配置,確保資料盤的快照可用。 |
伸縮活動執行失敗
如果伸縮活動執行失敗或者出現警告提示,您可以從詳細資料瞭解原因,並採取對應的解決措施,如下表所示。
伸縮活動詳細資料 | 可能原因 | 解決措施 |
Fail to scale instances for scaling group("Ignore to remove N instances("instances in standby/protected status")"). | 指定執行個體處於備用/執行個體保護狀態。 | 請手動移除或釋放執行個體。 |
Fail to remove Instances "i-xxx1, i-xxx2"("The current status of the specified scaling group does not support this action."). | 當前伸縮組狀態不支援移除執行個體操作。 | 請確保伸縮組狀態為生效。移除執行個體相關限制,請參見RemoveInstances。 |
Fail to create Instances into scaling group("The specified InstanceType has been offline."). | 指定執行個體規格已下線。 | 請在伸縮配置中選擇在售的執行個體規格,更多資訊,請參見執行個體規格類型系列匯總。 |
Fail to create Instances into scaling group("The specified ImageId does not exist."). | 伸縮配置指定鏡像ID不存在。 | 請檢查伸縮配置,確認指定鏡像可用,或者重新選擇可用的鏡像。 |
Fail to create Instances into scaling group("Your account has been in arrears."). | 您的賬戶已欠費。 | 請保證賬戶額度充足,您可以在費用中心查看賬戶費用資訊。 |
Fail to create Instances into scaling group("Your account does not have enough balance."). | 您的賬戶可用額度不足。 | 請保證賬戶額度充足,您可以在費用中心查看賬戶費用資訊。 |
Fail to create Instances into scaling group("Your account has not passed the real-name authentication yet."). | 您的賬戶尚未通過實名認證。 | 請開啟實名認證。 |
Fail to create Instances into scaling group("The specified parameter "spotPriceLimit" can't be lower than current public price."). | 指定搶佔式執行個體的每小時最高價格低於當前市場價格。 | 請檢查伸縮配置,重新設定搶佔式執行個體出價或者出價策略,確保滿足建立搶佔式執行個體的條件。更多資訊,請參見搶佔式執行個體。 |
Fail to create Instances into scaling group("Living afterpay instances quota exceeded."). | 您持有的隨用隨付執行個體已超過限額。 | 請聯絡客服或查看和提升資源配額申請提高隨用隨付執行個體限額。更多資訊,請參見ECS配額管理。 |
Fail to create Instances into scaling group("The specified parameter "KeyPairName" does not exist in our records."). | 伸縮配置中指定金鑰組不存在。 | 請檢查伸縮配置,確保當前金鑰組可用,或者重新設定金鑰組。 |
Fail to create Instances into scaling group("The specified parameter 'SystemDisk.Category' is not support IoOptimized Instance. Valid Values: cloud_efficiency;cloud_ssd. "). | 當前系統硬碟類型不支援IO最佳化執行個體。 | 請檢查伸縮配置,修改系統硬碟類型,建議值:
|
Fail to create Instances into scaling group("The resource is out of stock in the specified zone. Please try other types, or choose other regions and zones."). | 指定資產庫存不足。 | 請檢查伸縮配置和伸縮組資訊,視情況選擇其他執行個體規格或者可用性區域。 |
Fail to create Instances into scaling group("The RAM user does not have the privilege to pass a RAM role."). | 伸縮配置中指定RAM角色不存在。 | 請檢查伸縮配置,重新指定合法RAM角色。 |
Fail to create Instances into scaling group("No payment method has been registered on the account."). | 當前賬戶未設定預設支付方式。 | 請前往帳號中心設定預設支付方式。 |
Fail to create Instances into scaling group("Exceeding the allowed amount of instances of a security group."). | 指定安全性群組下的執行個體數量超過上限。 | 請檢查當前伸縮組,嘗試將單個伸縮組擴充成多個伸縮組,並分別關聯不同的安全性群組,以滿足橫向擴容的需要。 |
Fail to create Instance into scaling group("The current status of instance "pending" does not support this action."). | 當前執行個體狀態不支援指定操作。 | 請檢查當前執行個體狀態,確保為Running後重試。 |
Fail to create Instances into scaling group("Abandon lifecycleActionResult parameter caused the instance to rollback."). | 伸縮組配置了擴容(ScaleOut)類型的生命週期掛鈎(LifecycleHook),當伸縮組擴容時,生命週期掛鈎被觸發,並且生命週期掛鈎最終的執行結果為拒絕,導致擴容伸縮活動復原,擴容出來的 ECS 執行個體被釋放。 | 建議:請檢查生命週期掛鈎的執行策略。 |
Fail to create instance into scaling group("The specified SecurityGroupId is invalid or does not exist.") | 安全性群組不存在。 | 請檢查伸縮配置,重新指定已存在的安全性群組。 |
Fail to create instance into scaling group("The specified ImageId does not exist.") | 鏡像不存在。 | 請檢查伸縮配置,重新指定已存在的鏡像。 |
Fail to create instance into scaling group("Your account has been in arrears.") | 您的賬戶可用額度不足。 | 請保證賬戶額度充足。 |
Fail to scale instances for scaling group("Backend server quota exceeded in load balancer "lb-xxxxxxx"."). | Server Load Balancer執行個體的後端伺服器組下可掛載ECS執行個體配額超出限制。 | |
Fail to create Instances into scaling group("The specified imageName does not exist."). | 鏡像名稱不存在。 | 請檢查伸縮配置,重新指定已存在的鏡像。 |
Fail to create Instances into scaling group("This resource type is not supported. Please try other resource types."). | 可用性區域下無指定的資源類型。 | 建議在伸縮組中設定多可用性區域,並在伸縮配置中設定多執行個體規格,提高擴容成功率。更多資訊,請參見使用自訂伸縮配置建立伸縮組和建立伸縮配置。 |
Fail to create Instances into scaling group("The specified parameter SnapshotId is not exist."). | 磁碟快照不存在。 | 請檢查伸縮配置,重新指定已存在的磁碟快照。 |
Fail to create Instances into scaling group("Don't have enough private IPs in this switch"). | 虛擬交換器沒有足夠的私網IP。 | 請檢查伸縮配置關聯的虛擬交換器,調大虛擬交換器可用私網IP數量,或者在伸縮組配置中設定多可用性區域。更多資訊,請參見使用自訂伸縮配置建立伸縮組。 |
Fail to create Instances into scaling group("The specified parameter SystemDisk.Size is less than the image size."). | 系統硬碟容量小於鏡像檔案大小。 | 請檢查伸縮配置,增大系統硬碟容量或者使用佔用空間更小的鏡像。 |
Fail to create Instances into scaling group("Living postPaid disks quota exceeded."). | 當前帳號下現存的隨用隨付磁碟限額超過限制。 | 請聯絡客服或查看和提升資源配額申請調整配額。更多資訊,請參見ECS配額管理。 |
Fail to create Instances into scaling group("The specified ram role is not authorized for ecs, please check your role policy."). | Auto Scaling服務對應的RAM角色AliyunEssDefaultRole沒有包括ECS介面許可權。 | 請重新授權。 |
Fail to create instance into scaling group("The resource in the specified zone is no longer available for sale. Please try other regions and zones.") | 執行個體規格在指定可用性區域下已停止售賣。 | 請檢查伸縮組的設定,建議設定多個可用性區域。更多資訊,請參見使用自訂伸縮配置建立伸縮組。 |
Fail to create instance into scaling group("The resource is out of stock in the specified zone. Please try other types, or choose other regions and zones.") | 執行個體規格在指定可用性區域下已停止售賣。 | 建議在伸縮組中設定多可用性區域,並在伸縮配置中設定多執行個體規格,提高擴容成功率。更多資訊,請參見使用自訂伸縮配置建立伸縮組和建立伸縮配置。 |
Fail to create instance into scaling group("The specified parameter "KeyPairName" only support IoOptimized Instance.") | 執行個體規格為非I/O的最佳化執行個體規格,非I/O最佳化執行個體不支援通行金鑰對。 | 請檢查伸縮配置,調整伸縮配置執行個體規格為I/O最佳化執行個體規格,或者刪除KeyPair參數。 |
Fail to create instance into scaling group("A RAM role can't be used for classic instance.") | 傳統網路類型執行個體不支援RAM角色。 | 請檢查伸縮組的網路類型,建議您修改伸縮組網路類型為專用網路,或者移除伸縮配置中的RamRoleName參數。 |
Fail to create instance into scaling group("The specified parameter "RAMRoleName" does not exist.") | RAMRoleName不存在。 | 請登入存取控制控制台檢查當前RAM角色是否存在,或者指定其它RAM角色。 |
Fail to create instance into scaling group("The specified image does not support the specified InstanceType.") | 鏡像與執行個體規格不匹配。 | 請登入ECS售賣頁查看執行個體規格支援的鏡像,然後重新調整伸縮配置。 |
Fail to create instance into scaling group("The requested resource is sold out in the specified zone; try other types of resources or other regions and zones.") | 執行個體規格在伸縮組對應的可用性區域下庫存不足。 | 建議在伸縮組中設定多可用性區域,並在伸縮配置中設定多執行個體規格,提高擴容成功率。更多資訊,請參見使用自訂伸縮配置建立伸縮組和建立伸縮配置。 |