在 Elastic Beanstalk 负载均衡器中使用预留实例
Using reserved instances in an Elastic Beanstalk Load Balancer
我 运行 Elastic Beanstalk 负载均衡应用程序已经使用一年了。我正在寻找削减成本的方法,并且发现我可以使用预留的 ec2 实例而不是我们当前使用的按需实例。目前,我的负载均衡器使用两个实例。
我想进行转换,但不确定该过程实际是如何完成的。在做任何事情之前,我希望一切都crystal清楚。
根据我的理解,如果我为相同的可用性区域(eu-west1b 中的 1 个, eu-west1c 中的另一个)我可以将这些实例用于负载平衡器。我目前部署的同类型实例是否会立即低于预留实例的费率?我是否必须重建我的环境并构建两个与保留实例匹配的新实例?
一个预留实例一个pre-paying亚马逊EC2容量的方法。
如果您要购买两个预留实例(在您的情况下,2 x t2.large
Linux),那么在预留实例有效的一年中的每个小时,您将有权运行 匹配的实例类型 (2xt2.large
Linux) 不按小时收费。
无需识别哪个实例是预留实例。相反,计费系统将选择一个每小时 运行ning 的匹配实例,并且不会按小时计费。
因此,如果这些是 唯一匹配的实例 您正在 运行ning,那么它们将(默认情况下)被识别为预留实例并且不会按小时接收收费。但是,如果您 运行 其他实例,则无法控制 哪个 个实例获得定价优惠。
无论是否识别可用区,都可以购买预留实例。如果选择了一个AZ,那么Reserved Instance的pricing benefit只匹配那个AZ中的一个实例运行ning,还有一个capacity reservation 在 运行ning 实例与 Reserved Instance 匹配时给予您优先权。如果未选择任何可用区,则定价优惠适用于该区域 运行 个 任何 个实例,但没有容量预留。
底线: 是的,它将立即应用(针对您已购买预留实例的实例数)。不需要 start/stop/rebuild 任何东西。
对于任何想要比 John 的(正确)答案更确定的人,这里是关于这个主题的官方 AWS 文档:
In this scenario, you have a running On-Demand Instance (T2) in your account, for which you're currently paying On-Demand rates. You purchase a Reserved Instance that matches the attributes of your running instance, and the billing benefit is immediately applied. Next, you purchase a Reserved Instance for a C4 instance. You do not have any running instances in your account that match the attributes of this Reserved Instance. In the final step, you launch an instance that matches the attributes of the C4 Reserved Instance, and the billing benefit is immediately applied.
来自这里:http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-reserved-instances.html
我 运行 Elastic Beanstalk 负载均衡应用程序已经使用一年了。我正在寻找削减成本的方法,并且发现我可以使用预留的 ec2 实例而不是我们当前使用的按需实例。目前,我的负载均衡器使用两个实例。
我想进行转换,但不确定该过程实际是如何完成的。在做任何事情之前,我希望一切都crystal清楚。
根据我的理解,如果我为相同的可用性区域(eu-west1b 中的 1 个, eu-west1c 中的另一个)我可以将这些实例用于负载平衡器。我目前部署的同类型实例是否会立即低于预留实例的费率?我是否必须重建我的环境并构建两个与保留实例匹配的新实例?
一个预留实例一个pre-paying亚马逊EC2容量的方法。
如果您要购买两个预留实例(在您的情况下,2 x t2.large
Linux),那么在预留实例有效的一年中的每个小时,您将有权运行 匹配的实例类型 (2xt2.large
Linux) 不按小时收费。
无需识别哪个实例是预留实例。相反,计费系统将选择一个每小时 运行ning 的匹配实例,并且不会按小时计费。
因此,如果这些是 唯一匹配的实例 您正在 运行ning,那么它们将(默认情况下)被识别为预留实例并且不会按小时接收收费。但是,如果您 运行 其他实例,则无法控制 哪个 个实例获得定价优惠。
无论是否识别可用区,都可以购买预留实例。如果选择了一个AZ,那么Reserved Instance的pricing benefit只匹配那个AZ中的一个实例运行ning,还有一个capacity reservation 在 运行ning 实例与 Reserved Instance 匹配时给予您优先权。如果未选择任何可用区,则定价优惠适用于该区域 运行 个 任何 个实例,但没有容量预留。
底线: 是的,它将立即应用(针对您已购买预留实例的实例数)。不需要 start/stop/rebuild 任何东西。
对于任何想要比 John 的(正确)答案更确定的人,这里是关于这个主题的官方 AWS 文档:
In this scenario, you have a running On-Demand Instance (T2) in your account, for which you're currently paying On-Demand rates. You purchase a Reserved Instance that matches the attributes of your running instance, and the billing benefit is immediately applied. Next, you purchase a Reserved Instance for a C4 instance. You do not have any running instances in your account that match the attributes of this Reserved Instance. In the final step, you launch an instance that matches the attributes of the C4 Reserved Instance, and the billing benefit is immediately applied.