管理预留的 Amazon EC2 实例

发布于 2024-09-18 08:40:34 字数 305 浏览 1 评论 0原文

我正在编写一个应用程序,并且一直为我的 EC2 实例支付小时费率,因为我需要进行测试。我决定我应该只支付一个预留实例的费用,从长远来看可以省钱,但现在我有了一个,我对应该如何管理它感到困惑。在 EC2 管理控制台的“实例”部分中,我可以看到我过去启动的实例,并且可以根据需要停止/启动它们。但是,查看我的预留实例的唯一方法似乎是使用“预留实例”下拉列表,但这似乎只能让我查看它们,但没有其他...

所以,我的问题是,如何对保留实例执行与每小时实例相同的操作?我基本上只是想将我的弹性 IP 与我的保留实例相关联并在其上安装我的服务器映像。

谢谢!

I'm writing an app and had been paying an hourly rate for my EC2 instance, as I've needed to test. I decided I should just pay for a reserved instance to save money in the long run, but now that I have one, I'm confused about how I'm supposed to manage it. In the "Instances" section of the EC2 management console, I can see the instances that I've launched in the past, and I can stop/start them as I see fit. However, it seems the only way to view my reserved instance is to use the "Reserved Instances" drop-down, but this only seems to let me view them, but nothing else...

So, my question is, how can I do the same thing with my reserved instance(s) that I've been doing with my hourly instance(s)? I basically just want to associate my elastic IP with my reserved instance and install my server image on it.

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寄与心 2024-09-25 08:40:34

我相信人们普遍对此感到困惑。在 EC2 中,预留实例与按需实例相同。它们显示在同一部分,它们的电源打开/关闭相同,等等。预订主要仅在计费时相关。

这些文档介绍了容量预留如何与按需配合使用基本上

,您会创建一段特定时间的预留。在此时间范围内,如果您运行的 EC2 按需实例与您账户上的可用容量预留相匹配,则您的账单将不会产生按需实例的每小时(或其次,取决于实例类型)费用。如果您将该实例更改为不满足预留的类型,例如将 t2.large 升级到 m4.large,那么您将立即开始按 m4.large 的新费率付费。

如果您正在寻找一种方法来帮助报告帐户上的预留与非预留计算资源,我发现 Billing and Cost Explorer 控制台对此非常有用。如果您按 EC2 计算时间付费(您仍然需要为 EBS、数据、快照、ELB 等内容支付 EC2 账单),那么您的账户上有未预留的计算容量。

您可以利用 AWS CLI 提取您的预留数量以及您拥有的实例类型的数量,并进行比较。

I believe people are commonly confused by this. In EC2, Reserved Instances are the same as On Demand instances. They show in the same section, they power on/off the same, etc. The reservation is mainly only relevant when it comes to billing.

These documents describe how Capacity Reservations work with On Demand instances.

Basically, you create a reservation for a certain amount of time. During that time frame, if you have an EC2 On Demand instance running that matches an available Capacity Reservation on your account, then your billing will not incur the hourly (or secondly, depending on instance type) fee for the On Demand instance. If you change that instance to a type that does not satisfy the reservation, such as upgrading a t2.large to an m4.large, then you will immediately begin being charged for the new rate of the m4.large.

If you're looking for a method to help with reporting of Reserved vs Non Reserved compute resources on your account, I've found that the Billing and Cost Explorer console is very useful for this. If you are being billed for EC2 compute hours (you will still have EC2 bill for things like EBS, data, snapshots, ELB, etc) then you have compute capacity on your account that is not reserved.

You can leverage the AWS CLI to pull numbers for your reservations, and quantities of instance types that you have, and do comparisons.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文