This content introduces Google Cloud Platform's (GCP) compute offerings, with a primary focus on Compute Engine, explaining its purpose, key features, and the process of creating and managing virtual machines (VMs).
Mind Map
Nhấn để mở rộng
Nhấn để khám phá sơ đồ tư duy tương tác đầy đủ
[Music]
hi everyone Welcome to Cloud Sprint in
this video we are going to start the
series on compute options
gcp compute is driven better for cloud
Engineers so it really makes sense to
understand compute in detail because
while working on TCB Cloud you'll be
working on managing compute scaling
descaling most of the time will be
you'll be spending with compute engine
from the exam perspective also this is
really important topic this video we
will understand that what is gcp compute
how to use it what options we have of
compute major Focus will be on compute
engine let's go ahead and check it out
first we need to understand what is how
many gcp compute offerings we have the
first one is compute engine which is
General virtual machines which you also
use on your on-premises so it is okay
you can you can rent some VMS over gcp
by just few clicks second is GK which is
managed Google kubernetes engine you can
just provision a gke cluster in few
clicks third option is app engine where
you get the managed platform which is
platform as a service which you get the
manage platform where you can run your
code directly you can deploy new
versions you can scale these scale shift
traffic you don't have to manage the
platform basically you just do the
deployment rate fourth one is cloud run
with Cloud run is more like running your
containers uh on the platform provided
by Google you just have to deploy a
container and it will find out the
resources to run
fifth is cloud function which is mainly
used for event based uh architecture on
when you need compute for some specific
minute on demand kind of architecture
Cloud function is used for so these five
options we have the more left side
options you choose you'll have more control
control
the more right side you go it will be
managed in the backbone gcp compute
engine will run but for us it becomes
managed service if you want control over
your infrastructure like what kind of
vmc you want to give how much memory you
want to allocate how much CPU you want
to allocate you should go ahead with
compute engine because that's where you
get the most control in GK also you can
control how many type of nodes you want
to give what will be your child nodes
how you want to run them what are the
things you want to install you can
definitely control that coming to app
engine again it's a platform Cloud run
is a platform Cloud function is mostly a
platform so you don't control what you
want to install but you can just deploy
and leverage the benefit you cannot
control the environment but in these two
cases you can control the environment
that's the difference this video is all
about compute engine I'll be covering
all these five compute options because
all these five topics are really
important for the exam and I'll be
covering all the topics required for the
exam while covering it I'll also be
covering that when to choose what in
which situation you will be going ahead
with compute in which situation you'll
be going ahead with app engine going to
use cloud function this is what our
Cloud engineer's job is mainly to find
the right candidate for the nature of
the workload if you want to run a
container a simple container you may go
ahead with Cloud run you want to manage
all the resources allocated with that
and you also want to orchestrate those
uh those containers you might not go
ahead with GK I'll be covering these
kind of examples use cases so you get to
know it so today let's focus on compute
engine Google compute engine GCE is an
infrastructure as a service offering
that allows clients to run workload on
Google's physical infrastructure Google
is already running Google search engine
Gmail YouTube and other services using GCE
GCE
it enables users to launch virtual
machines on demand depending on your
need how much memory how much CPU you
can just allocate create it on demand
and use it for your daily this is an
option which allows you to run something
on Google's physical infrastructure
directly sitting at your desktop and you
will be paying for the uh time you are
running it if you're running it for one
hour you pay for one hour if you run it
for 24 hour you pay for 24 hours Google
also offers some generous discounts if
you are using it on a regular basis the
first and foremost thing after starting
compute engine is to understand what is
the reason Amazons all the blue one you
see are reasons and there are data
centers within those regions are called
zones okay the blue ones are have three
plus three plus uh data centers which is
called zones
so you while designing your application
you just need to ensure that you are
provisioning resources within your uh
region rather than anything else for
example if you have customers from Delhi
and you provision your VMS in Toronto
you will have a link okay you'll have
latency your user experience will vanish
so it always makes sense to while
provisioning your infrastructure always
be much more closer to your customers
for better experience a general thinking
is to go ahead with the cheapest option
okay but that's not always how it works
because if you choose the cheapest
option suppose U.S Central one is the
cheapest option for now and your
customers are in Tokyo Julie paying much
more on network throughput for a very
bad experience customer experience so as
a cloud engineer it's your job is to
find the best optimal solution which
serves the cost latency and better user
experience so while designing the system
you make sure most of your clients are
from which location and you provision
your resources in those locations so
they don't face the latency so if your
customers are from India and you
provision your servers in U.S for the
cheaper option you'll be paying more for
Network traffic
it definitely makes sense to provision
your infrastructure in India if you have
from both the reasons you should have
your resources in both the reasons and
then you can balance using a load
balancer balance the traffic a law
okay so this map really helps you to
understand which is the nearest location
and how to choose it let's understand
the options we have in this example Asia
is1 is one of the reason okay and it has
three zones so you can have one cluster
in each Zone and then serve your
customers very well so a better customer
experience across Asia that's how you
can control your reason and Zone
customers and if even a Zone goes out
you can serve your customer from
different zones that is how it is
segregated to simplify it for you the
reasons are collection of zones zones
have high bandwidth low latency Network
and other zones in the same reason
in order to deploy fault tolerant
application High ability Google
recommends deployment applications
across multiple Zone and multiple
reasons a zone is deployment area within
that region which can also be known as
the data center it's a fully qualified
name such as U.S Central 1A
so the reason is use Central One your
central one A1 b1c is your zones okay
let's go ahead and understand how to use
compute any compute is created inside a
gcp project so in this case I want to
create compute inside inside data
science Dev
I'll click on compute engine
once you click on compute engine
you will see it's asking you to enable
the API because by default this API is
not enabled what will happen once you
click on enable
let me show you that if you come to vbc
you'll see there is no VPC Network okay
when you come to IM there is no compute
service account okay system managed so
once you click on a enable API in the
background what it is doing it is
creating a VPC it is creating a subnet
in all the reasons so I can easily go
ahead and create a compute it is also
creating service account providing
permission so basically in a nutshell it
is doing everything needed for me to use
compute engine API and always remember
very important point the first thing you
need to do for using compute engine is
enable API anything comes later so just
the first step to do it so we have
clicked on enabled let's see what it does
perfect so it enabled the
compute engine
API now let's go ahead and check these
two locations which I just asked you to
verify you can see it has created a
default service account a random name
number compute and
service account okay compute engine
default service account rule is editor
then it also created a Google service
API service agent and a role is given editor
editor
while working with production of course
we don't use these service accounts we
will cover that later but for learning
purpose these are good to go
now let's go ahead and check at the
network label what all it has done for
me over the network okay now you can see
there's a network called default Network
okay insert this default Network it has
created it all subnets for me okay and
in all the reasons that's how create
while learning you can create all the
compute I don't face any problem that's
how it's called enabling the uh compute
engine API let's go ahead and try to
create a VM this is how uh UI looks like
you can just again uh choose what you
want to see what you don't want to see
you can remove it from here okay okay
you can create instance from here you
can start stop delete
you can check metrics from here you can
show info panel if you want to see some
more information
now let's try to create instance for
creating an instance for a VM I need to
create click on create instance
once you open it you will be asked that
what you want to do you want to create a
VM you want to create it from template
or machine image or directly from Marketplace
Marketplace
we already have covered Marketplace in
one of the video you can use this also
for now I'm just interested in UVM so
the first thing it is asking me to
provide a name name I'll say
close print Dash VM okay now I have to
choose the most important thing which is
reason and Zone okay always remember
these things are permanent you're not
gonna change once you create in this region
region
now suppose my customers are mostly in
Asia okay and I want them to be served
from Delhi now this reason has three
zone so I'll choose that okay this Zone
this particular Zone I want to use
because this I feel it's the nearest
okay that's how you choose your reason
and job
once you choose your reason and Zone the
second important decision you have to
make is choosing the machine configuration
configuration
you want to use it for general purpose
you want it for compute optimized memory
optimized or the gpus
we'll go ahead and create this
N1 standard one which is probably the
lowest one The Chosen One standard one
okay once you have made decision on
reason soon
your machine type
okay you confidentially you know I don't
want to deploy any container for now
boot disk is good
okay which image you want to use this is
the third thing you need to ensure
all options you have you can choose from
Debian Centos
okay if you want to use Windows you can
choose Windows over here okay
that's that's the thing which you need
to choose but for now we will just go
ahead with Debian and we'll say that
okay the
version 10 is good for us any boot disk
yes I want to take the boot disk select
now the fourth part is once you've done
with the image and the boot disk now
you're choosing the operating system the
fourth decision you need to make is
identity and API access you remember I
shown you in the iron that it has
created once you initialize the API it
has created one default service account
so this is the one service account
by default it is using if you don't
change it it will be using by default
one okay for now we're just going to
keep it allow default access or firewall
rule Advance option let's check you can
also change the network tags network but
I'm not changing anything I'm just
keeping it default which is default default
talking about disk I'm not adding any
this I'm not changing anything in the
management also I'm not giving any
startup script okay so uh after these
four decisions I will review that how
much money I am shelling out with this
so uh for for this particular
configuration I need to pay 30 dollar
per month so this is a monthly estimate
so for this particular VM I have to pay
30 dollars per month
running 24 7. it will also give me a
generous discount of 12 dollars
once I'm done with all these steps I'll
once you click on create it will start
creating the VM and within a few minutes
yes the VM is available okay the name
which you have given is cloud Sprint dot
the creation date is here machine type
and if you want to see something more
uh if you want me to remove something
you can do that here also okay Network
tags and all okay that's that's how your
VM is created but uh
there are many ways to correct it I can
directly click on SSH or I can do it via
out shell session or I can connect it
via downloading the credential or
authenticating myself for now let's
click directly on SSH and try to log in
once you click on this VM it will be
transfer your SSH keys to the VM which
will enable this session for you and you
can directly login through IAP now it is
asking my permission to enable iaptcp
connection I'll say Okay authorize now
it will ask me for details like my
username and password to ensure that I
am the one who is trying to uh you know
I'll click on next
next
okay e-cloud data see the email address
okay I'll allow that as well and click
on continue yeah
yeah
perfect so here is my VM once I close it
again click on SSH this time it should
be pretty straightforward because it has
it already have my connection
yes
that's how you create a VM you can just
go ahead and check your
your operating system okay the name of
it that's how you create a way if you
want to see that what it it did when you
when you click the SSH for that you need
to click here and uh
just come down you can see all the
properties here okay you can also go
ahead and see that
what is the post boot disk storage look
at this so whatever you had allocated
while creating it also the SSH key
the SSH key is already added here which
which would be just transferred by
authorizing yourself okay that's what it
is now if you want to delete it okay
this these are the options here you can
stop it stop is means you're just
stopping it for now once you start the
VM it will again start from there itself
yes you can see the instance is stopped
once the instance is stopped you are not
paying for that
particular hours whenever it is stopped
you only pay a nominal fee for disk and
all otherwise you don't pay for the
resources if you want to start it you
can again click on start it will start
the VM again
and it will run all the startup script
and all you can get yes you can see your
instance is started now you can again
connect so the third thing you would
want to delete it how to delete you just
select the VM click on the options click
on delete
okay this will also delete the boot disk
I'll click on okay confirm delete
and within seconds this VM will also go away
perfect so you can see instance is
deleted now so that's how you create it
you start stop delete suspend that's how
you play with him from the next videos
we are going to do all the use cases
around that how to use what when to use
what how do you create custom machines
so subscribe to the channel and see you
in the next video so hit the like button
subscribe to the channel and see you in
Nhấn vào bất kỳ đoạn văn bản hoặc mốc thời gian nào để nhảy đến phần đó trong video
Chia sẻ:
Hầu hết transcript sẵn sàng trong dưới 5 giây
Sao Chép 1 Chạm125+ Ngôn ngữTìm kiếm nội dungNhảy đến mốc thời gian
Dán URL YouTube
Nhập link bất kỳ video YouTube để lấy toàn bộ transcript
Form Trích Xuất Transcript
Hầu hết transcript sẵn sàng trong dưới 5 giây
Cài Tiện Ích Chrome Của Chúng Tôi
Lấy transcript ngay mà không cần rời khỏi YouTube. Cài tiện ích Chrome để truy cập transcript của bất kỳ video nào ngay trên trang xem, chỉ với một cú nhấp.