弹性伸缩服务问题排查指南

本文主要涉及两个方面的内容:

  • 伸缩活动异常原因及对应的解决方案
  • 弹性伸缩服务常见问题指南

异常伸缩活动

伸缩活动拒绝执行

伸缩活动详细信息 原因及解决方案
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或者负载均衡实例,负载均衡实例的添加限制可以参考官方文档AttachLoadBalancers
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 实例是否可以加入到多个伸缩组中?

  • 暂不支持

猜你喜欢

转载自yq.aliyun.com/articles/691393