前言
与按需实例相比,预留实例有不错的折扣,能显著降低成本,如果有确定的长期需求可以通过购买预留实例节省最多75%的成本。而预留实例又分为三种:全部预付费、部分预付费和无预付费。很多人都是吃码子来使用AWS的,但是积分无法抵扣预付费,所以最好购买无预付费类型的RI实例,但是在购买的时候可能会提示:
错误 : Your current quota does not allow you to purchase the required number of reserved instances (Service: AmazonEC2; Status Code: 400; Error Code: ReservedInstancesLimitExceeded; Request ID: c592fccd-b96e-46c2-ad80-3c6bd1acfd26; Proxy: null)
可以看出报错显示当前服务配额不允许购买RI实例,那我们就需要检查一下当前RI实例的配额。查看配额步骤为:进入EC2控制台->选中左侧“限制”->找到“预留实例”(AWS Console -> Limits -> “Reserved Instances”),但是我们会发现当前限制已经为20,并没有达到配额限制,却依然无法购买RI实例,这是怎么回事呢?其实是因为这里的配额不包括无预付预留实例的原因。上个月我也遇到了这个问题,以下是我的解决过程。
提交工单提升配额
发现已经有配额还无法购买之后,我就点击了右上角的“请求提高限制”,接着就会跳转到新建工单界面,我们提交工单申请提高限额就行了,工单类型选择“Service limit increas”,选择需要提高配额的服务类型,还要选择区域,描述里就写自己无法购买RI实例,请求提高限额。如图。
工单提交之后,第二天中午直接一个美国的电话打过来,对面操着一口咖喱味浓重的英语,我听了半天也就听懂说限额已经是我要求的20了,留下了英语垃圾的眼泪。。。不过还好在工单系统里还是有文字回复了的。
I see that you’ve requested for limit increase of EC2 Reserved instance purchase limit to 20. No worries, I’ll be more than happy to assist.
Upon carefully reviewing, I see the current limit is already 20 for EC2 Reserved instance purchase limit in Tokyo region for All Upfront and Partial upfront payment types. Please reply on this case, if you’re looking to purchase Reserved instance of No-upfront Payment type, such that I can reach out to the internal service team to look for limit increase.
意思就是说我要求提高到20台,实际上已经有20台配额了,但是,这后面的是什么?如果要购买无预付费的RI实例还需要再跟他联系!原来控制台里的配额不包括无预付费的!当时折腾好久都不能买我还以为我这个账号被限制成了黑号,没想到就是这么简单的原因,果断回复要开通无预付费RI实例的权限。
不久就回复了:
I understand now that you’re looking to purchase Reserved instance of No upfront type in Tokyo region.
I’d like to inform you that this limit increase request can be processed only by the Service team as we have certain limitations to process these type of requests. Hence, I’ve reached out to service team to avoid any delay.
所以其实工单团队是没有权限提高配额的,最后还是要转给服务团队来审核的,接下来就是等回复了。接下来等了足足三天才收到回复
I’m happy to inform you that your requested limit for purchasing No-Upfront EC2 Reserved instance in Tokyo region is approved. You will now be able to purchase EC2 Reserve instance of No-Upfront Payment type in Tokyo region.
开通成功!这样就可以购买无预付的Ri实例了。
现在买服务器,服务器本身的配置并不贵,贵的是流量。Cloudflare就发表一篇文章来批评亚马逊的流量,实在是太贵了。