Steps when creating a VM Instance in Google Compute Engine

  1. Input name
  2. Input labels (key-value pairs, similar to tags in AWS EC2 setup)
  3. Choose RegionRegionspecific geographical locations to host your resources gcp: * each region has at least 3 zones Status: #idea Tags: Cloud References and ZoneZoneMost providers: * at least 3 in a Region gcp: * has at least one discrete cluster * connected to each through low latency links Status: #idea Tags: Cloud References based on:
    • Cost, Regulations, Availability Needs, Latency and Specific Hardware needs
  4. Configure hardware by choosing one of the Google Compute Engine Family or Machine TypesGoogle Compute Engine Family or Machine Types1. General purpose 1. Memory-optimized 1. Compute-optimized 1. GPU 1. Custom Machine Types Can vary from region to region Can be changed when stopped Similar to AWS EC2 Instance Types Status: #idea Tags: gcp, google-cloud-engineer, Cloud, cloud-compute, Google Compute Engine, Steps when creating a VM Instance in Google Compute Engine, References
  5. Choose Boot diskBoot diskImages/Operating System to boot from Have to choose of the Image Types Regional Status: #idea Tags: gcp, google-cloud-engineer, Cloud, cloud-compute, Google Compute Engine, Steps when creating a VM Instance in Google Compute Engine References
  6. Configure firewall
  7. After instance is created, there is the internal IP and external IP
    1. (Optional) Assign Static IPStatic IPgcp: * Static IP can be switched to another VM instance in same project * Static IP remains attached even if you stop the instance. You have to manually detach it. * Remember : You are billed for an Static IP when you are NOT using it! * Make sure that you explicitly release an Static IP when you are not using it. Status: #idea Tags: gcp, google-cloud-engineer, Cloud, cloud-compute, Google Compute Engine, ccp, AWS EC2 References

or use an Instance TemplateInstance TemplateDefine machine type, image, labels, startup script and other properties * CANNOT be updated * To make a change, copy an existing template and modify it Use case: * VM instances * Managed Instance Groups Regional Status: #idea Tags: gcp, google-cloud-engineer, Cloud, cloud-compute, Google Compute Engine, Steps when creating a VM Instance in Google Compute Engine References

Additional Features:

  • Custom Machine TypesCompute Engine Features - Custom Machine Types* What do you do when predefined VM options are NOT appropriate for your workload? * Create a machine type customized to your needs (a Custom Machine Type) Custom Machine Type: Adjust** vCPUs, memory and GPUs * Choose between E2, N2, or N1 machine types * Supports a wide variety of Operating Systems: CentOS, CoreOS, Debian, Red Hat, Ubuntu, Windows etc * Billed per vCPUs, memory provisioned to each instance * Example Hourly Price: $0.033174 / vCPU + $0.004446 / GB Status: #idea Tag
  • GPUsCompute Engine Features - GPUs* How do you accelerate math intensive and graphics-intensive workloads for AI/ML etc? * Add a GPU to your virtual machine: * High performance for math intensive and graphics-intensive workloads * Higher Cost * (REMEMBER) Use images with GPU libraries (Deep Learning) installed * OTHERWISE, GPU will not be used * GPU restrictions: * NOT supported on all machine types (For example, not supported on shared-core or memory-optimized machine types) * On host maintenance can only ha

Status: #idea
Tags: gcp, google-cloud-engineerGoogle Associate Cloud Engineer Noteswhy use cloud? https://www.in28minutes.com/gcp-bookshelf https://www.in28minutes.com/downloads/09-google-certified-associate-cloud-engineer/CoursePresentation-GoogleCertifiedAssociateCloudEngineer.pdf how do projects work in gcp? cloud projects and accounts Resource Hierarchy Organization Level Folder Level Project Level IAM who * single account * group can do what (rules) * basic * predefined * custom scope observability monitoring billing account load balancing Regions and Zones, CloudCloudCase just like cloud computing (SaaS, etc) * [ ] UI * [ ] book * [ ] zulfani * [ ] exercises * [ ] UI * [ ] assignment * [ ] responsi, cloud-computeCompute for CloudProvision and manage cloud resources to run application without managing physical hardware GCP offerings: * Google Compute Engine Azure offerings: * Azure Virtual Machines * Azure App Service * Azure Container Instances * Azure Functions * Azure Automated Kubernetes Service * Azure Container Apps Status: #idea Tags: Cloud References, Google Compute EngineGoogle Compute EngineGCP service used to provision and manage virtual machines * Create and manage lifecycle of Virtual Machine (VM) instances * Associated with a project Load balancing* and *auto scaling* for multiple VM instances Attach storage** (& network storage) to your VM instances * Manage network connectivity and configuration for your VM instances Setup Billing Live Migration & Availability Policy Scenarios Similar to AWS EC2, Azure Virtual Machines Status: #idea Tags: gcp, google-cloud-engineer,


References