可以在Amazon EC2实例预留自动缩放在AWS弹性魔豆可以用吗? [英] Can Amazon EC2 reserved instances be used with auto-scaling in AWS Elastic Beanstalk?
问题描述
据我了解AWS弹性魔豆将允许您设置自动缩放,这意味着你可以使用一个微型的实例一夜之间,再说了,白天自动扩展。你仍然可以保留EC2实例定价的优势,如果你做到这一点?
更新
AWS刚刚宣布修改EC2实例保留预订的支持,它去除了两个前限制(我已经相应地更新我最初的回答):
今天,我们正在将保留实例模型更加灵活, 让您修改预留实例的功率(RI的)时, 您的需求变化。现在,您可以将您的RI的可用性之间 区只要你留在同一个地区。如果您的AWS账户 启用了EC2-经典,你也可以将您的RI的间 EC2古典和EC2-VPC。现在,您可以调整您的保留 实例为您的需求和结构的变化。
最初的回答(更新)
您仍然可以保留EC2实例定价的优势,如果你做到这一点?
当然,亚马逊EC2 保留例如计费和使用的透明处理,即AWS简单适用的保留实例的定价,只要你可以保留按类型,地区和可用区域相匹配的运行的那些情况,请参见下面的常见问题解答的详细信息:
- <一个href="http://aws.amazon.com/ec2/faqs/#How_do_I_control_which_instances_are_billed_at_the_Reserved_Instance_rate">How做我控制哪些情况下被宣传的保留实例率是多少?
该RunInstances命令不会点播和保留实例的区别。当计算您的账单,我们的系统将自动优化哪些实例收取较低的保留实例率,以确保您始终支付最低的金额。
谨防关于如何从该虚拟池实例,虽然匹配的限制,例如:
-
能,我已经买了一个特定的实例类型(即高CPU超大型一个保留实例实例)被应用到我运行(即标准大实例)不同的实例类型?
号每个保留实例都与一个特定的实例类型相关联,并且只能应用于该实例类型为保留实例术语的持续时间 -
是否可以将一个保留实例从一个地区到另一个?
每个号保留实例与所定的保留实例的生命周期,并不能改变特定区域相关联。 -
<一个href="http://aws.amazon.com/ec2/faqs/#Do_I_need_to_specify_an_Availability_Zone_when_I_launch_my_instances">Do我需要指定一个可用性区域,当我启动,以便采取我的保留实例利用我的实例?
是。当您购买了保留实例您指定要预留该实例的可用区。为了使用该保留实例,你需要确保启动您的实例在同一个可用区。 [...]
后开始的实例没有明确指定一个可用性区域,这将产生一个随机依次时容易被忽略的。
As far as I understand AWS Elastic Beanstalk will allow you to set auto-scaling, which means that you can use a micro-instance overnight, say, and auto-scale up during the day. Can you still take advantage of reserved EC2 instance pricing if you do this?
Update
AWS has just announced support to Modify EC2 Reserved Instance Reservations, which removes two of the former restrictions (I've updated my initial answer accordingly):
Today we are making the Reserved Instance model even more flexible by giving you the power to modify your Reserved Instances (RI's) when your needs change. You can now move your RI's between Availability Zones as long as you stay within the same Region. If your AWS account is enabled for EC2-Classic, you can also move your RI's between EC2-Classic and EC2-VPC. You can now make adjustments to your Reserved Instances as your needs and your architecture change.
Initial Answer (updated)
Can you still take advantage of reserved EC2 instance pricing if you do this?
Absolutely, Amazon EC2 reserved instance billing and usage is handled transparently, i.e. AWS simply applies your reserved instance pricing as long as you have reserved instances available matching your running ones by type, region and availability zone, see the following FAQs for details:
- How do I control which instances are billed at the Reserved Instance rate?
The RunInstances command does not distinguish between On-Demand and Reserved Instances. When computing your bill, our system will automatically optimize which instances are charged at the lower Reserved Instance rate to ensure you always pay the lowest amount.
Beware of the restrictions regarding how instances from this virtual pool are matched though, e.g.:
Can a Reserved Instance that I’ve bought for a particular instance type (i.e. High-CPU Extra Large Instance) be applied to a different instance type that I am running (i.e. Standard Large Instance)?
No. Each Reserved Instance is associated with a specific instance type, and can only be applied to that instance type for the duration of the Reserved Instance term.Can I move a Reserved Instance from one Region to another?
No. Each Reserved Instance is associated with a specific Region that is fixed for the lifetime of the Reserved Instance and cannot be changed.Do I need to specify an Availability Zone when I launch my instances in order to take advantage of my Reserved Instances?
Yes. When you purchase a Reserved Instance you specify the Availability Zone in which you want to reserve that instance. In order to use that Reserved Instance, you need to ensure that you launch your instance in that same Availability Zone. [...]
The latter is easily overlooked when starting instances without explicitly specifying an availability zone, which will yield a random one in turn.
这篇关于可以在Amazon EC2实例预留自动缩放在AWS弹性魔豆可以用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!