Amazon 在 EC2 上提供两种实例类型:1) 按需实例和 2) 预留实例。在阅读了有关这些的文档后,我并没有真正理解从最终用户角度来看的差异。更具体地说,我想知道这个问题的答案:对于 Web 应用程序来说,哪个更好?
根据它们的名称和描述,似乎按需实例如果不使用,可能会从服务器上完全删除,这意味着当请求最终到来时,它们需要重新启动。对于一个网站来说是非常糟糕的事情。我只是误解了文档吗?
谢谢!
Amazon offers two instance types on EC2: 1) On-Demand and 2) Reserved. After reading the docs on these, I don't really understand the difference from an end-user perspective. More specifically, I'd like to know the answer to this question: is one or the other better for web applications?
Based on their names and descriptions, it seems as though on-demand instances may get wiped away from the server altogether if they're not in use which means that they need to be restarted when a request finally does come in. That seems like a pretty bad thing for a website. Am I just misinterpreting the docs?
Thanks!
发布评论
评论(1)
对于预留实例,您必须在 1 年或 3 年期间预先支付一些现金。这允许您以较低的价格运行服务器(大约每小时半价)。除此之外,它的工作原理、是否会被擦除或其他什么都没有区别。因此,如果您希望服务器 24/7 运行一年或更长时间,那么保留实例对您来说将是一个更便宜的解决方案。
A reserved instance you have to pay some cash up front for either a 1 or 3 year period. This allows you to run the server at a reduced price (about half price per hour). Other than that, there's no difference regarding how it works, if it'll get wiped or anything. So if you expect to be running a server 24/7 for a year or longer, a reserved instance would be a cheaper solution for you.