- Implementing Modern DevOps
- David Gonzalez
- 325字
- 2021-07-08 10:11:19
Storage in AWS and EC2
Up until now, we have exposed how to create machines and networking infrastructure in AWS. One important thing when building applications is the storage of the data. By default, when we launch a machine in EC2, there are two types of storage that can be associated with the machine in the root volume in order to run the operating system:
Instance storage backed images
Amazon Elastic Block Store (Amazon EBS) storage backed images
The first one, instance storage backed images, relies on the storage associated with the image to mount and run the root volume. This means that the data stored in the image will be lost once the machine is terminated (these type of images do not support the stop action; they just support termination).
The second type of instances are the ones backed by EBS. Elastic Block Store is the name that AWS gives to its storage capabilities. With EBS, the user can create and destroy volumes (block devices) as needed as well as snapshots: we can create a copy of a running image before carrying a risky operation so we can restore it if something goes wrong.
The type of storage can vary depending on our needs: you can create things from magnetic block devices to SSD drives as well as general-purpose units that can cover a lot of the use cases in all the applications.
In general, all the instances are backed by EBS as the fact that the storage is a logically segregated from compute enables us to do things such as resizing an instance (for example, creating a more powerful instance) without losing the data.
Several volumes can be mounted into the same EC2 instance that gets exposed to it as if a physical device were attached to it, so if we are using a Linux-based image (such as Ubuntu), we can use the mount command to mount the devices into folders.
- HoloLens Beginner's Guide
- Oracle Database In-Memory(架構與實踐)
- Vue.js快跑:構建觸手可及的高性能Web應用
- Web開發的貴族:ASP.NET 3.5+SQL Server 2008
- JavaScript+jQuery開發實戰
- SQL Server從入門到精通(第3版)
- 單片機C語言程序設計實訓100例
- Learning Unreal Engine Android Game Development
- Statistical Application Development with R and Python(Second Edition)
- Scala for Machine Learning(Second Edition)
- Fast Data Processing with Spark(Second Edition)
- OpenStack Networking Essentials
- Scratch編程從入門到精通
- C語言程序設計實驗指導與習題精解
- C#程序開發參考手冊