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

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

问题描述

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

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¹揭示 Lightsail 实例实际上是 EC2 实例,来自 t2 class 突发实例.

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

当然,EC2 除了 t2 之外还有更多的实例系列和类,几乎所有这些都比这些更强大"(或更好地完成某些任务),但也更昂贵.但是为了进行有意义的比较,512 MiB Lightsail 实例在规格上似乎与价格相似的 t2.nano 完全相同,1GiB 是 t2.micro,2 GiB 是 t2.small,等等.

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 是一种轻量级、简化的产品——硬盘是固定大小的 EBS SSD 卷,实例在停止时仍需计费,安全组规则的灵活性要低得多,并且只能访问非常有限的 EC2 功能和选项子集.

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.

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

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.²

带宽是无限的,但免费带宽当然不是——但是,Lightsail 实例确实包含了大量的每月带宽限额,然后才会收取任何与带宽相关的费用.³Lightsail 还具有简化的 Route 53 界面,但功能有限.

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.

但如果这些听起来像是缺点,那它们就不是.Lightsail 的重点似乎很简单.EC2(以及大部分 AWS)的灵活性不可避免地导致复杂性.Lightsail 的目标市场似乎是那些只想要一个简单的 VPS"而不必浏览 AWS 服务(如 EC2、EBS、VPC 和 Route 53)中可用选项的人.这里几乎没有学习曲线.从技术上讲,您甚至不需要知道如何通过私钥使用 SSH——Lightsail 控制台甚至有一个内置的 SSH 客户端——但没有要求您使用它.您可以使用标准 SSH 客户端正常访问这些实例.

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 实例,就像常规"EC2(VPC 和经典)实例一样,可以访问 实例元数据服务,它允许一个实例发现关于它自己的事情,比如它的实例类型和可用区.Lightsail 实例在实例元数据中被标识为 t2 机器.

¹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.

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

²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).

³带宽限额适用于入站和出站流量;超过此总流量后,入站流量将继续免费,但出站流量将开始计费.请参阅Lightsail 常见问题中的数据传输费用是多少?".

³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天全站免登陆