简体   繁体   English

AWS预留实例和Elastic Beanstalk的可用性区域

[英]AWS Reserved instances and Availability zones for Elastic Beanstalk

As I understand in order to take advantage of reserved instance pricing, the AZ of the reserved instance must match the AZ of my Elastic Beanstalk's EC2 instance. 据我了解,为了利用保留实例定价,保留实例的AZ必须与我的Elastic Beanstalk的EC2实例的AZ相匹配。

In order to achieve this I figure I would need to limit my EB app to just one availability zone. 为了实现这一目标,我认为我需要将EB应用程序限制为仅一个可用区。 This would guarantee my main instance is running in the discounted AZ. 这将确保我的主实例在折扣后的AZ中运行。

But by doing this additional instances would also be locked into this zone potentially reducing availability. 但是通过这样做,其他实例也将被锁定在该区域中,从而可能降低可用性。

Are these assumptions correct? 这些假设正确吗? And if so how can I work around them so that my main instance is always in the discounted zone, and additional instances can be in another zone? 如果是这样,我该如何解决它们,以便我的主实例始终位于折扣区域中,而其他实例可以位于另一个区域中?

You assumptions are right. 您的假设是正确的。

Reserved instances are bound to the availability zone (though they recently started allowing the AZ modification before the tenure expiry - http://aws.amazon.com/about-aws/whats-new/2013/09/11/amazon-ec2-now-offers-reserved-instance-modifications/ ). 保留实例绑定到可用区(尽管它们最近开始在任期届满之前允许对AZ进行修改-http: //aws.amazon.com/about-aws/whats-new/2013/09/11/amazon-ec2-现在提供保留实例修改/ )。

The only thing you can ensure is that out of the many AZ which you choose in beanstalk, keep them as much same as the Reserved instances. 您唯一可以确保的是,在beantalk中选择的多个AZ中,将其与Reserved实例保持相同。 In AWS words "If you purchased Reserved Instances, you need to specify the same Availability Zone(s) that you specified when you purchased your Reserved Instances" http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.managing.as.html 在AWS词中:“如果您购买了预留实例,则需要指定与购买预留实例时指定的可用区域” 。http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using -features.managing.as.html

您是否可以购买两个RI并将它们放在两个不同的可用区中,并将您的EB限制为这两个可用区,那么至少您有一些冗余。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM