服务 · 存储
Amazon Elastic Block Store (Amazon EBS)
Block storage volumes that work as the hard drives of Amazon EC2 instances.
本课尚未翻译,暂以英文显示。
- 1The volume attaches to an EC2 instance in the same AZ and works as its disk.
- 2You take a snapshot. AWS keeps it in Amazon S3, and each later snapshot saves only the blocks that changed.
- 3You create a new volume from the snapshot, here in another AZ. You can also copy a snapshot to another Region.
- 4You attach the new volume to an instance in that AZ.
分步说明
- 1The volume attaches to an EC2 instance in the same AZ and works as its disk.
- 2You take a snapshot. AWS keeps it in Amazon S3, and each later snapshot saves only the blocks that changed.
- 3You create a new volume from the snapshot, here in another AZ. You can also copy a snapshot to another Region.
- 4You attach the new volume to an instance in that AZ.
Best for
- SSD-backed volumes
- Many small reads and writes: databases, boot volumes, interactive apps
- HDD-backed volumes
- Large, sequential reads and writes: big data, data warehouses, logs
Volume types
- SSD-backed volumes
- General Purpose SSD and Provisioned IOPS SSD
- HDD-backed volumes
- Throughput Optimized HDD and Cold HDD
Speed measured in
- SSD-backed volumes
- IOPS: read and write operations per second
- HDD-backed volumes
- Throughput: megabytes per second
Boot volume
- SSD-backed volumes
- Yes
- HDD-backed volumes
- No
| 比较项 | SSD-backed volumes | HDD-backed volumes |
|---|---|---|
| Best for | Many small reads and writes: databases, boot volumes, interactive apps | Large, sequential reads and writes: big data, data warehouses, logs |
| Volume types | General Purpose SSD and Provisioned IOPS SSD | Throughput Optimized HDD and Cold HDD |
| Speed measured in | IOPS: read and write operations per second | Throughput: megabytes per second |
| Boot volume | Yes | No |
1 / 2
Best for
- SSD-backed volumes
- Many small reads and writes: databases, boot volumes, interactive apps
- HDD-backed volumes
- Large, sequential reads and writes: big data, data warehouses, logs
Volume types
- SSD-backed volumes
- General Purpose SSD and Provisioned IOPS SSD
- HDD-backed volumes
- Throughput Optimized HDD and Cold HDD
| 比较项 | SSD-backed volumes | HDD-backed volumes |
|---|---|---|
| Best for | Many small reads and writes: databases, boot volumes, interactive apps | Large, sequential reads and writes: big data, data warehouses, logs |
| Volume types | General Purpose SSD and Provisioned IOPS SSD | Throughput Optimized HDD and Cold HDD |
2 / 2
Speed measured in
- SSD-backed volumes
- IOPS: read and write operations per second
- HDD-backed volumes
- Throughput: megabytes per second
Boot volume
- SSD-backed volumes
- Yes
- HDD-backed volumes
- No
| 比较项 | SSD-backed volumes | HDD-backed volumes |
|---|---|---|
| Speed measured in | IOPS: read and write operations per second | Throughput: megabytes per second |
| Boot volume | Yes | No |
是什么
Amazon Elastic Block Store (Amazon EBS) provides volumes that you attach to Amazon Elastic Compute Cloud (Amazon EC2) instances. An instance uses a volume like a local hard drive: to boot its operating system, run a database or store files. Data on a volume stays when the instance stops, and a volume can be kept after the instance is gone.
是什么
A volume lives in one Availability Zone and attaches to instances in that same AZ. AWS copies it within the AZ, so the failure of a single component loses no data, but this does not protect against the loss of the AZ. AWS does not back up your volumes for you. You take snapshots: incremental, point-in-time backups that AWS keeps in Amazon Simple Storage Service (Amazon S3). From a snapshot you can create a new volume in any AZ of the Region, or copy it to another Region.
是什么
Volumes come in two families. SSD-backed volumes suit work with many small reads and writes, such as boot volumes and databases. HDD-backed volumes suit large, sequential reads and writes, such as big data and log processing. You can grow a volume or change its type while it is in use, and encrypt it with keys from AWS Key Management Service (AWS KMS).
要记住
- Block storage for EC2: a volume works like a hard drive.
- Persistent: data survives a stop, and a volume can outlive its instance.
- One AZ: a volume and its instance must be in the same Availability Zone.
- Snapshots are incremental backups kept in S3. Use them to restore data, or to move a volume to another AZ or Region.
要记住
- Backups are your job: take snapshots yourself, or schedule them with AWS Backup.
- SSD volumes for transactions and boot volumes. HDD volumes for large, sequential throughput.
考试中
- “Persistent block storage for an EC2 instance” points to Amazon EBS.
- “Move an EBS volume to another Availability Zone” points to a snapshot, then a new volume created from it in that AZ.
- “Storage that many instances share at the same time” points to Amazon EFS. An EBS volume usually attaches to one instance at a time.
别和这些弄混
- Amazon EC2 instance storeTemporary block storage on disks inside the host computer that runs your EC2 instance.
Amazon Elastic File System (Amazon EFS)A serverless, shared file system for Linux that grows and shrinks on its own.
Amazon Simple Storage Service (Amazon S3)Object storage for any amount of data, kept in buckets and reached over the internet.