Lightsail和EC2有什么区别? [英] What is difference between Lightsail and EC2?

查看:1277
本文介绍了Lightsail和EC2有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,亚马逊推出了 Lightsail 。它们之间有什么区别吗?如果是,那有什么区别?是Lightsail实例比EC2更强大吗?

解决方案

Testing¹通过 <$ c揭示了Lightsail实例实际上是EC2实例。 $ c> t2 类可爆实例。



EC2当然具有比实例更多的实例族和类。 t2,几乎所有这些功能都比这些功能更强大(或为某些任务配备得更好),但价格也要高得多。但是为了进行有意义的比较,512 MiB Lightsail实例的规格似乎与价格相似的t2.nano完全等效,1GiB是t2.micro,2 GiB是t2.small,等等。



Lightsail是一种轻型,简化的产品产品-硬盘是固定大小的EBS SSD卷,实例在停止时仍可计费,安全组规则的灵活性较差,并且子集非常有限可以访问EC2的功能和选项。



它也具有大大简化的控制台,即使这些机器在EC2中运行,您也无法在AWS控制台的EC2部分中看到它们。实例在特殊的VPC中运行,但是此方面也会自动设置,并且在控制台中不可见。 Lightsail支持(可选)将此隐藏VPC与同一AWS区域中的默认VPC对等,从而允许Lightsail实例访问同一AWS账户中默认VPC中的服务,例如EC2和RDS。

带宽是无限的,但是免费带宽当然不是-但是,在收取任何与带宽相关的费用之前,Lightsail实例确实包含大量的每月带宽限额。 Lightsail还具有简化的Route 53接口,功能有限。



但是,如果听起来像是缺点,那不是。 Lightsail的重点似乎很简单。 EC2(以及许多AWS)的灵活性不可避免地导致了复杂性。 Lightsail的目标市场似乎是那些只需要简单的VPS而无需浏览EC2,EBS,VPC和Route 53等AWS服务中可用的众多选项的人。这里几乎没有学习曲线。从技术上来说,您甚至都不需要知道如何使用带有私钥的SSH(Lightsail控制台甚至具有内置的SSH客户端),但是您无需使用它。您可以使用标准的SSH客户端正常访问这些实例。






¹ Lightsail实例,就像常规 EC2 (VPC和经典)实例,可以访问实例元数据服务,它允许实例发现有关其自身的事物,例如其实例类型和可用性区域。 Lightsail实例在实例元数据中标识为 t2 机器。



² Lightsail文档并未明确说明对等仅适用于您的默认VPC 的事实,但这似乎是事实。如果您的AWS账户是在2013年或之前创建的,那么您实际上可能没有一个带有 Default VPC名称的VPC。可以通过提交支持请求来解决,正如我在无法从Amazon Lightsail建立VPC对等连接(网址为服务器故障)。



³带宽限制适用于入站和出站流量;超过此总流量后,入站流量将继续免费,但出站流量将成为可计费的。请参见 Lightsail常见问题解答中的数据传输需要多少费用?


Recently Amazon launched Lightsail. Is there any difference between them? If yes, then what's the difference? Are Lightsail instances more powerful than EC2?

解决方案

Testing¹ reveals that Lightsail instances in fact are EC2 instances, from the t2 class of burstable instances.

EC2, of course, has many more instance families and classes other than the t2, almost all of which are more "powerful" (or better equipped for certain tasks) than these, but also much more expensive. But for meaningful comparisons, the 512 MiB Lightsail instance appears to be completely equivalent in specifications to the similarly-priced t2.nano, the 1GiB is a t2.micro, the 2 GiB is a t2.small, etc.

Lightsail is a lightweight, simplified product offering -- hard disks are fixed size EBS SSD volumes, instances are still billable when stopped, security group rules are much less flexible, and only a very limited subset of EC2 features and options are accessible.

It also has a dramatically simplified console, and even though the machines run in EC2, you can't see them in the EC2 section of the AWS console. The instances run in a special VPC, but this aspect is also provisioned automatically, and invisible in the console. Lightsail supports optionally peering this hidden VPC with your default VPC in the same AWS region, allowing Lightsail instances to access services like EC2 and RDS in the default VPC within the same AWS account.²

Bandwidth is unlimited, but of course free bandwidth is not -- however, Lightsail instances do include a significant monthly bandwidth allowance before any bandwidth-related charges apply.³ Lightsail also has a simplified interface to Route 53 with limited functionality.

But if those sound like drawbacks, they aren't. The point of Lightsail seems to be simplicity. The flexibility of EC2 (and much of AWS) leads inevitably to complexity. The target market for Lightsail appears to be those who "just want a simple VPS" without having to navigate the myriad options available in AWS services like EC2, EBS, VPC, and Route 53. There is virtually no learning curve, here. You don't even technically need to know how to use SSH with a private key -- the Lightsail console even has a built-in SSH client -- but there is no requirement that you use it. You can access these instances normally, with a standard SSH client.


¹Lightsail instances, just like "regular" EC2 (VPC and Classic) instances, have access to the instance metadata service, which allows an instance to discover things about itself, such as its instance type and availability zone. Lightsail instances are identified in the instance metadata as t2 machines.

²The Lightsail docs are not explicit about the fact that peering only works with your Default VPC, but this appears to be the case. If your AWS account was created in 2013 or before, then you may not actually have a VPC with the "Default VPC" designation. This can be resolved by submitting a support request, as I explained in Can't establish VPC peering connection from Amazon Lightsail (at Server Fault).

³The bandwidth allowance applies to both inbound and outbound traffic; after this total amount of traffic is exceeded, inbound traffic continues to be free, but outbound traffic becomes billable. See "What does data transfer cost?" in the Lightsail FAQ.

这篇关于Lightsail和EC2有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆