概念
Amazon EC2 instance store
Temporary block storage on disks inside the host computer that runs your EC2 instance.
このレッスンはまだ翻訳されていないため、英語で表示しています。
Reboot
- EBS
- Data kept
- Instance store
- Data kept
Stop or hibernate
- EBS
- Data kept
- Instance store
- Data erased
Terminate
- EBS
- The root volume is deleted by default. You can choose to keep any volume.
- Instance store
- Data erased
Use on another instance
- EBS
- Detach the volume and attach it to an instance in the same AZ
- Instance store
- Not possible. Copy the data yourself.
Cost
- EBS
- Billed for the storage you set up
- Instance store
- Included in the instance price
| 比較項目 | EBS | Instance store |
|---|---|---|
| Reboot | Data kept | Data kept |
| Stop or hibernate | Data kept | Data erased |
| Terminate | The root volume is deleted by default. You can choose to keep any volume. | Data erased |
| Use on another instance | Detach the volume and attach it to an instance in the same AZ | Not possible. Copy the data yourself. |
| Cost | Billed for the storage you set up | Included in the instance price |
1 / 2
Reboot
- EBS
- Data kept
- Instance store
- Data kept
Stop or hibernate
- EBS
- Data kept
- Instance store
- Data erased
Terminate
- EBS
- The root volume is deleted by default. You can choose to keep any volume.
- Instance store
- Data erased
| 比較項目 | EBS | Instance store |
|---|---|---|
| Reboot | Data kept | Data kept |
| Stop or hibernate | Data kept | Data erased |
| Terminate | The root volume is deleted by default. You can choose to keep any volume. | Data erased |
2 / 2
Use on another instance
- EBS
- Detach the volume and attach it to an instance in the same AZ
- Instance store
- Not possible. Copy the data yourself.
Cost
- EBS
- Billed for the storage you set up
- Instance store
- Included in the instance price
| 比較項目 | EBS | Instance store |
|---|---|---|
| Use on another instance | Detach the volume and attach it to an instance in the same AZ | Not possible. Copy the data yourself. |
| Cost | Billed for the storage you set up | Included in the instance price |
概要
An instance store gives an Amazon Elastic Compute Cloud (Amazon EC2) instance temporary block storage. It uses disks that are physically attached to the host computer the instance runs on, so it is fast. Only some instance types include it, and its size depends on the instance type. Its cost is included in the price of the instance.
The data lasts only while the instance runs on that host. It survives a reboot. It is erased when the instance stops, hibernates or terminates, and it is lost if the underlying disk fails. An instance store volume cannot be detached or attached to another instance.
概要
Use it for data that changes often and can be lost, such as buffers, caches and scratch space (temporary working files). It also suits data that is copied across a group of instances, such as a pool of web servers. For data you must keep, use Amazon Elastic Block Store (Amazon EBS), Amazon S3 or Amazon EFS.
覚えること
- Block storage on disks inside the host, so it is fast.
- Temporary: data survives a reboot, but not a stop, hibernation or termination.
- No extra charge: it comes with the instance types that have it.
- Cannot be detached or moved to another instance.
- Good for caches, buffers, scratch data and data copied across many instances.
試験では
- “Temporary block storage for a cache or scratch data, included in the instance price” points to instance store.
- “The data must survive when the instance is stopped” rules out instance store. Use Amazon EBS.