-: All right, Gurus. Welcome back.
In this lesson,
we're going to talk about managing compute engine resources.
Now in this lesson, we will look at
what are the resources you can manage.
We're going to talk about generating SSH keys.
We're going to talk about working with snapshots,
and then we're going to learn more
about installing monitoring and logging agents.
Now, learning about what resources we can manage
are important,
and we need to look at what's important
for the exam as well.
You need to understand and take a look at security,
and more importantly using SSH keys
to control access to your VM.
You will need to understand snapshots
and how to capture a point in time snapshot
over your instance to use for duplication
or disaster recovery.
And then you will need to learn how to install monitoring
and logging agents on your VM
to gain key insights on health
and to learn more about your instance as well.
So let's talk about SSH keys first.
Now, knowing how to control who has access to your resources
is a pretty important thing to know.
Here we can take a look at creating SSH keys.
With GCP, you are allowed to create custom SSH keys
in your environment
and then upload them to the instance details
to allow you to have access
to the instance outside of the GCP environment.
Now through this, you can have control
and manage your own environment with the SSH keys
or you can let Google create SSH keys for you
that would then be used and transferred to any instance
that you could create from then on.
Working with snapshots.
Now, what happens if you need to create another instance
in a different zone or region the quickest way possible.
This is where snapshots come into play.
Snapshots allow you to take a point-in-time recovery
of your instance to store in case you need a faster rollback
to a previous point in time recovery,
but snapshots can also allow you to create a VM image
that is an exact duplicate of your VM.
And let's say the us-central1-A zone
and you can use that snapshot to create a new image
and deploy the new VM in a us-central1-B zone
in a matter of seconds,
depending on your configuration of your instance.
So if we have all of this,
how can we look after our instances
to learn more about our activity or better yet get an alert
if our instance is unhealthy or unresponsive.
This is where you can install Google Operations Suite's
monitoring and logging agents.
With Cloud Monitoring agent,
this tool gathers system and application metrics
from your VM and sends them straight to monitoring.
As well as the logging agent,
it streams logs from your instance and third party packages
you have downloaded like Apache
and it sends them to Cloud Logging for your viewing.
You can then create what is known as a sync
which syncs control of how Cloud Logging routes logs
but you could also route them to Cloud Storage
where you could then use them for storage
and later on analytical use
or you can use tools and services like BigQuery as well
and Pub/Sub.
Now that we've gone over managing
your compute engine resources,
let's take a look at the key takeaways for this exam.
Understand how to control access to your instances
by creating and uploading custom SSH keys.
Understand how to capture point in time snapshots
for disaster recovery and duplication
by working with persistent disk snapshots.
And then you need to understand how to evaluate
the health and the activity of your instances
by installing monitoring and logging agents
on your instance.
Now, we will take a hands on approach in the next lesson,
but I appreciate you all joining me
in this lesson and learning more.
Join me in the next lesson as we launch a VM instance
and we go over the details of looking at SSH keys,
snapshots, monitoring and logging agents as well.
I'll see you in the next video.