简体   繁体   English

AWS EC2 按需定价

[英]AWS EC2 On-Demand Pricing

I'm new to AWS EC2, and I wanted to deploy a web server in it.我是 AWS EC2 的新手,我想在其中部署一个 web 服务器。 However I'm concerned about the price because the app will only be used for a few hours per day and I saw in the AWS Calculator that there's a Utilization per month as part of the billing computation https://calculator.aws/#/createCalculator/EC2 .但是我担心价格,因为该应用程序每天只会使用几个小时,而且我在 AWS 计算器中看到每个月的利用率作为计费计算的一部分https://calculator.aws/#/创建计算器/EC2

What does the Utilization mean?利用率是什么意思? Let's say I have a running EC2 instance.假设我有一个正在运行的 EC2 实例。 How do I reduce the charges?我如何减少费用?

Does it depend on the amount of times the server APIs are invoked in the app?它是否取决于在应用程序中调用服务器 API 的次数? So for the hours that the APIs are NOT being invoked, I won't get charged?那么对于未调用 API 的时间,我不会被收费吗?

Or或者

Will it keep on charging me as long as the EC2 instance is running so I should shut it down during idle hours to save up on costs?只要 EC2 实例在运行,它是否会继续向我收费,因此我应该在空闲时间将其关闭以节省成本?

Amazon EC2 is charged at an hourly price . Amazon EC2按小时收费 The price varies by the Instance Type and the Operating System.价格实例类型和操作系统而异。 Basically, machines with more memory and more CPUs are more expensive, and Windows is more expensive than Linux. There is also a charge for Data Transfer, which is traffic that goes out to the Inte.net.基本上,具有更多 memory 和更多 CPU 的机器更昂贵,而 Windows 比 Linux 更昂贵。还有数据传输费用,这是传到 Inte.net 的流量。

If you have a small application, an alternative would be to use Amazon Lightsail, which offers a simple monthly price for both the computer and the traffic.如果您有一个小型应用程序,另一种方法是使用 Amazon Lightsail,它为计算机和流量提供简单的月度价格

As long as the servers are up and running you will be charged for it.只要服务器正常运行,您就会为此付费。 So yes, you should shut it down during idle hours if you want to save costs.所以是的,如果你想节省成本,你应该在空闲时间关闭它。

If you just want to try it out for a simple Rest API server, you can create a new account for a 12-month free tier that will basically entitle you to the smallest 24/7 running (750 hours/month) server.如果您只是想尝试一个简单的 Rest API 服务器,您可以为 12 个月的免费套餐创建一个新帐户,这基本上将使您有权使用最小的 24/7 运行(750 小时/月)服务器。

I've used this server for one of my smaller projects, and it was enough to serve about 100 users in total, with about maximum 10 people coming in and out time to time per day.我已经将这台服务器用于我的一个较小的项目,它足以为总共大约 100 个用户提供服务,每天最多大约有 10 人进出。 Had no problem with it.没问题。

AWS EC2 免费套餐

I've added my response to each of your questions -我已经添加了对您的每个问题的回复 -

What does the Utilization mean?利用率是什么意思? Let's say I have a running EC2 instance.假设我有一个正在运行的 EC2 实例。 How do I reduce the charges?我如何减少费用? - You will be charged for the time you let that EC2 instance running, start with a t2.micro under free tier account, you are allowed to run it for 750 hours a month! -您将根据让 EC2 实例运行的时间付费,从免费套餐帐户下的 t2.micro 开始,您可以每月运行 750 小时!

Does it depend on the amount of times the server APIs are invoked in the app?它是否取决于在应用程序中调用服务器 API 的次数? So for the hours that the APIs are NOT being invoked, I won't get charged?那么对于未调用 API 的时间,我不会被收费吗? - No, for EC2, it's the runtime and not the API queries. -不,对于 EC2,它是运行时而不是 API 查询。

Will it keep on charging me as long as the EC2 instance is running so I should shut it down during idle hours to save up on costs?只要 EC2 实例在运行,它是否会继续向我收费,因此我应该在空闲时间将其关闭以节省成本? - Shut it down, I would also to setup billing alarms to get an alert once my bill crosses a certain threshold -关闭它,我还会设置账单警报,以便在我的账单超过某个阈值时收到警报

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

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