EBS Flashcards
root volume vs attached volume
data stored on root volume is lost when the instance is terminated
on attached volume - no
Database should be put on attached volume
an instance can have multiple attached EBS volumes
EBS
Elastic Block Store Volume is a network drive you can attach to your instances while they run and you can persist your data on it
not a physical drive, uses network to communicate with the instance, so there might be a latency
can be detached and attached to another instance quickly as long as they are in the same AZ
EBS and AZ
the volume is locked to AZ
to move volume across, you need to shapshot it first
EBS capacity
volume has a provisioned capacity so we need to specify how many GBs and IOPS we want when we create it
you get billed for what you provisioned, not what you are actually using
we can increase capacity as we go along
4 types of EBS volumes
- GP2 (SSD)
- IO1 (SSD)
- STI (HDD)
- SCI (HDD)
GP2
(SSD)
General purpose SSD volume that balances price and performance for a wide variety of workloads
can only be used as boot volume
IO1
highest-performance SSD volume for
- mission-critical applications
- that require sustained IOPS performance
- or more than 16000 IOPS per volume which is GP2 limit
low-latency or high-throughput workloads
can only be used as boot volume
STI
low cost HDD volume designed for frequently accessed, throughput-intensive workloads
streaming workloads requiring consistent, fast throughput at a low price
SC1
lowest cost HDD volume designed for less frequently accessed workloads
throughput oriented storage for large volumes of data that is infrequently accessed
EBS volumes are characterized in
Size
Throughput
IOPS - I/O Ops per second
GP2 use cases
- virtual desktops
- low-latency interactive apps
- development and test environments
GP2 size
1 GB - 16 TiB
GP2 volume IOPS
small GP2 volume can burst IOPS to 3000
max IOPS on GP2 is 16000
the rule is 3 IOPS per GB. If you change the size of the volume, IOPS changes too, but never goes over 16000
IO1 use cases
large database workloads
MongoDB, Cassandra, MS SQL, Oracle …
when you have a critical database
IO1 size
4 GB - 16 TiB
IO1 volume IOPS
min 100 - max 64000 (for Nitro instances), for others 32000
IOPS is provisioned and is called PIOPS. When we change the instance size - the IOPS doesn’t change automatically with it. You need to change it.
max 50 IOPS for 1 GB
ST1 usage
Big data, Data warehouses, Log processing, Apache Kafka
ST1 size
500 GiB - 16 TiB
ST1 IOPS
max 500
max throughput 500 MiB/s - can burst
SC1 size
500 GiB - 16 TiB
SC1 IOPS
250 max
max throughput 250 MiB/s - can burst
so it’s less good and cheaper ST1
disk I/O (i.e. from EBS volumes)
is bandwidth dependent.
throughput
throughput measures the rate at which messages arrive at their destination successfully. Average data throughput tells the user how many packets are arriving at their destination.
measured in bits per second (bps)
network latency
the speed of traffic on your network.
expressed in milliseconds (ms).
The most common measure of latency is called ‘round trip time’ (RTT). As the name suggests, this is the time it takes for a packet to get from one point on the network to another.
Latency from a general point of view is a time delay between the cause and the effect of some physical change in the system being observed, but, known within gaming circles as “lag”, latency is a time interval between the input to a simulation and the visual or auditory response, often occurring because of network delay in online games.