Amazon EC2 SAA 高频

EC2 Lifecycle: Reboot, Stop, Hibernate, and Terminate

EC2 Instance Lifecycle and Hibernation

EC2hibernationlifecycleEBS
Last organized

Compare what happens to memory, EBS, instance store, addresses, and charges during EC2 lifecycle operations.

Core comparison

OperationRAM and processesEBSInstance storeStart again?
RebootThe OS restartsRetainedUsually retainedReturns to Running
StopClearedRetainedLostYes
HibernateRAM is written to the encrypted root EBS volume and later restoredRetainedLostYes
TerminateClearedControlled by Delete on TerminationLostNo

Hibernation must be enabled at launch and requires a supported AMI, OS, and instance type plus an encrypted root EBS volume with enough capacity.

Boundaries

  • Hibernation preserves runtime state; it is not backup, snapshot, DR, or Multi-AZ HA.
  • Compute charges stop after stop/hibernate, but EBS and public IPv4 resources can still cost money.
  • The primary private IPv4 normally remains; an auto-assigned public IPv4 is usually released; an Elastic IP stays associated.
  • A later start does not normally rerun first-boot user data.
  • Volume deletion on termination depends on the block device mapping.

Decision cues

Preserve RAM and processes → Hibernate; ordinary shutdown → Stop; restart only the OS → Reboot; permanently remove the instance → Terminate.

Remember

Stop keeps disks but not memory; Hibernate stores memory on encrypted root EBS; Terminate is irreversible.