天天看點

彈性伸縮服務問題排查指南

本文主要涉及兩個方面的内容:

  • 伸縮活動異常原因及對應的解決方案
  • 彈性伸縮服務常見問題指南

異常伸縮活動

伸縮活動拒絕執行

伸縮活動詳細資訊 原因及解決方案
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. 伸縮組配置的負載均衡執行個體狀态不是active狀态,請确認下負載均衡執行個體是否正常工作。
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. 伸縮組配置的負載均衡執行個體不存在,建議修改伸縮組重新設定負載均衡執行個體,設定負載均衡執行個體的注意事項可參考官方文檔 AttachLoadBalancers
Ess should be authorized in ram to operate user resource. 主賬号未給目前子賬号授權操作彈性伸縮服務相關資源,建議登入 通路控制控制台 授權後繼續操作。
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,伸縮組暫時無法執行伸縮活動,建議檢查對應的虛拟交換機狀态,稍後重試。
Alarm history of specific alarm rule is not found.
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執行個體所屬的專有網絡(VPC)與伸縮組對應的專有網絡不同,專有網絡伸縮組内的ECS執行個體必須與伸縮組屬于同一個專有網絡,或者ECS執行個體網絡類型為經典網絡。
The specified virtual switch and the instance in Load Balancer "xxxxx" are not in the same VPC. 伸縮組設定的負載均衡執行個體與伸縮組設定的虛拟交換機(Vswitch)所屬的專有網絡(VPC)不同,建議重新設定Vswitch或者負載均衡執行個體,負載均衡執行個體的添加限制可以參考官方文檔
Instance "xxxx" is already attached to another scaling group. 同一個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."). 目前伸縮組狀态不支援移除執行個體操作。詳情請見 執行個體移除
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不存在,請确認指定鏡像是否已删除,修改伸縮配置指定有效的鏡像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."). 伸縮組擴容失敗,您的按量執行個體已超過限額,請聯系客服或送出工單申請更高按量執行個體限額。
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優化執行個體,請修改系統盤類型,建議值:高效雲盤(cloud_efficiency),SSD雲盤(cloud_ssd)。
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),當伸縮組擴容時,生命周期挂鈎被觸發,并且生命周期挂鈎最終的執行結果為Abandon,導緻擴容伸縮活動復原,擴容出來的 ECS 執行個體被釋放。更多關于生命周期挂鈎的相關資訊可參考 AutoScaling 生命周期挂鈎功能
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"."). 負載均衡的後端可挂載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."). 目前賬号下現存的按量磁盤限額超過限制限制,建議提供工單或者聯系客戶申請調整配額。
Fail to create Instances into scaling group("The specified ram role is not authorized for ecs, please check your role policy."). 彈性伸縮服務對應的RAM角色AliyunEssDefaultRole沒有授予ECS接口權限,建議參考 AutoScaling授權指南 重新操作授權。
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.") 伸縮配置設定的執行個體規格在伸縮組對應的可用區庫存不足,建議您的

常見問題指南

如何避免由于 ECS 執行個體某個規格庫存不足導緻彈性伸縮服務擴容失敗的問題?

  • 建議在建立伸縮組的時候設定多可用區(可用區不同的Vswitch),建立伸縮配置的時候選擇多執行個體規格,當某個ECS執行個體規格在某個可用區沒有庫存時,彈性伸縮服務會自動切換到有庫存的執行個體規格規格及可用區進行擴容。 伸縮配置多執行個體規格 伸縮組多可用區

報警任務和定時任務同時觸發,有執行優先級嗎?哪個先執行?

  • 報警任務與定時任務互相獨立,由于目前伸縮組同一時間隻能執行一個伸縮活動,先觸發伸縮活動的任務會被執行,另外一個任務觸發的伸縮活動會被拒絕執行。

ECS 執行個體是否可以加入到多個伸縮組中?

  • 暫不支援

繼續閱讀