EC2 Hibernate Flashcards
What is the difference between stopping an EC2 Instance and terminating an EC2 instance?
- If we stop the instance, data is kept on the disk (with EBS) and remains on the disk until the EC2 instance is started again.
- If the instance is terminated, then (by default) the RDV will also be terminated
In order, what are the three things that happen when you start an EC2 instance?
- The Operating System boots up
- The user data script (bootstrap scripts) are run
- Applications start (can take some time)
With EC2 Hibernate, what happens when you start your instance out of hibernation?
- The EBS root volume is restored to its previous state
- The RAM contents are reloaded
- The processes that were previously running on the instance are resumed
- Previously attached data volumes are reattached and the instance retains its instance ID
With EC2 Hibernate, what happens when you hibernate an instance?
- The OS is told to perform a hibernation (suspend-to-disk)
- Hibernation saves the contents from the instance memory (RAM) to its EBS root volume and any attached Amazon EBS data volumes
What is the core benefit of EC2 Hibernate?
It is much faster to load up because the OS does not need to reboot becuase the in-memory state (RAM) is preserved.
What Instance families are eligible for EC2 Hibernate?
C3, C4, C5, M3, M4, M5, R3, R4, R5
{C, M, R} x {3, 4, 5}
For what types of use cases is EC2 Hibernate most useful?
- Long-running Processes
- Services that take a long time to initialize
What is the limit on the RAM size of an EC2 instance in order to use EC2 Hibernate?
150 GB
For what operating systems is EC2 Hibernate available?
- Windows
- Amazon Linux 2 AMI
- Ubuntu
For how long does EC2 Hibernate allow you to hibernate an instance?
up to 60 days
For what types of EC2 Instance pricing structures is EC2 Hibernate available?
On-Demand Instances and Reserved Instances
What is the difference between stopping an EC2 Instance and hibernating it?
-
Minor Billing Difference:
- When hibernating, you get billed while the instance is in the stopping state, but not while it is stopped
- When stopping, you stop getting billed once the instance is in the stopping state.
-
Contents of Memory (RAM):
- When hibernating, the memory contents (RAM) is saved to a file on the root device,
- When stopping, the RAM is erased