Google Cloud Platform Tutorial | GCP Tutorial | Google Cloud Platform For Beginners | Simplilearn

Brief Summary

Alright, so this video is basically a tutorial on Google Cloud Platform (GCP). It covers cloud computing concepts, what GCP is all about, its benefits, and the different services it offers. Plus, there's a quick comparison with other cloud providers like AWS and Azure, a Domino's Pizza use case, and a hands-on demo of GCP services.

  • Cloud computing basics and benefits
  • Overview of Google Cloud Platform (GCP) and its services
  • Comparison of GCP with AWS and Azure
  • Practical demonstration of GCP services

Why Cloud Computing?

The video starts off by explaining why cloud computing is important, using a use case about a company called Nina that does website development. Nina's company was facing issues like low memory, website crashes due to high traffic, and a limited number of servers. Cloud computing helped her scale memory on demand, balance the website load, handle more requests, and buy servers at a lower price.

What is Cloud Computing?

Cloud computing is basically using hardware and software that a cloud provider offers as a service, accessible over the internet. You can use dedicated resources or resources from a shared pool to deliver services to clients. Users can access applications and files from any device with internet. Cloud computing also allows automatic software integration, data backup and restoration, and offers unlimited storage and computation capacity. It's a cost-efficient model that helps organizations modernize their infrastructure.

What is Google Cloud Platform?

Google Cloud Platform (GCP) is a set of cloud computing services offered by Google. It runs on the same infrastructure that Google uses for its own products like YouTube and Gmail.

Benefits of Google Cloud Platform

GCP offers several benefits, including high productivity, the ability to work from anywhere, quick collaboration, and high security. It also reduces the amount of data stored on vulnerable devices, provides reliable resources across different regions, and is flexible for scaling up or down based on demand. Plus, it offers cost-effective solutions for various use cases.

Google Cloud Platform Services

GCP provides a wide range of services, including compute, storage and database, networking, big data, developer tools, identity and security management, Internet of Things (IoT), cloud AI, management tools, and data transfer solutions.

Google’s Infrastructure

Google has a powerful infrastructure available at two levels: physical and abstract. The physical infrastructure includes data centers, high-efficiency backend data centers, a strong backbone network, and edge points of presence in over 200 countries. The abstract infrastructure is divided into global regions and zones, where a zone is equivalent to a data center, and a region contains multiple zones for high availability.

GCP vs AWS vs Azure

The video compares GCP with Amazon Web Services (AWS) and Microsoft Azure. AWS has 69 availability zones in 22 geographical locations, while Azure has 54 regions worldwide in 140 countries. GCP is available in over 200 countries. For virtual servers, AWS offers EC2, Azure has Azure Virtual Machines, and GCP provides VM instances. GCP offers live migration of VMs, which the others don't.

Domino’s Pizza Use Case

Domino's Pizza used GCP to integrate marketing measurement across devices and connect CRM and digital data. They used Google Analytics Premium, Google Tag Manager, and BigQuery. This resulted in a 6% increase in monthly revenue, 80% cost savings in ad serving and operations, and increased agility with streamlined tax management.

Hands-on GCP

The video then goes into a hands-on demo of GCP, showing how to use the Compute Engine to create virtual machines. It covers creating instance templates, choosing machine configurations, selecting a distribution (like Ubuntu), and setting up SSH keys. It also discusses preemptable VMs, sole tenant nodes, and different storage options. The demo also covers object storage, Bigtable, Cloud Datastore, Cloud Spanner, Cloud SQL, BigQuery, and Dataproc.

Summarize any YouTube video in seconds

Get summaries like this one for any video, in your language, with the free Summ app.

Download on the Apple Store
Get it on Google Play

Transcript

Full transcript of “Google Cloud Platform Tutorial | GCP Tutorial | Google Cloud Platform For Beginners | Simplilearn”. Click a timestamp to open the video at that moment. Need another video? Use the YouTube transcript generator.

0:08 good morning and good evening everyone welcome to this tutorial about google cloud platform and here we will learn about cloud computing what is cloud computing what is gcp that is your google cloud platform what are the benefits of google cloud platform and what are its different services a little bit about google's infrastructure a comparison of different cloud providers such as google offering gcp that is google's cloud platform amazon offering amazon web services and microsoft which offers azure we will also learn about domino's pizza use case and then have a quick demo on using some of the services

0:53 on gcp before we begin let's understand why cloud computing and it would be always good to learn about cloud computing based on a use case there are varied use cases where organizations are adopting or moving their solutions or their infrastructure into cloud or i can simply say integrating with cloud now here is one use case nina started a company that relates to website development the challenges which nina was facing were low memory space whenever required for processing or for any other kind of application related

1:38 work high traffic to website that crashed it and also less number of servers now with these challenges she was then referred to concept of cloud computing and how that could benefit and help her in solving her issues most of her issues were solved when she started using cloud computing and with cloud computing she could increase her memory space as required that is on demand control the load to the website that is basically load balancing and handling more requests on the website or request per minute buying servers at a lower price that is scaling up or down based on the

2:25 requirement when we talk about cloud computing cloud computing is use of hardware and software components which a cloud provider offers as a service which can be accessed over network cloud computing is use of these resources which could be either dedicated resources or coming from a pool of resources which cloud provider offers to deliver a service to clients users can access these different services applications files from any device which can basically access internet cloud computing allows automatic software integration

3:11 it allows backing up and restoring of data it basically offers unlimited storage memory or computation capacity it gives access to reliable sources which usually the cloud provider themselves are using for their use case and it is a cost efficient model which helps organizations to quickly integrate or basically modernize their infrastructure cloud computing is usually used with id or within id space wherein there are five traits if there is a requirement of resources

3:59 as the business dynamically changes or grows so for this cloud computing offers on-demand self-service so users could be using on-demand computing resources or memory resources storage network and so on provided by cloud provider and also do a self service all this is possible using a simple interface and users can be using processing power storage network as they need and pay as they go so there is least or no human intervention required when it comes to projects which might need scalable network access cloud computing offers broad network

4:44 access that is accessing resources over network across geographical regions or what we call as availability zones which might be multiple sites within a particular geographical region cloud providers also have what we call as a resource pooling so this basically provides a huge pool of resources which are shared and can be accessed by customers at a lower cost now there might be customers which are interested in not sharing the resources and would be interested in dedicated resources and in this case cloud provider also have sold tenant offerings which help such customers if an it business or any other business

5:30 needs rapid elasticity then cloud providers also have resources which are offered which are elastic you can get more resources rapidly as needed and thus you can scale up and down think of a gaming company which would be interested in launching a new game and they would have predicted a certain number of users which would get on to the portal playing the game and what happens if the request per minute or if the number of users who are joining in might increase now in this case organization would want an underlying solution which handles this dynamism scales as needed on demand and once the demand is

6:16 done scales down this is possible using a cloud computing solution cloud computing solutions also include measured services that is pay as you go model for the usage or for the reservations which a user or organization would have made for resources offered by cloud computing so when we talk about cloud computing one of the question which always arises is why is this model so compelling why is this so interesting for organizations or users who would want to use one or many services from cloud computing so first wave of trend which brought storage cloud computing was what we call as colo that is co-location i.t shops that have been

7:02 using or managing huge amount of data from decades basically wanted to build their infrastructures to handle their business needs now instead of building costlier data centers they would rent space or share facilities and this was being done by organizations even in past thus they would free up the capital for other use cases now this was more of user configured managed and maintained by them later organizations started thinking of virtualization so that was again user configured but provider managed and maintained so components of a virtualized data

7:48 center matched that of a physical data center and organizations would have virtual devices separately managed from underlying devices then later came container based architectures or basically automated services so within google services are automatically provisioned and configured letting your infrastructure scale on demand there are various reasons why an organization would think of integrating with cloud or benefiting by using cloud and thus instantaneously reaping the benefits of modernizing their infrastructure

8:33 now few famous cloud providers are here so you have amazon which offers amazon web services and a huge list of services which come in with this you have microsoft's azure you have oracle's cloud you have saps cloud solutions gcp which is offered by google salesforce and so on there are many other small players which are also providing different services which are cloud-based or organizations which are partnering with these main cloud providers thus offering cloud services to their customers when we talk about why google cloud platform there are various reasons why someone would choose google cloud

9:18 platform gcp has better pricing compared to its competitors when it comes to speed and performance it is very fast and increases the performance of the project live migration of apps and there are huge number of solutions which i will show you further in further screens which help an organization to adopt to a cloud platform an integrated with cloud platform or even completely migrate into a cloud platform none of google's competitors provide live migration of apps when we talk about big data ai machine learning kind of solutions gcp provides lot of innovative solutions in comparison to

10:04 other cloud providers such as aws azure and so on so what is google cloud platform it has a set of cloud computing services provided by google that runs on the same infrastructure that google uses to and for its end user products like youtube gmail and so on let's learn about benefits of google cloud platform such as high productivity working from anywhere quick collaboration high security fewer data stored on vulnerable devices reliable resources which can be used across organization across geographical

10:49 regions across countries very flexible which allows organizations to scale up and down as the demand rises are as the demand declines and cost effective solutions for various use cases these are some of the benefits and if we look into different services which google cloud platform offers we could look into detailed benefits which each service offers in a different use case which basically helps organizations working in different domains handling different kind of small mid or larger businesses and with different business goals when we talk about google cloud platform

11:35 services here is a list of services or i could say high level domains or categories of services so you have compute related services you have storage and database you have networking big data developer tools identity and security management internet of things cloud ai management tools and also data transfer solutions when we talk about google's infrastructure google has one of the most powerful infrastructure in the world the infrastructure is available in two levels the physical and the abstract layers you have physical infrastructure and then you have the abstract infrastructure

12:21 physical infrastructure consists of data centers extensive development of high efficiency backend data centers you have a very strong backbone network which is used by google itself and also offered as services to customers via gcp platform services so you have global messed redundant backbone network points of presence when we talk about google it has 110 plus edge points of presence in more than 200 countries and when we talk about edge caching edge caching platform at periphery of their network so this is what defines the physical infrastructure

13:07 of google now there is much more to it rather than just these four points when we talk about abstract infrastructure that is divided in global regions and zones when we talk about zone a zone is roughly equivalent to a data center and a single point of failure so you could have your compute engine which is within a zone or you could say compute engine is a zonal resource you have regions which are geographical areas which contain multiple zones so you could have a region for u.s central or europe central europe west and so on and within a region you would have one or multiple zones and zones basically would

13:53 allow high availability of resources so you have cloud load balancer is an example which is regional resource then you have global resources and they are available and shared across the planet so you have various global resources such as network which could be even your ip addresses and so on now let's do a quick comparison of aws with azure wes gcp and let's look at what each cloud provider offers later we will also look into different services in detail when it comes to google cloud platform what each service does what you can benefit from which service

14:40 should you use in what case we will learn about those in later slides if i compare your different cloud providers when we talk about amazon and its cloud offerings that is amazon web services or aws as we will know it amazon web services has 69 availability zones within 22 geographical locations and soon it will have 12 more in future so this number keeps growing based on the spread of the services which a particular cloud provider offers here we are talking about availability zone specific information when we talk about microsoft's azure it has 54 regions worldwide and is available in

15:25 140 countries across the globe when we talk about google cloud gold cloud platform is available in 200 plus countries across the globe when we talk about virtual servers amazon's ec2 that is elastic compute cloud it is a web service which basically helps to resize your compute capacity where you can run your application programs on a virtual machine so using ec2 service you could launch virtual instances that could have any distribution of linux windows you could have different specifications when it comes to ram or cpu cores or disk you could also decide on what kind of storage a particular

16:11 instance should use whether the storage should be local to the instance or whether that should be an elastic file system or even an object storage when it comes to azure or microsoft's offering as your virtual machine that is infrastructure as a service gives a user the ability to deploy and manage a virtual environment inside a virtual network on the cloud and this virtual network on the cloud would be managed by cloud provider google cloud or the offerings from google cloud platform that is gcp vm instances enables users to build deploy and manage virtual machines in order to run different kind

16:57 of workloads on the cloud now when we talk about compute engine here it would be good to discuss a little bit more about compute engine and what are the different options which google cloud offers so when you talk about your compute engine you have scalable high performance virtual machines compute engine delivers configurable virtual machines which run in google's data center with access to high performance networking infrastructure and block storage and you could select vms for your needs that could be general purpose or workload optimized and when we talk about workload optimized you have predefined machines or you have custom machine sizes

17:43 you can integrate compute with other google cloud services such as ai or ml and go for your data analytics you have when we talk about your gcp vm instances just to expand on that you have general purpose instances which we call as n2 which provide a balance between price and performance and they are well suited for most workloads including line of business applications web servers and databases google cloud also offers compute optimized instances which we call as c2 instances which offer consistent high-end virtual cpu performance which are good for aaa gaming eda hpc

18:30 and other applications now when we talk about compute optimize your general purpose how would we leave memory optimized instances those are m2 machines which google offers so these offer highest amount of memory these vms are well suited for in-memory databases such as sap hana real-time analytics and in-memory caches so if i would summarize this when we talk about different instances aws also offers different kind of instances which are memory or compute or disk optimized you have general purpose and each category of machines has a different pricing model you can always go to an aws website look for the

19:16 pricing models and that will give you an idea of on-demand instances or dedicated instances reserved instances and so on similarly if you talk about google cloud google cloud also has instances with various options which become the key features of why customers would choose google cloud platform such as live migration for vms so compute engine within your gcp can live migrate between host systems and when i say live migrate it basically means without rebooting which keeps your application running even when the underlying host systems require maintenance you also have preemptable virtual machines wherein you can run bad

20:02 jobs and fault tolerant workloads on pre-emptible vms to reduce your virtual cpu and memory cost by up to 80 percent while getting the same performance so these are your preemptive or preemptable virtual machines the only demonic is these can give you a really cost efficient resource usage however can be taken off the shelf anytime and that's why we call them preemptable virtual machines you also have sole tenant nodes which are physical compute engine servers dedicated explicitly or exclusively for users use case and when we talk about sold tenant nodes these are usually good when you are

20:48 dealing with or when you are working with your applications which we call as bring your own license applications so sole tenant nodes give you access to same machine types and virtual machine config options as regular compute instances so there are different options which google cloud offers when it comes to these instances which we are talking about and it takes care of different use cases in comparison to other cloud providers which are also offering these services such as you can have predefined machine types you can have custom machine types preemptable vms as i said live migration of vms you can use persistent disks which could give you

21:34 durable high performance block storage you have local ssds you also have gpu accelerators which can be added to accelerate computational intensive workloads such as machine learning simulation medical analysis and so on and you have features such as global load balancing which makes google cloud a unique choice when we talk about platform as a service amazon has platform as a service offering which we call as elastic bean stock among one of its services it's an orchestration service for deploying applications and helping in maintaining these applications azure cloud service provides a platform to write the user application code

22:20 without worrying about the hardware resources google app engine is a service used by developers for building and hosting applications on google's data centers when we talk about server-less computing so amazon's aws lambda is a compute service it is used to execute backend code and scales automatically when required when we talk about azure you have something called as functions which allow users to build applications using server-less symbol functions with a programming language of their choice when we talk about google cloud gcp has cloud functions which is easiest way to run your code in the cloud and it

23:06 is highly available and fault tolerant so in these days when we are talking about microservices architecture which organizations are preferring when we are talking about organizations which can scale which can dynamically change their underlying architecture organizations would be interested in server less computing where they do not have to have a infrastructure setup planned in advance before going for their use case and this is where monolithic applications are really not a preferred choice a lot of organizations are decomposing their applications into microservices based on business capability or

23:52 decomposing based on sub domains we can learn about microservices architecture later but just to know that serverless computing which basically helps any organization if for example if you have a web application that receives non-linear traffic and you cannot keep an eye on your server always it would be good to have someone to auto scale your application serverless is basically a computing model where cloud service provider is responsible for managing the piece of code without the developer having to bother about infrastructure setup management maintenance and so on now when we talk about applications being serverless or benefiting from

24:39 serverless computing one of the key things would be zero administration so deploying application without any provisioning and management auto scaling capability that is let the service provider worry about scaling the application up and down you have paper use model which any customer would want to benefit from that is pay only for the resources that you have used or that you are continuing to use right shorten the time between idea implementation and employment and this is something which any organization would want that you would want a faster bring to the market solution timeline in comparison to getting entangled with

25:24 deployment management and maintenance of your underlying infrastructure when your applications are facing a high demand so when we talk about serverless it is a function as a service because each part of your application is divided as functions and can be hosted over multiple service providers you have serverless apps which are usually divided as separate units or functions based on functionalities or domains and so on so serverless computing is gaining quite popularity these days in comparison to the traditional three-tier architecture where you had a presentation layer you had an application layer you had a database layer now that kind of

26:09 infrastructure is not really preferred in today's modern times when organizations are working on different kind of newer applications when we talk about object storage amazon has simple storage service that is s3 it provides object storage which is built for storing and recovering information or data from anywhere over the internet azure comes up with blob storage that is binary large objects storage offers large amount of storage and scalability it stores the object in the tiers and depending on how often the data is being accessed now same thing applies to even s3 which is from amazon so s3 also has

26:54 different kind of storage classes which can be selected when a user or organization intends to use a storage service and when i speak about storage classes it basically means having a frequent access storage or a infrequent access storage or what we call as just an archival solution google cloud has cloud storage and it provides unified object storage for live or archive data the service is used to store and access data on gcp infrastructure when it comes to advantages amazon web services has enterprise friendly services easy access to resources

27:40 increase in speed and agility and that too on demand and takes care of your security and reliability of resources which are offered when it comes to azure it has better development operations strong security profile provides lot of cost-effective solutions and operation execution friendly when we talk about google cloud one of the key features here is better pricing than competitors live migration of virtual machines which really interests lot of organizations would want to modernize their infrastructure without having any kind of disruption in their existing services improved performance redundant backups and so on

28:25 when it comes to disadvantages in aws you have limitations when it comes to ec2 service well there are different options in the kind of machines which you can choose which you can work on you have a technical support fee which is incurred network connectivity and then also downtime which might be in case when you're migrating azure it has different code base for cloud and premise platform as a service ecosystem is not really as efficient as infrastructure as a service poor management of gui and tools integrated backup when we talk about google cloud support fee is quite hefty it depends on what kind of solution or

29:11 support you would or organization would be interested in it has a complex pricing schema although it has different use cases for which any user or any organization can benefit from downloading data from google cloud services is an expensive option storage might not be however uploading data or downloading data would be an expensive option when we talk about domino's pizza use case now while we were discussing about these features i would really want to spend more time in discussing each of these features or services in detail such as you have compute engine

29:56 you have storage you have big table you have data proc and so on so there are huge list of services now before we get into your domino's pizza use case let me show you this page on google cloud where you can look at different services so if you go to cloud.google.com and if you look at get started option under dock so here you can find build solutions look at different use cases learn from basics of what is your google cloud what are cloud basics then you can look at different cloud products so here you have products in different categories such as ai and machine learning api management compute containers data analytics databases

30:43 developer tools and so on and you can always click on any one of these to look into different solutions which are being offered what are the different use cases what are the best practices when it comes to migrating vms to compute engine or operating containers or building containers and so on you can always look at featured products and that gives you a quick snapshot of what are the different products such as you have compute engine you have cloud run bigquery which is a data warehouse you have cloud sql which is a managed mysql or postgres you have cloud storage to basically push in any kind of data there you have security key enforcement ai and machine learning and so on so you have different feature products now if you

31:29 scroll down to the lower end of this page you can again look at different solutions and that would be really interesting to read and learn from so you have infrastructure modernization you have application modernization you have data management and so on so if i look at infrastructure modernization you could basically look at the solutions which google cloud offers and what it does when it comes to having your infrastructure modernized or benefiting by integrating with cloud and having immediate benefits of infrastructure modernization you can look at different use cases what they are doing how google cloud really helps

32:15 when it comes to migrating the workloads to a cloud and how your different cloud solutions such as vm migration you have sap on google cloud vmware as a service and so on and you could learn from these different solutions which are offered you can also look at application modernization so not only infrastructure modernization but organizations would also be interested in re-looking at their applications re-looking at how these applications could be moved from monolithic to microservices architecture or how applications can benefit from modernization and cloud computing offerings so you have again different use cases here which talks about different ways in

33:01 which google cloud can help how you can modernize your applications how you can use different solutions which google cloud is offering now when you talk about cloud computing services you can always go into cloud.google.com if you have created a free account then you can just login and every user by default gets a 300 free credit so when they can try out different products where they can use different services so here if i click on console where i'm already logged in with my gmail account or my google cloud account wherein i have 300 free credit out of which some is being used you have a google cloud

33:48 console and here from the hamburger menu you can click and you can look at different services within different domains so you have compute domain which has different services such as app you have compute engine and that basically allows you to use your vm instances which we were talking about previous slides different instance groups create your templates use soul tenant nodes create snapshots or backup of your data use different zones you can go for kubernetes which is containerized based engine you have cloud functions you have cloud run and then you have storage related different options such as big table you have data store fire store file store storage and so on and

34:34 for each of these services you can read about from the google's documentation or anyways i will be explaining that later you can also look at networking related operation related and other tools which are offered by google cloud so these are huge list of services which google cloud platform offers in different ways for different use cases now let's look at this domino's pizza use case and see what it helps us learn about so you can always access this page by going to this link which talks about customers and then which shows you different use cases so dominoes increasing monthly revenue by six percent with google

35:19 analytics premium google tag manager and google bigquery so this is basically when domino's started using gcp and what was the result of that now let's look further into this so we all know that domino is most popular pizza delivery chain operating across the globe but how was that possible let's take a look so the challenges were they wanted to integrate marketing measurement across various devices connecting crm and digital data to create a clear view of customer behavior to make cross-channel marketing performance analysis easy and efficient

36:06 now for these challenges which dominos was facing the solution was using google analytics premium google tag manager and bigquery which were used to integrate digital data sources and crm data reporting was made easier and more efficient by implementing google analytics premium because it had the ability to access a single google analytics account to evaluate web and app performance by using the new google tag manager implementation dominus were able to act fast they were able to connect crm data with digital analytics which basically provided domino with greater visibility on customer behavior what was the result

36:54 there was an immediate six percent increase in monthly revenue eighty percent of costs and ad serving and operations were saved increases agility with streamlined tax management they obtained easy access to powerful reporting and customized dashboards now that was just one simple use case before we go on to hands-on we can also talk a little bit back about these services which google cloud offers as we discussed and some of these services which can really make you think why not google cloud platform so when we talk about your different cloud platform services let's learn about some of these services

37:40 in brief in what each service is what it does and how it can help us in handling our use cases or working with different products so let's learn briefly about different services which google cloud platform offers now one of the domains is compute and then let's look at the compute services which gcp offers now here i can log into the console and this hamburger menu on the top left corner i can click on this one and go into the compute engine section so this is the compute domain which has app engine kubernetes engine cloud functions and cloud run so these are your different services which are offered within the compute domain and here we can get into

38:27 compute engine by clicking on this one and then basically going to vm instances so before we see how we can use this compute engine let's understand about some of the features of compute engine which basically offers scalable high performance virtual machines which are configurable and which runs in google's data center with access to high performance networking infrastructure and block storage so from here you can select vm for your needs for your general purpose or workload optimized predefined or custom machines now here you can integrate compute with other google cloud services such as ai ml and other data analytics services you have

39:12 different machines which are offered here such as general purpose which provide a balance between price and performance which are well suited for most workloads including line of business applications web services and databases you also have compute optimized machines which offer consistent high end virtual cpu core performance and which are mainly good for gaming eda high process computing and other such applications apart from general purpose compute optimize you also have memory optimized machines which offer highest amount of memory and these vms are basically well suited for in-memory databases such as sap hana real-time analytics and in-memory cache

39:59 now we can see these options here you can click on vm instances while you're logged in into your google cloud console here you can even create an instance template which can be used to spin up instances for example if i click on new vm instance from a template there are some templates which i have already created for my usage now here i can basically use one of these templates or what i can do is i can go back i can go into instance templates and this basically allows me to create a template so you can click on create instance template which basically allows you to create templates which can be used to spin up different instances we can give a name to the template for example we

40:44 can say template instance now here i can choose machine configurations and this is where you have different options so you have general purpose as i mentioned which provide a balance between price and performance you have memory optimized which are large memory machine types for memory intensive workloads you also have compute optimized which basically give you high performance machine types for compute intensive workloads so you can choose any machine configuration which is available here based on your requirements now if you click on general purpose that has different options here so you look into the series where you have n1 series you have e2 which are cpu platform selection based on availability

41:30 you have n2 and n2d so let's just have n1 selected now you also have here which talks about machine types and here we can choose the configuration which we are interested in depending on the applications which will run within the machines we can choose a machine so by default it shows one virtual cpu core and 3.5 gigabyte of memory or ram you could choose a higher end machine so as of now i'll just say n1 standard now that basically allows me to choose these machines so there are different features which your compute offers such as you have live migration for vms you have preemptable virtual machines you have sold tenant nodes and all those options can be seen here now

42:16 in this machine for my boot disk i can select a distribution which i would be interested in for example i could be going for public images and i can choose for example ubuntu and then i can choose a version so it shows me 16.04 and you also have latest versions such as ubuntu 20. you can choose one of these and here it asks you to choose the boot disk type so that could be standard persistent disk which is hdds which are low in performance and you can say low in cost in comparison to ssds so ssds give you better performance but then they are little expensive than using standard persistent disk we can choose this and we can give a disk size

43:02 for example 20 gigabyte and i can click on select before clicking on select i can click on custom images and that shows me if you have any other images created in your project you could use those you could also learn about images by clicking on this link so we'll click on public images we have chosen this distribution let's do a select and now here you have identity and api access management so let this be default you can say allow default access and what you need is depending on the services we can choose it allows http and https traffic now we would also need some way to connect to these machines so when you set up an instance by default you can do ssh into it using the google cloud

43:49 console or from cloud shell you can also give a private and a public key so here you have the option where you can give all these details so when it comes to management it tells you what would you want to go for reservations and you can say automatically use created reservation you could also say no you would not want to use a reservation you can also set up or provide a startup script which you would want to give whenever your machines come up and here you have the options of preemptability so compute offers preemptable virtual machines so that is mainly when you would want to run bad jobs and fault tolerant workloads on these machines and you can benefit with a reduced cost for

44:34 your virtual cpu and memory by 80 so these are virtual machines which would be lasting less than 24 hours now by default this is off and it purely depends on your workload what you would want to run on these instances i could just go ahead and select preemptable being on that and use this feature of compute you also have on host maintenance which talks about what would be happening with this compute engine instance so when compute engine performs periodic infrastructure maintenance it can migrate your vm instances to other hardware and this is one of the features which compute engine offers which we call as live migration for vms here your compute engine can live migrate between

45:20 host systems that is the underlying systems on which these vm instances are based on without rebooting which will keep your application running even when host system require maintenance and here it says migrate vm instance recommended and let that be as it is you can also say that if there is a maintenance happening you can terminate the vm instance now it also talks about automatic restart which is on which basically means compute engine can automatically restart vm instances if they are terminated from non-user initiated reasons so these are all the settings which are available in management and it also tells us the different features which we have there is also a feature called sold tenancy which basically means sold tenant sold tenant nodes which can be chosen so you

46:07 can have physical compute engine servers dedicated exclusively for your use and this is usually good when you're talking about bring your own license applications so sole tenant nodes give you access to same machine types and vm configuration options as regular compute instances however these might be a little expensive we can choose this one we can also look into networking which basically shows the default setup which goes for auto subnet you can also choose a particular ip if that is required but that would cost more you can click on disks which talk about what do you want to do with the boot disk when the instance is deleted what is the encryption mechanism you would want to use and here finally you have security

46:55 so basically as i said you can ssh into instance using the cloud console option and you can also provide a public ssh key so one way of doing that if you intend to use an external ssh client such as putty to connect you can create a key so for example i can go into puttygen and here i can say generate just move my cursor over here and that will create a key i can give a name to this one so i'll say sdu will be username i'll give a simple password which i will use to login to this machine and then i can save this private key which will get saved so let's say hdu new key and this gets saved in a dot ppk file which is

47:42 usually used when you use an external ssh client to connect so save this one and that saves a ppk file on your desktop what you can also do is you can copy this public key content from here and this is what we would want to give in our instance here so so that the public key gets stored on the instance and private key is what we will use to connect so once i paste it here it resolves the name to htu and we have given the public key now in certain cases you may want to use a software which uses ssh to connect to the machine and that software might not be such as your putty so in that case you may want a pem file or a private key which is

48:30 saved as a dot pem file so you can also do that by going to conversions and do a export open ssh key and then save it so i'll say hdu new key but then this one will be saved as a pem file on my machine so you have ppk file which allows you to use putty to connect to the instance you have a pem in case a software needs directly ssh to these machines you also have the public key which we have already provided in the machine now once this is done i can close puttygen i can go back to this page where i'm creating an instance template and then i can just click on create so this has created a instance template which i can use to spin up my instances any number of instances using

49:15 the theme template only thing which i would have to do is change the region where i would want the instance to run so now that we have created instance and that's my this one the third option i can go back to vm instances now i can click on create and here i can either create an instance from scratch by giving all the details again or i can just use my template so i can click on new vm instance from a template choose my template click on continue and once this is done i can give my instance name so let's say c1 i can choose the region so i will choose frankfurt and then rest everything is auto populated based on the template what you have given and you click on create now this basically

50:01 allows you to spin up an instance and you can create any number of instances using your template you could have already created a new instance right from scratch now once the instance is created this has a public ip and a private ip private ip will not change unless you would want to set up a new machine but public ip will change every time you stop and start the machine now this is what we need to connect to this machine i can also do a ssh from here by doing this in open in a browser window let's click on this so this is an internal way of connecting to your instance using ssh let's wait because it would be transferring the ssh keys to the vm it establishes a connection and i'm connected to my machine what we can

50:47 easily do is to confirm if we are in the right machine we can just do a ls to look at the file system what we can also do is we can basically login as root by doing a sudo su and that allows you to get into the machine as root and from here i can switch to hdu user which will have a dot ssh directory in home and that basically has authorized keys and if we would want to see if this one contains my public key i can just do a cat dot ssh and then look into authorized keys and this shows me the public key which we had initially added to our instance so this confirms that we are logged into the machine which we created now i can close this

51:33 and what i can also do is i can copy this public ip so let's do a copy to clipboard now go to putty and here i will say hostname where i'll say hdu give my public key i'll click on ssh and in ssh i'll go to authentication now here we need to give our ppk file so the ppk file was sdu new key select this one come back here come to the session give it a name for example c1 save it and then you can just say open and say yes and you are logged in to your machine now once you're logged in you can always do a minus ssh and that shows you the file so this is how you have just used the compute engine to spin up an

52:19 instance but we used a template which basically allowed me to create this instance and then i can connect to this instance and then i can start working on this so when we talk about features of compute engine it has predefined machine types as we saw so compute engine offers different predefined virtual machines and this they have configurations for every need from small general purpose instances to large memory optimized instances with up to 11.5 terabytes of ram you can have fast compute instances optimized up to 60 virtual cpu cores you also have custom machine types so you can create a vm that best fits your workload and by tailoring a custom

53:05 machine type to your specific need you can realize significant savings there are preemptable vms which we saw there is also a facility which allows you to take the benefit of live migration for vms you have durable high performance block storage for virtual machine instances in the form of persistent disks where data is stored redundantly for integrity flexibility and to resize storage without interruption and you could be choosing hdds or sdds for your instances now you also have option such as gpu accelerators so for example if i just click on create instance and i can look into that so here let the instance name be instance one and what i would be

53:51 interested in looking at this one which says cpu platform and gpu so cpu platform configuration is permanent you can also do add gpu so gpus can be added to accelerate computationally intensive workloads like machine learning simulation medical analysis and virtual workstation applications so you can add and remove gpus to a vm when your workload changes and pay for gpu only while using so these are some of the features which basically compute engine offers and we already know that google builds in second level increments so we only pay for the compute time now there are different savings which are possible so you have commitment savings which

54:37 basically means you can save up to 57 percent without upfront cost per instance type lock-in you have container support so you can basically run manage and orchestrate docker containers or compute engine instances so here when we are setting up our instances there is an option which basically allows you to use or deploy docker images now that can be done you can also benefit from sustained use savings that is sustained use discounts which are automatic discounts for running compute engine resources for significant portion of the billing month you can create a reservation for vm instance in a specific zone which is basically seen under your management section here and you can ensure your

55:24 project has resources for future increases in demand and if no longer needed delete the reservation so these are some of the features of compute engine what we have done is we have created compute engine using the console now you can go back you can also do that using cloud shell and you can click on this one which activates cloud shell you could also have the cloud sdk support on setup on your machine which can be used now i can just open this in a new window and from here i can start giving commands if i would be interested in setting up an instance from my command line so here you have different options now to begin with you can just do a g cloud and just hit enter and that will

56:11 show you different options which are available which can be used so you have g cloud compute here which shows an option to create and manipulate compute engine resources now i can just do a queue to quit i can do g cloud compute and that basically will again show me different options which are available if you would be interested in setting up instances from the command line so here i can say g cloud compute and then go for instances and if you do not know the commands you can just hit enter that will show you all the different options which we have so here we have different options such as list or create or start or update for example

56:57 i can just do a list here to see what instances i have and the instance which we just created shows up here it says that status is running i can just stop this instance i can delete this instance i can even create an instance by using a create command here and you can just do a create help which will show you what are the different options you can give so it says instance name is what you need you can choose an accelerator you can choose the boot disk and various other options so i can just say create and then i can give a name for example c2 and once i click on this one it says did you mean europe west 4 zone so it is asking me for the region

57:43 and the zone and i can say yes and these settings are coming from my default profile i can always change those by changing the metadata so now we have created an instance it says running if we do a list again to see we see two instances created one was in europe west three one was only europius west four both of them have internal and external eyepiece now you can do a describe to look at the different options here so g cloud basically allows you different commands which you can use to work with your instance to create instances to change the metadata if you would want to change the region if you would want to add a startup script all those options are possible from the

58:29 command line which we can learn in detail in later sessions so this is your compute engine as a service now that we have learned about the compute domain and g compute services which is offered by gcp let's also learn about storage and databases that's again within the storage domain and the services which are offered by google cloud platform now you can go back to console and here you can click on this one and here you can just scroll down to see what are the different options in storage so you have options such as bigtable you have data store firestore file store you have sql based services you have storage which is

59:16 object storage and then you have other options which are available so google cloud platform offers different storage based services out of which storage which is your object storage is quite popular one click on storage and that basically shows you an option which talks about storage browser so this is your google cloud's object storage so when we talk about object storage it is basically a storage where you could store any kind of data and when we talk about object storage it is a bunch of bytes which we address wherein every object will have a unique key these unique keys are in the form of url which allows you to access the object so cloud storage is comprised of

1:00:02 what we call as buckets which are used to store and hold your storage objects the storage objects are immutable and every change creates a new version now you can also have control access via iam that is identity access management or via access control list so there is also an option called object versioning which basically says if it is on every time you try to store the same object a new version of the object would be created otherwise newer option will override old one as we cannot archive the old version so let's see how we work with this object storage so here you can click on create bucket now once you click on create bucket it

1:00:48 needs a name so let's say test bucket and here i can just give say number one so that says this is the name of my bucket now i can directly click on continue or it would be good to look at different options which are available here so when you click on choose where to store your data so it already gives me an option it says the bucket name is already taken so let me give it a unique name so let's say test buck and let's call it aua so that should be unique now here it says choose where to store your data so this one gives you location type so you can have region specific buckets which give you lowest latency that is

1:01:34 fastest response time within a single region however it does not make your storage highly available you can make a dual region which is basically allowing your bucket or storage to be accessible across regions you can also make it multi-region which is highest availability offered as of now we can choose region specific and now it asks you to choose a location now as always i will choose frankfurt now i can click on continue and rest all the rest let all the storage options be default or you can click on a default storage class now that tells you based on your storage class there are variant costs when it comes to storing retrieving or doing any kind of

1:02:20 operations so you have a standard option which says best for short-term storage and frequently accessed data you can also go for cold storage such as near line which is best for backups and data access less than once a month you can go for freezing storage such as cold line best for disaster recovery and data accessed less than once a quarter or you can go for archiving where the data is accessed less than once a year let's go for standard as of now and now you can choose how to control access to objects so you have fine grained or uniform let it be fine grained wherein you can give additional permissions at bucket level using iam or object level permissions using access control list

1:03:05 in advanced settings you can choose the encryption and you can also choose a retention policy so a retention policy to specify the minimum duration that this bucket's objects must be protected from deletion or modification after they are uploaded you can always learn about this more by clicking here now once i have chosen all the relevant options i can click on create and that basically will create a bucket by the name i have given i can click on overview to basically see brief details about my bucket such as region what is the default storage class and it also shows you the link url which can be used to access your bucket it also gives you the link for gsutil now

1:03:52 gsutil is a command which can be used in your cloud shell to basically work with your buckets you can click on permissions to basically see what kind of permissions are already in place and you can then make changes you can basically add members you can view by different roles so for example here by default it shows other services such as data proc or your bucket owner or bucket reader related permissions which have been already granted now once i have looked at my bucket i can start using it i can drag and drop and push in files here so as of now there are no live objects in my object storage that is in my bucket what

1:04:38 i can do is i can click on upload files and then i can choose a location from my machine for example i'll go into data sets and what i can do is i can choose some of the files here in any format let's choose csv or text and just to open so this one will basically upload my data sets here now once i've uploaded the files i can basically close this one i can look into options here which says edit permissions and edit metadata if you would want to download it if you would want to copy move or rename it if you would want to export to a different service called cloud pub sub which is publish subscribing messaging system you can

1:05:24 scan the data now you can click on a particular file and that basically shows you the url which basically allows you to access this file you can try copying this you can click on download and download this file you can even try accessing this from public and that basically shows you the content of this file based on the permissions so this is basically your object storage which is one of the service which is offered what you can also do is you can create folders and within folders you can then upload your data so this is your google cloud storage option which is for your object storage that is you can add different items you can give different

1:06:10 permissions and you can use this google cloud platforms storage service offering now you also have other options such as big table and we can go into that by clicking here and click on big table so big table is one of the service which kickstarted nosql databases today in market we see different nosql databases such as cassandra hbase mongodb couchdb neo4j and many others so you can basically use bigtable which was the pioneer when it comes to your no sequel databases or not only sql databases so the problem initially faced by google was that of the web indexes

1:06:56 behind search engine were taking too long to build so company wanted to build database that would provide real time access to petabytes of data and that's where bigtable began so big table powers different other google services such as gmail google maps and other services and in 2015 it was launched as a service for customers so when it comes to scalability with use of bigtable you can increase your machine count without any downtime and you can handle admin tasks like upgrades restarts and so on which are basically taken care by the cloud provider data present in cloud bigtable is encrypted and you can use im roles to specify access so data written to or

1:07:44 from big table is through data service layers such as managed virtual machines hbase rest servers java services hbs client and so on here if i would want to use big table i can click on create instance and that basically tells me cloud bigtable instance is a container for your clusters now here you can give a instance name so for example i will say a u a and then say for example test and let's say big table so that will be the name of instance this will be permanent you can choose the storage type again you can go for lower latency more rows red per second typically used for real-time serving use cases or you

1:08:31 can go for sdds which have higher latency for random reads good performance on scans and typically used for batch analytics so let's go for ssds as of now here you have cluster id which is auto populated you can choose a region so let's go for our favorite one here where i can say europe west 3 i can choose a zone here and i can then choose how many nodes would i want to use for my big table so when you talk about big table service it will have a cluster underlying which will have various nodes which will control your data throughput storage and rows read per second so as of now let it be just one node and that's enough for our demo when we talk about performance

1:09:17 it basically tells you based on the current node and storage type it tells you how many reads can happen at milliseconds so it says 10 000 rows per second at 6 millisecond you have rights which are 10 000 rows per second or you have scans which are 220 megabytes per second storage which is taken care here would be 2.5 terabytes and i can then basically click on create now there is also some option called replication guidance which basically says replication for cloud table big table copies your data across multiple regions enabling you to isolate workload and increase the availability and durability of your data depending on your use case you can have big table which can be used to have your data across

1:10:02 regions now you can click on create with all your specifications chosen and that's going to set up a cluster or you can say a fully managed nosql database which will give you low latency and replication for high availability now once we have a new instance you can connect to it with the cbt command line tool and for instructions you can click on learn more here you can just click on this instance id to see the details again if you would want to look into your big table setup so it tells me here that we have one instance what is the cpu utilization time how many rows for red or written what is the throughput and this is auto populated based on your

1:10:48 usage you can click on monitoring and that basically will give you different widgets which will display information for your cpu utilization what is your hottest node depending on how many nodes you have system errors automatic failovers storage utilization and so on you can click on key visualizer which will allow you to look into your table if you have already created some data here and you can click on tables to see how many tables you have added here so that's in brief about your big tables which is one thing which we need to remember is it's not good for all use cases so should be used for low latency access that is fast access and good if at least

1:11:33 data is greater than one terabyte for smaller amount of data the overhead is too high so big tables performance will suffer if you store individual elements larger than 10 megabytes if you want to store bigger objects such as images video files then go for object storage and that would be a better option so always remember big table is not a relational database it's a no sql database and when you talk about multi-row transactions or online transaction processing big table is not the right choice so it can be used for wide range of applications especially when you talk about your olap that is online

1:12:19 analytical processing so it is designed to store key value pairs and there can be different use cases so for example if you are using something like cloud data flow or cloud data proc where you would want map reduce kind of operations big table can act as a good storage because it has very high throughput and scalability and the best thing is that it supports hbase api thus allowing easy integration with apache hadoop and spark clusters which you can bring up using one more service which google cloud platform offers which is called cloud data proc so bigtable is good for real-time analytics it's commonly seen in financial services iot and others and if you are thinking

1:13:04 of running interactive sql then bigtable would not be the right choice but the other choice would be bigquery you should also remember that this has a cluster running and you would be charged if this cluster kept on running so you have to be very careful in your free account when you're using such services now we have clicked on this one so i can select this one and basically i can look at the permissions i can look at the labels i can look at inherited permissions here i can also click on my instance which we created and either you can edit or you can just do a delete so as of now we will just delete this which needs you to given that name so we'll say aua test

1:13:52 bt and then click on delete so whenever you are trying out different services the first approach should be setting up these different services seeing how they work basically trying connecting to them and once you are satisfied with the initial test then you can plan your actions and come back and use the service for a longer duration now that's your big table which is one of the offerings we can go back into storage and here you have other options which are available so for example we were in big table you also have an option such as cloud data store now that's one more service which is offered by google cloud platform when it comes to storage domain so google added software on top of

1:14:38 bigtable which supports more than simple key value pairs when you talk about secondary indexes instead of just having one primary index when you talk about asset properties for reliable transactions such as sql query like language so these features or these services were added to or on top of your bigtable which gave birth to a new service which was released as cloud data store so this is where you have cloud data store and you can select a cli cloud firestore mode so you

…

Share

More video summaries