前言

一些我整理的资料:


知识点

1. Regions and Zones in GCP

Regions and Zones

  • Google provide 20+ regions around the world
  • High Availability, Low Latency, Global Footprint, Government Regulation

  • Each Region has three or more Zones
  • Increase availability and fault tolerance


2. Compute Engine, Instance Groups, Load Balancing

Google Compute Engine

  • Google Compute Engine (GCE): Provision & Manage Virtual Machines

  • Have load balancing and auto scaling
  • Can attach storage, can manage network connectivity and configuration


IP Address

  • Internal IP Address: Does not change during the lifetime of an instance
  • External or Ephemeral IP Address: Change when an instance is stopped
  • Static IP Address: Permanent External IP Address for a VM (重要)


VM Setup

  • 一共有 3 种: Startup Script, Instance Template (重要), Custom Image
  • Startup Script: for boostrapping

  • Instance Templates: specify VM instance details
    • Used to create VM instances and managed instance groups
    • Cannot be updated, need to be deleted and modified

  • Custom Image: Prefer Custom Image to Startup Script
    • Can have OS patches and software pre-installed


Sustained Use Discounts

  • Automatic discounts, 自动存在, 但不是所有 VM 都可以使用


Committed Use Discounts

  • 类似 EC2 Reserved Instance, commit for 1 year or 3 years
  • For workloads with predictable resource needs, cannot be canceled


Preemptible VM

  • 类似 Spot Instance
  • Short-lived cheaper compute instances (只能存在 24 小时)
  • GCP can stop (preempted) this instance any time within 24 hours


Spot VM

  • Latest version of preemptible VM (这个就是 Spot Instance)
  • Key difference: Does not have a maximum runtime, 没有 24 小时限制


Sole Tenant Nodes

  • 有点类似 Dedicated Host 或者 Dedicated Instance


Custom Machine Types

  • 可以自定义 CPU, memory, GPU


VM Costs

  • 两种 cost: Infrastructure cost 和 Licensing cost


附录

请勿随意修改,谢谢