EC2 Hibernate
Video Activity
Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *
or
Already have an account? Sign In »

Time
19 hours 19 minutes
Difficulty
Intermediate
CEU/CPE
20
Video Transcription
00:00
>> Hey everybody and welcome back.
00:00
In this lesson, we're going to be
00:00
talking about EC2 hibernate.
00:00
Learning objectives are going to be to
00:00
describe the concept of
00:00
hibernation and to discuss how hibernation works,
00:00
which our options are for EC2.
00:00
What is hibernation?
00:00
Hibernation is a stasis similar to what
00:00
we see with animals when they take a long rest.
00:00
Bears, they go into hibernation in the winter,
00:00
they eat up a bunch of nutrients, they rest,
00:00
and when the winter is over, they wake up,
00:00
they re-emerge out of their hibernation,
00:00
and they go and they scavenge
00:00
and they do their thing that bears do.
00:00
In the technical world,
00:00
hibernation is something that we do to put
00:00
our machines down into a temporary stasis as well.
00:00
It's not quite shutting it off.
00:00
You're still retaining the memory, the data,
00:00
and the exact position that it was
00:00
in when I went into hibernation,
00:00
and when you boot it backup from hibernation,
00:00
it just picks up right where it left off from,
00:00
so all the memory and all the data's still there.
00:00
It's essentially going to sleep,
00:00
but not quite as temporary as asleep.
00:00
EC2 hibernation, here's some comparisons.
00:00
When we stop an instance,
00:00
the EBS volume is present
00:00
until the instance is started again.
00:00
When we're terminating an instance,
00:00
the EBS volume gets destroyed with the EC2 instance.
00:00
When you're hibernating it,
00:00
the RAM is preserved,
00:00
the state of the RAM in which it was written in,
00:00
it's written to the EBS file.
00:00
Reboot is faster from a stop state to a start state,
00:00
and the EBS volume,
00:00
it has to be encrypted in order to do this.
00:00
That's basically the difference there.
00:00
Everything stays persistent,
00:00
it's just another way to put your EC2 to
00:00
rest and pick it right back up from where you left off.
00:00
A couple of things to note when
00:00
you're hibernating your EC2 instances,
00:00
you can only hibernate
00:00
on-demand and reserve EC2 instances.
00:00
When a EC2 instance is in hibernation,
00:00
you're not being charged for that EC2 instance,
00:00
this is technically just like
00:00
an EC2 instance being put in a stopped state.
00:00
Now, when the instance is going into
00:00
hibernation or when it is going
00:00
into that stopping state,
00:00
it hasn't quite stopped yet,
00:00
but when it's stopping, you're being charged.
00:00
But once it has stopped or once it is hibernated,
00:00
then you're no longer being charged anymore.
00:00
Now, I will quickly note here
00:00
that any data that is being
00:00
stored on the EBS volumes that are still persistent,
00:00
you're still being charged for that,
00:00
but for the instance itself that is hibernated,
00:00
you're not being charged for that.
00:00
To quickly summarize real quick,
00:00
EC2 offers hibernation as
00:00
an additional way to stop your instances.
00:00
Data state's persistent when you are hibernated.
00:00
You're not being charged for the instance,
00:00
you are being charged for the data that's on
00:00
your EBS volumes that are attached.
00:00
Just keep that in mind.
00:00
Hibernation is just another way of stopping it.
00:00
It's a lot quicker to boot
00:00
back up from the stopping phase.
00:00
If you were to compare stopping to hibernation,
00:00
hibernation is going to boot back up
00:00
quicker because all the data was just
00:00
frozen and defrosted now it's up and running,
00:00
so super easy to go.
00:00
This is better than termination
00:00
if you're looking to just temporarily shut it down.
00:00
Termination is for when you're all done,
00:00
you don't want the EBS volumes
00:00
anymore, everything gets deleted.
00:00
That wraps up this lecture.
00:00
I'll see you all in the next one.
Up Next
Similar Content